code-mode.cordis.yml 1.3 KB

123456789101112131415161718192021222324252627282930
  1. # Code Mode overlay: the live acp-agent tree (./cordis.yml) with two
  2. # load-time patches — the app entry's config gains `tools: { mode: code }`
  3. # (the registry offers exactly one wire tool, run_code, plus the generated
  4. # TypeScript SDK prompt section) and the worker-thread code runtime joins the
  5. # tree as `ctx.codeRuntime`. The dsh-acp-agent bin boots this file for
  6. # `pnpm run demo:code-mode acp` and when the snapshot harness records the
  7. # code-mode scenarios; DSH_SNAPSHOT=replay swaps it for the sibling
  8. # code-mode.cordis.snapshot.yml. A config patch REPLACES the entry's whole
  9. # config, so the base entry's fields are restated verbatim.
  10. - id: base
  11. name: '@cordisjs/plugin-include'
  12. config:
  13. path: ./cordis.yml
  14. patches:
  15. - id: acp-agent
  16. name: '@deepseek-ai/dsh-acp-agent'
  17. config:
  18. model: deepseek-v4-flash
  19. persistenceRoot: !!js process.env.DSH_SNAPSHOT_SESSIONS_ROOT ?? './.sessions'
  20. tools:
  21. mode: code
  22. persona: |
  23. You are a coding assistant powered by the {{model}} model. Your working
  24. directory is {{cwd}}.
  25. Verify your work by running the code or tests. Keep answers brief and
  26. factual.
  27. - insert:
  28. - id: code-runtime
  29. name: '@deepseek-ai/dsh-code-runtime-worker'