cordis.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # One-shot coding agent with format-pure stdout. The app bin loads the
  2. # gitignored root `.env`; this file reads `DEEPSEEK_API_KEY` and optional
  3. # `DEEPSEEK_BASE_URL` through `!!js`.
  4. # The DeepSeek adapter. Swap to '@deepseek-ai/dsh-llm-pi-ai' for the pi-ai-backed
  5. # twin (same config shape; `reasoning: high` replaces thinking/reasoningEffort).
  6. - id: llm-deepseek
  7. name: '@deepseek-ai/dsh-llm-deepseek'
  8. config:
  9. apiKey: !!js process.env.DEEPSEEK_API_KEY
  10. baseURL: !!js process.env.DEEPSEEK_BASE_URL
  11. models:
  12. - id: deepseek-v4-pro
  13. - id: deepseek-v4-flash
  14. - id: bash
  15. name: '@deepseek-ai/dsh-bash-local'
  16. config:
  17. timeoutMs: 60000
  18. # The app bundle pre-creates one fresh `main` agent per invocation.
  19. - id: cli-agent
  20. name: '@deepseek-ai/dsh-cli-demo'
  21. config:
  22. provider: deepseek
  23. model: deepseek-v4-flash
  24. persistenceRoot: './.sessions'
  25. persistenceCompression: !!js "process.env.DSH_SNAPSHOT === undefined ? 'zstd' : 'none'"
  26. workspaceContext:
  27. maxBytes: 65536
  28. persona: |
  29. You are headless-agent, a coding assistant powered by the {{model}} model.
  30. Verify your work by running the code or tests. Keep answers brief and
  31. factual.
  32. # Summarize an older range when derived history approaches the context window.
  33. - id: compact-basic
  34. name: '@deepseek-ai/dsh-compact-basic'
  35. config:
  36. contextWindow: 128000
  37. thresholdRatio: 0.8
  38. retainTokens: 20480
  39. summarizationModel: ''
  40. maxTokens: 8192
  41. compactionRetries: 1
  42. # Expose fresh-child `spawn` and completed-prefix `fork` through independent
  43. # in-process backends.
  44. - id: subagent
  45. name: '@deepseek-ai/dsh-subagent'
  46. - id: subagent-spawn
  47. name: '@deepseek-ai/dsh-subagent-spawn'
  48. config:
  49. providerName: spawn
  50. - id: subagent-fork
  51. name: '@deepseek-ai/dsh-subagent-fork'
  52. config:
  53. providerName: fork
  54. - id: tool-subagent
  55. name: '@deepseek-ai/dsh-tool-subagent'
  56. config:
  57. provider: spawn
  58. toolName: subagent
  59. maxDepth: 1
  60. - id: tool-subagent-fork
  61. name: '@deepseek-ai/dsh-tool-subagent'
  62. config:
  63. provider: fork
  64. toolName: subagent_fork
  65. maxDepth: 1
  66. # The worker-thread workflow engine fans a model-written JavaScript script's
  67. # `agent()` calls out through the spawn backend.
  68. - id: workflow-workerthread
  69. name: '@deepseek-ai/dsh-workflow-workerthread'
  70. config:
  71. provider: spawn
  72. - id: tool-workflow
  73. name: '@deepseek-ai/dsh-tool-workflow'
  74. # `todo_write` replaces the logged whole list.
  75. - id: tool-todo
  76. name: '@deepseek-ai/dsh-tool-todo'
  77. # Policy loads before the model-facing filesystem tools so writes and edits
  78. # require an observed file. Relative paths resolve from the process cwd.
  79. - id: fs-local
  80. name: '@deepseek-ai/dsh-fs-local'
  81. config:
  82. cwd: !!js process.cwd()
  83. - id: fs-policy
  84. name: '@deepseek-ai/dsh-fs-policy'
  85. - id: tool-fs
  86. name: '@deepseek-ai/dsh-tool-fs'