cordis.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Code Mode over the shipped TUI: the model stops calling one tool per turn and
  2. # instead writes TypeScript programs for a single `run_code` tool, executed in a
  3. # worker thread.
  4. #
  5. # This file is a `--config` OVERLAY, not a tree: `dsh --config
  6. # examples/code-mode/cordis.yml` includes the shared base, applies the TUI
  7. # overlay, then applies these patches, all at one include level. Patches never
  8. # cross an include boundary, so an overlay must stay a patch list rather than a
  9. # file that includes another config.
  10. #
  11. # A patch replaces the targeted row's whole `config`, so each row restates every
  12. # key it owns.
  13. - id: tools
  14. config:
  15. mode: code
  16. - id: system-prompt
  17. config:
  18. persona: |
  19. You are a coding agent powered by the {{model}} model.
  20. You work by writing TypeScript programs for run_code: batch related
  21. tool work into one program, loop and branch where it helps, and print
  22. or return ONLY the findings that matter.
  23. - id: tui
  24. config:
  25. sessionId: !!js configuredAgentIdentities?.main?.id ?? 'main'
  26. welcome: 'TUI Code Mode ready. Give it a multi-tool task.'
  27. showReasoning: true
  28. maxToolOutputLines: 6
  29. # The worker thread `run_code` executes in; the base mounts no code runtime.
  30. - insert:
  31. - id: code-runtime
  32. name: '@deepseek-ai/dsh-code-runtime-worker'