cordis.yml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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. # Continuable background children are selected per delegation tool. The
  77. # separately loaded control registers global `send_message`; `report` is
  78. # installed only in continuable child scopes.
  79. - id: tool-subagent-control
  80. name: '@deepseek-ai/dsh-tool-subagent-control'
  81. - id: tool-subagent-report
  82. name: '@deepseek-ai/dsh-tool-subagent-report'
  83. - id: tool-subagent
  84. name: '@deepseek-ai/dsh-tool-subagent'
  85. config:
  86. provider: spawn
  87. toolName: subagent
  88. backgroundMode: continuable
  89. maxDepth: 1
  90. - id: tool-subagent-fork
  91. name: '@deepseek-ai/dsh-tool-subagent'
  92. config:
  93. provider: fork
  94. toolName: subagent_fork
  95. backgroundMode: continuable
  96. maxDepth: 1
  97. # The worker-thread workflow engine fans a model-written JavaScript script's
  98. # `agent()` calls out through the spawn backend.
  99. - id: workflow-workerthread
  100. name: '@deepseek-ai/dsh-workflow-workerthread'
  101. config:
  102. provider: spawn
  103. - id: tool-workflow
  104. name: '@deepseek-ai/dsh-tool-workflow'
  105. # A separate fixed consumer demonstrates fresh-agent Ralph iteration without
  106. # changing the workflow tool or same-session goal behavior.
  107. - id: tool-ralph
  108. name: '@deepseek-ai/dsh-tool-ralph'
  109. # `todo_write` replaces the logged whole list.
  110. - id: tool-todo
  111. name: '@deepseek-ai/dsh-tool-todo'
  112. # Policy loads before the model-facing filesystem tools so writes and edits
  113. # require an observed file. Relative paths resolve from the process cwd.
  114. - id: fs-local
  115. name: '@deepseek-ai/dsh-fs-local'
  116. config:
  117. cwd: !!js process.cwd()
  118. - id: fs-policy
  119. name: '@deepseek-ai/dsh-fs-policy'
  120. - id: tool-fs
  121. name: '@deepseek-ai/dsh-tool-fs'