tui.cordis.yml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. # `dsh` (the default surface) — the full-screen TUI, as a patch list over
  2. # `base.cordis.yml`. The launcher includes the base and applies this file, then
  3. # any `--config` overlay, then the personal `~/.dsh/config.yaml`, as sibling
  4. # patch lists at ONE include level: patches never cross an include boundary, so
  5. # stacking overlays as nested includes would silently stop reaching base rows.
  6. #
  7. # A patch replaces the targeted row's whole `config`, so each row below restates
  8. # every key it owns. A patch whose `id` matches no row is skipped with a Loader
  9. # warning, which is deliberate: one personal overlay is shared across surfaces,
  10. # so a row that exists only under `web` must not fail the TUI's boot.
  11. #
  12. # The launcher owns session identity and the exit line, and provides both on the
  13. # boot context rather than through config, so no key here — and no overlay
  14. # replacing one — can drop `--resume`.
  15. # ── surface-specific values the base deliberately omits ─────────────────────
  16. # `main` is the agent the TUI drives. `provider`/`model` are the route `dsh
  17. # login` rewrites and a personal overlay repoints; `cwd` anchors the session to
  18. # the invoking directory, which is also what scopes `/resume` to this workspace.
  19. - id: agent-loop
  20. config:
  21. agents:
  22. - id: main
  23. provider: deepseek-official
  24. model: deepseek-v4-pro
  25. cwd: !!js process.cwd()
  26. # Keep the persona to identity and behavior; tool plugins own tool guidance.
  27. # The loop resolves {{model}} from this agent's configuration.
  28. - id: system-prompt
  29. config:
  30. persona: |
  31. You are a coding agent powered by the {{model}} model.
  32. Verify your work by running the code or tests. Keep answers brief and
  33. factual.
  34. # Shipped default: full thinking at max effort on every request. Exact-model
  35. # resolution materializes request defaults before the request header is logged.
  36. - id: llm-deepseek
  37. config:
  38. apiKey: !!js process.env.DEEPSEEK_API_KEY
  39. baseURL: !!js process.env.DEEPSEEK_BASE_URL
  40. thinking: enabled
  41. reasoningEffort: max
  42. # This single-session app resolves relative paths from the process cwd.
  43. - id: fs-local
  44. config:
  45. cwd: !!js process.cwd()
  46. # The shipped TUI presents the native tool registry.
  47. - id: tools
  48. config:
  49. mode: native
  50. # ── TUI-only rows ───────────────────────────────────────────────────────────
  51. - insert:
  52. # Relational runtime checks over the authoritative event streams; each
  53. # companion registers the assertions its own package owns.
  54. - id: invariants
  55. name: '@deepseek-ai/dsh-invariants'
  56. - id: session-invariant
  57. name: '@deepseek-ai/dsh-session/invariant'
  58. - id: agent-invariant
  59. name: '@deepseek-ai/dsh-agent/invariant'
  60. - id: scope-invariant
  61. name: '@deepseek-ai/dsh-scope/invariant'
  62. - id: agent-loop-invariant
  63. name: '@deepseek-ai/dsh-agent-loop/invariant'
  64. - id: session-checkpoint-policy
  65. name: '@deepseek-ai/dsh-session-checkpoint-policy'
  66. # The derived query index behind `/resume`. The launcher provides a unique
  67. # process-local path because this SQLite backend has one writer owner; the
  68. # project-local fallback applies when no launcher sets the typed slot.
  69. - id: session-reference
  70. name: '@deepseek-ai/dsh-session-reference'
  71. # Compacts oversized tool results before the broader conversation compactor
  72. # runs, preserving the model-visible result within the configured budget.
  73. - id: tool-result-prune
  74. name: '@deepseek-ai/dsh-compact-tool-result-prune'
  75. # Persisted same-session goals reach the model and the slash menu here; the
  76. # domain, driver, and `/goal` command are in the base.
  77. - id: tool-goal
  78. name: '@deepseek-ai/dsh-tool-goal'
  79. # A separate fixed consumer demonstrates fresh-agent Ralph iteration without
  80. # changing the workflow tool or same-session goal behavior.
  81. - id: tool-ralph
  82. name: '@deepseek-ai/dsh-tool-ralph'
  83. # The keyboard-backed provider behind ask_user_question and the plan-mode
  84. # review, and the front door it renders inside.
  85. - id: tui-prompt
  86. name: '@deepseek-ai/dsh-tui/prompt'
  87. # The TUI renders exactly the agent the agent-loop row bound, so it reads the
  88. # same launcher-owned identity rather than restating one.
  89. - id: tui
  90. name: '@deepseek-ai/dsh-tui'
  91. config:
  92. sessionId: !!js configuredAgentIdentities?.main?.id ?? 'main'
  93. showReasoning: true
  94. maxToolOutputLines: 6
  95. - id: tool-ask-user
  96. name: '@deepseek-ai/dsh-tool-ask-user'