code-mode.cordis.yml 1.3 KB

1234567891011121314151617181920212223242526272829
  1. # Code Mode RECORD 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 when the
  6. # snapshot harness records the code-mode scenarios; DSH_SNAPSHOT=replay swaps
  7. # it for the sibling code-mode.cordis.snapshot.yml. A config patch REPLACES
  8. # the entry's whole config, so the base entry's fields are restated verbatim.
  9. - id: base
  10. name: '@cordisjs/plugin-include'
  11. config:
  12. path: ./cordis.yml
  13. patches:
  14. - id: acp-agent
  15. name: '@deepseek-ai/dsh-acp-agent'
  16. config:
  17. model: deepseek-v4-flash
  18. persistenceRoot: !!js process.env.DSH_SNAPSHOT_SESSIONS_ROOT ?? './.sessions'
  19. tools:
  20. mode: code
  21. persona: |
  22. You are a coding assistant powered by the {{model}} model. Your working
  23. directory is {{cwd}}.
  24. Verify your work by running the code or tests. Keep answers brief and
  25. factual.
  26. - insert:
  27. - id: code-runtime
  28. name: '@deepseek-ai/dsh-code-runtime-worker'