cordis.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. # One-shot coding agent with format-pure stdout. The app bin loads the
  2. # gitignored root `.env` into the process environment; entry configs here are
  3. # the composition base, while user-plane values resolve per request through
  4. # the two providers below.
  5. # User-settings document (`$DSH_HOME/settings.yaml`, hot-reloaded): a
  6. # `llm-deepseek:` section there overrides the adapter entry below without a
  7. # restart.
  8. - id: settings
  9. name: '@deepseek-ai/dsh-settings-local'
  10. # Credential store: the live process environment over `$DSH_HOME/.env`
  11. # (owner-only file, hot-reloaded). The adapter resolves `DEEPSEEK_API_KEY`
  12. # through it at each request, so no key is inlined in this file.
  13. - id: credentials
  14. name: '@deepseek-ai/dsh-credentials-local'
  15. # The DeepSeek adapter. Swap to '@deepseek-ai/dsh-llm-pi-ai' for the pi-ai-backed
  16. # twin (a `providers` dict keyed by route; `reasoning: high` replaces
  17. # thinking/reasoningEffort). Shipped default: full thinking at max effort on
  18. # every request. Exact-model resolution materializes request defaults before
  19. # the request header is logged.
  20. - id: llm-deepseek
  21. name: '@deepseek-ai/dsh-llm-deepseek'
  22. config:
  23. thinking: enabled
  24. reasoningEffort: max
  25. models:
  26. - id: deepseek-v4-pro
  27. contextWindow: 128000
  28. - id: deepseek-v4-flash
  29. contextWindow: 128000
  30. # Managed child-process groups for the bash executor (spawn/kill/output plumbing).
  31. - id: subprocess
  32. name: '@deepseek-ai/dsh-subprocess-local'
  33. - id: bash
  34. name: '@deepseek-ai/dsh-bash-local'
  35. config:
  36. timeoutMs: 60000
  37. # The app bundle pre-creates one fresh `main` agent per invocation.
  38. - id: cli-agent
  39. name: '@deepseek-ai/dsh-cli-demo'
  40. config:
  41. provider: deepseek-official
  42. # Stays on flash: the goal/ralph replay corpora were recorded on it, and
  43. # their nested-include overlays cannot re-pin the app config (a config
  44. # patch cannot target an entry behind a nested include).
  45. model: deepseek-v4-flash
  46. persistenceRoot: './.sessions'
  47. persistenceCompression: !!js "process.env.DSH_SNAPSHOT === undefined ? 'zstd' : 'none'"
  48. workspaceContext:
  49. maxBytes: 65536
  50. persona: |
  51. You are headless-agent, a coding assistant powered by the {{model}} model.
  52. Verify your work by running the code or tests. Keep answers brief and
  53. factual.
  54. # Summarize an older range when derived history approaches the context window.
  55. - id: token-meter
  56. name: '@deepseek-ai/dsh-token-meter'
  57. - id: compact-basic
  58. name: '@deepseek-ai/dsh-compact-basic'
  59. config:
  60. thresholdRatio: 0.8
  61. retainRatio: 0.16
  62. maxTokens: 8192
  63. compactionRetries: 1
  64. # Expose fresh-child `spawn` and completed-prefix `fork` through independent
  65. # in-process backends.
  66. - id: subagent
  67. name: '@deepseek-ai/dsh-subagent'
  68. - id: subagent-spawn
  69. name: '@deepseek-ai/dsh-subagent-spawn'
  70. config:
  71. providerName: spawn
  72. - id: subagent-fork
  73. name: '@deepseek-ai/dsh-subagent-fork'
  74. config:
  75. providerName: fork
  76. - id: tool-subagent
  77. name: '@deepseek-ai/dsh-tool-subagent'
  78. config:
  79. provider: spawn
  80. toolName: subagent
  81. maxDepth: 1
  82. - id: tool-subagent-fork
  83. name: '@deepseek-ai/dsh-tool-subagent'
  84. config:
  85. provider: fork
  86. toolName: subagent_fork
  87. maxDepth: 1
  88. # The worker-thread workflow engine fans a model-written JavaScript script's
  89. # `agent()` calls out through the spawn backend.
  90. - id: workflow-workerthread
  91. name: '@deepseek-ai/dsh-workflow-workerthread'
  92. config:
  93. provider: spawn
  94. - id: tool-workflow
  95. name: '@deepseek-ai/dsh-tool-workflow'
  96. # A separate fixed consumer demonstrates fresh-agent Ralph iteration without
  97. # changing the workflow tool or same-session goal behavior.
  98. - id: tool-ralph
  99. name: '@deepseek-ai/dsh-tool-ralph'
  100. # `todo_write` replaces the logged whole list.
  101. - id: tool-todo
  102. name: '@deepseek-ai/dsh-tool-todo'
  103. # Policy loads before the model-facing filesystem tools so writes and edits
  104. # require an observed file. Relative paths resolve from the process cwd.
  105. - id: fs-local
  106. name: '@deepseek-ai/dsh-fs-local'
  107. config:
  108. cwd: !!js process.cwd()
  109. - id: fs-policy
  110. name: '@deepseek-ai/dsh-fs-policy'
  111. - id: tool-fs
  112. name: '@deepseek-ai/dsh-tool-fs'