cordis.yml 3.4 KB

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