2026-07-13 23:27:00 +08:00
|
|
|
# Code Mode adds `ctx.codeRuntime` and changes the registry to one wire tool,
|
|
|
|
|
# `run_code`, plus a generated SDK for bash/read/write/edit/subagent/todo_write.
|
|
|
|
|
# `demo:code-mode` selects this overlay; the ACP example has the same UI-specific
|
|
|
|
|
# shape. A config patch replaces the whole app config, so unchanged base fields
|
|
|
|
|
# are restated; only `tools`, `welcome`, and the persona's second paragraph differ.
|
refactor: unify the Code Mode demos on base-plus-overlay
Both demo:code-mode UIs now share one mechanism: the base example plus a
same-shaped code-mode.cordis.yml include overlay (insert the worker
runtime, flip tools.mode). Previously the REPL side was a hand-forked
example (examples/code-agent) that had also silently diverged — it
dropped compaction and the subagent stack — so the demo's UI argument
switched agents, not just surfaces. The fork is retired: coding-agent
gains the overlay, a Code Mode README section absorbing code-agent's,
and both of its tests (the keyless boot guard, retargeted at the
overlay; the with-key RFC proof, which hand-mounts its own harness and
moves untouched). The RFC's composed-surface and e2e-tier lines, the
examples index, the AGENTS.md smoke table, and the dsh-tools README
link now describe the overlay shape.
Verified live: overlay keyless smoke, with-key code-mode e2e from its
new home, demo:code-mode banner + EOF exit, and the acp handshake.
2026-07-09 13:02:19 +08:00
|
|
|
- id: base
|
|
|
|
|
name: '@cordisjs/plugin-include'
|
|
|
|
|
config:
|
|
|
|
|
path: ./cordis.yml
|
|
|
|
|
patches:
|
|
|
|
|
- id: stdio-agent
|
2026-07-15 15:57:57 +08:00
|
|
|
name: '@deepseek-ai/dsh-stdio-demo'
|
refactor: unify the Code Mode demos on base-plus-overlay
Both demo:code-mode UIs now share one mechanism: the base example plus a
same-shaped code-mode.cordis.yml include overlay (insert the worker
runtime, flip tools.mode). Previously the REPL side was a hand-forked
example (examples/code-agent) that had also silently diverged — it
dropped compaction and the subagent stack — so the demo's UI argument
switched agents, not just surfaces. The fork is retired: coding-agent
gains the overlay, a Code Mode README section absorbing code-agent's,
and both of its tests (the keyless boot guard, retargeted at the
overlay; the with-key RFC proof, which hand-mounts its own harness and
moves untouched). The RFC's composed-surface and e2e-tier lines, the
examples index, the AGENTS.md smoke table, and the dsh-tools README
link now describe the overlay shape.
Verified live: overlay keyless smoke, with-key code-mode e2e from its
new home, demo:code-mode banner + EOF exit, and the acp handshake.
2026-07-09 13:02:19 +08:00
|
|
|
config:
|
2026-07-14 21:57:52 +08:00
|
|
|
provider: deepseek
|
refactor: unify the Code Mode demos on base-plus-overlay
Both demo:code-mode UIs now share one mechanism: the base example plus a
same-shaped code-mode.cordis.yml include overlay (insert the worker
runtime, flip tools.mode). Previously the REPL side was a hand-forked
example (examples/code-agent) that had also silently diverged — it
dropped compaction and the subagent stack — so the demo's UI argument
switched agents, not just surfaces. The fork is retired: coding-agent
gains the overlay, a Code Mode README section absorbing code-agent's,
and both of its tests (the keyless boot guard, retargeted at the
overlay; the with-key RFC proof, which hand-mounts its own harness and
moves untouched). The RFC's composed-surface and e2e-tier lines, the
examples index, the AGENTS.md smoke table, and the dsh-tools README
link now describe the overlay shape.
Verified live: overlay keyless smoke, with-key code-mode e2e from its
new home, demo:code-mode banner + EOF exit, and the acp handshake.
2026-07-09 13:02:19 +08:00
|
|
|
model: deepseek-v4-flash
|
|
|
|
|
resumeSessionId: !!js process.env.RESUME_SESSION_ID
|
|
|
|
|
persistenceRoot: './.sessions'
|
2026-07-13 13:56:45 +08:00
|
|
|
workspaceContext:
|
|
|
|
|
maxBytes: 65536
|
refactor: unify the Code Mode demos on base-plus-overlay
Both demo:code-mode UIs now share one mechanism: the base example plus a
same-shaped code-mode.cordis.yml include overlay (insert the worker
runtime, flip tools.mode). Previously the REPL side was a hand-forked
example (examples/code-agent) that had also silently diverged — it
dropped compaction and the subagent stack — so the demo's UI argument
switched agents, not just surfaces. The fork is retired: coding-agent
gains the overlay, a Code Mode README section absorbing code-agent's,
and both of its tests (the keyless boot guard, retargeted at the
overlay; the with-key RFC proof, which hand-mounts its own harness and
moves untouched). The RFC's composed-surface and e2e-tier lines, the
examples index, the AGENTS.md smoke table, and the dsh-tools README
link now describe the overlay shape.
Verified live: overlay keyless smoke, with-key code-mode e2e from its
new home, demo:code-mode banner + EOF exit, and the acp handshake.
2026-07-09 13:02:19 +08:00
|
|
|
tools:
|
|
|
|
|
mode: code
|
|
|
|
|
welcome: 'code-mode agent ready. Give it a multi-tool task.'
|
|
|
|
|
persona: |
|
|
|
|
|
You are coding-agent, a coding assistant powered by the {{model}} model.
|
|
|
|
|
|
|
|
|
|
You work by writing TypeScript programs for run_code: batch related
|
|
|
|
|
tool work into one program, loop and branch where it helps, and print
|
|
|
|
|
or return ONLY the findings that matter.
|
|
|
|
|
- insert:
|
|
|
|
|
- id: code-runtime
|
|
|
|
|
name: '@deepseek-ai/dsh-code-runtime-worker'
|