code-mode.cordis.yml 1.2 KB

12345678910111213141516171819202122232425262728
  1. # Code Mode adds `ctx.codeRuntime` and changes the registry to one wire tool,
  2. # `run_code`, plus a generated SDK for bash/read/write/edit/subagent/todo_write.
  3. # `demo:code-mode` selects this overlay; the ACP example has the same UI-specific
  4. # shape. A config patch replaces the whole app config, so unchanged base fields
  5. # are restated; only `tools`, `welcome`, and the persona's second paragraph differ.
  6. - id: base
  7. name: '@cordisjs/plugin-include'
  8. config:
  9. path: ./cordis.yml
  10. patches:
  11. - id: stdio-agent
  12. name: '@deepseek-ai/dsh-stdio-demo'
  13. config:
  14. model: deepseek-v4-flash
  15. resumeSessionId: !!js process.env.RESUME_SESSION_ID
  16. persistenceRoot: './.sessions'
  17. tools:
  18. mode: code
  19. welcome: 'code-mode agent ready. Give it a multi-tool task.'
  20. persona: |
  21. You are coding-agent, a coding assistant powered by the {{model}} model.
  22. You work by writing TypeScript programs for run_code: batch related
  23. tool work into one program, loop and branch where it helps, and print
  24. or return ONLY the findings that matter.
  25. - insert:
  26. - id: code-runtime
  27. name: '@deepseek-ai/dsh-code-runtime-worker'