1
0

code-mode.cordis.yml 1.3 KB

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