code-mode.cordis.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # Code Mode adds `ctx.codeRuntime` and changes the registry to one wire tool,
  2. # `run_code`, plus its generated TypeScript SDK prompt. The demo and snapshot
  3. # recorder apply this profile patch; replay applies its sibling patch.
  4. - id: acp
  5. name: '@deepseek-ai/dsh-acp'
  6. config:
  7. provider: deepseek-official
  8. model: deepseek-v4-pro
  9. - id: session-persistence-jsonl
  10. name: '@deepseek-ai/dsh-session-persistence-jsonl'
  11. config:
  12. root: !!js process.env.DSH_SNAPSHOT_SESSIONS_ROOT ?? './.sessions'
  13. compression: !!js 'process.env.DSH_SNAPSHOT === undefined ? ''zstd'' : ''none'''
  14. - id: agent-instructions
  15. name: '@deepseek-ai/dsh-agent-instructions'
  16. config:
  17. maxBytes: 65536
  18. - id: tools
  19. name: '@deepseek-ai/dsh-tools'
  20. config:
  21. mode: code
  22. - id: system-prompt
  23. name: '@deepseek-ai/dsh-system-prompt'
  24. config:
  25. persona: |
  26. You are a coding assistant powered by the {{model}} model. Your working directory is {{cwd}}.
  27. Verify your work by running the code or tests. Keep answers brief and factual.
  28. - insert:
  29. - id: code-runtime
  30. name: '@deepseek-ai/dsh-code-runtime-worker-thread'