code-mode.cordis.yml 1.3 KB

12345678910111213141516171819202122232425262728293031
  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. provider: deepseek
  15. model: deepseek-v4-flash
  16. resumeSessionId: !!js process.env.RESUME_SESSION_ID
  17. persistenceRoot: './.sessions'
  18. workspaceContext:
  19. maxBytes: 65536
  20. tools:
  21. mode: code
  22. welcome: 'code-mode agent ready. Give it a multi-tool task.'
  23. persona: |
  24. You are coding-agent, a coding assistant powered by the {{model}} model.
  25. You work by writing TypeScript programs for run_code: batch related
  26. tool work into one program, loop and branch where it helps, and print
  27. or return ONLY the findings that matter.
  28. - insert:
  29. - id: code-runtime
  30. name: '@deepseek-ai/dsh-code-runtime-worker'