code-mode.cordis.yml 1.3 KB

1234567891011121314151617181920212223242526272829
  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. tools:
  19. mode: code
  20. welcome: 'code-mode agent ready. Give it a multi-tool task.'
  21. persona: |
  22. You are coding-agent, a coding assistant powered by the {{model}} model.
  23. You work by writing TypeScript programs for run_code: batch related
  24. tool work into one program, loop and branch where it helps, and print
  25. or return ONLY the findings that matter.
  26. - insert:
  27. - id: code-runtime
  28. name: '@deepseek-ai/dsh-code-runtime-worker'