code-mode.cordis.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132
  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-pro
  13. resumeSessionId: !!js "typeof resumeSessionId === 'string' ? resumeSessionId : undefined"
  14. persistenceRoot: './.sessions'
  15. resumeCommand: 'dsh --resume {session}'
  16. workspaceContext:
  17. maxBytes: 65536
  18. tools:
  19. mode: code
  20. welcome: 'TUI Code Mode ready. Give it a multi-tool task.'
  21. ui:
  22. showReasoning: true
  23. maxToolOutputLines: 6
  24. persona: |
  25. You are a coding agent powered by the {{model}} model.
  26. You work by writing TypeScript programs for run_code: batch related
  27. tool work into one program, loop and branch where it helps, and print
  28. or return ONLY the findings that matter.
  29. - insert:
  30. - id: code-runtime
  31. name: '@deepseek-ai/dsh-code-runtime-worker'