cordis.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  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. # Shipped default: full thinking at max effort on every request (wire-only
  7. # defaults; they never enter the request header).
  8. - id: llm-deepseek
  9. name: '@deepseek-ai/dsh-llm-deepseek'
  10. config:
  11. apiKey: !!js process.env.DEEPSEEK_API_KEY
  12. baseURL: !!js process.env.DEEPSEEK_BASE_URL
  13. thinking: enabled
  14. reasoningEffort: max
  15. models:
  16. - id: deepseek-v4-pro
  17. contextWindow: 128000
  18. - id: deepseek-v4-flash
  19. contextWindow: 128000
  20. # Managed child-process groups for the bash executor (spawn/kill/output plumbing).
  21. - id: subprocess
  22. name: '@deepseek-ai/dsh-subprocess-local'
  23. - id: bash
  24. name: '@deepseek-ai/dsh-bash-local'
  25. config:
  26. timeoutMs: 60000
  27. # The app bundle pre-creates one fresh `main` agent per invocation.
  28. - id: cli-agent
  29. name: '@deepseek-ai/dsh-cli-demo'
  30. config:
  31. provider: deepseek
  32. # Stays on flash: the goal/ralph replay corpora were recorded on it, and
  33. # their nested-include overlays cannot re-pin the app config (a config
  34. # patch cannot target an entry behind a nested include).
  35. model: deepseek-v4-flash
  36. persistenceRoot: './.sessions'
  37. persistenceCompression: !!js "process.env.DSH_SNAPSHOT === undefined ? 'zstd' : 'none'"
  38. workspaceContext:
  39. maxBytes: 65536
  40. persona: |
  41. You are headless-agent, a coding assistant powered by the {{model}} model.
  42. Verify your work by running the code or tests. Keep answers brief and
  43. factual.
  44. # Summarize an older range when derived history approaches the context window.
  45. - id: token-meter
  46. name: '@deepseek-ai/dsh-token-meter'
  47. - id: compact-basic
  48. name: '@deepseek-ai/dsh-compact-basic'
  49. config:
  50. thresholdRatio: 0.8
  51. retainRatio: 0.16
  52. maxTokens: 8192
  53. compactionRetries: 1
  54. # Expose fresh-child `spawn` and completed-prefix `fork` through independent
  55. # in-process backends.
  56. - id: subagent
  57. name: '@deepseek-ai/dsh-subagent'
  58. - id: subagent-spawn
  59. name: '@deepseek-ai/dsh-subagent-spawn'
  60. config:
  61. providerName: spawn
  62. - id: subagent-fork
  63. name: '@deepseek-ai/dsh-subagent-fork'
  64. config:
  65. providerName: fork
  66. - id: tool-subagent
  67. name: '@deepseek-ai/dsh-tool-subagent'
  68. config:
  69. provider: spawn
  70. toolName: subagent
  71. maxDepth: 1
  72. - id: tool-subagent-fork
  73. name: '@deepseek-ai/dsh-tool-subagent'
  74. config:
  75. provider: fork
  76. toolName: subagent_fork
  77. maxDepth: 1
  78. # The worker-thread workflow engine fans a model-written JavaScript script's
  79. # `agent()` calls out through the spawn backend.
  80. - id: workflow-workerthread
  81. name: '@deepseek-ai/dsh-workflow-workerthread'
  82. config:
  83. provider: spawn
  84. - id: tool-workflow
  85. name: '@deepseek-ai/dsh-tool-workflow'
  86. # A separate fixed consumer demonstrates fresh-agent Ralph iteration without
  87. # changing the workflow tool or same-session goal behavior.
  88. - id: tool-ralph
  89. name: '@deepseek-ai/dsh-tool-ralph'
  90. # `todo_write` replaces the logged whole list.
  91. - id: tool-todo
  92. name: '@deepseek-ai/dsh-tool-todo'
  93. # Policy loads before the model-facing filesystem tools so writes and edits
  94. # require an observed file. Relative paths resolve from the process cwd.
  95. - id: fs-local
  96. name: '@deepseek-ai/dsh-fs-local'
  97. config:
  98. cwd: !!js process.cwd()
  99. - id: fs-policy
  100. name: '@deepseek-ai/dsh-fs-policy'
  101. - id: tool-fs
  102. name: '@deepseek-ai/dsh-tool-fs'