code-mode.cordis.yml 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. # Code Mode keeps the TUI composition while adding the worker runtime and
  2. # reducing the model-facing registry to the `run_code` transport.
  3. - id: base
  4. name: '@cordisjs/plugin-include'
  5. config:
  6. path: ./cordis.yml
  7. patches:
  8. - id: tui-agent
  9. name: '@deepseek-ai/dsh-tui-demo'
  10. config:
  11. provider: deepseek
  12. model: deepseek-v4-flash
  13. resumeSessionId: !!js process.env.RESUME_SESSION_ID
  14. persistenceRoot: './.sessions'
  15. workspaceContext:
  16. maxBytes: 65536
  17. tools:
  18. mode: code
  19. welcome: 'TUI Code Mode ready. Give it a multi-tool task.'
  20. ui:
  21. showReasoning: true
  22. maxToolOutputLines: 12
  23. persona: |
  24. You are a coding agent 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'