2nd dokployH
Find a file
Tianyi Cui b82c310db3 Fix subagent in-process result scoping (Codex review round 1)
Two merge-blocking bugs in the shared in-process run driver, both rooted in
`readResult` scanning the whole child session and deriving the stop reason only
from `turn/end`:

- A pre-turn `cancel()` cleared the queued prompt before any `turn/end` was
  logged, so the run settled `error` instead of `aborted`, violating the
  `SubagentRun.cancel()` contract. The driver now tracks that a cancel was
  requested and maps the no-turn case to `aborted`.
- A fork child whose own turn produced no `assistant/message` returned the
  SEEDED parent's last message as a `completed` success. `readResult` now scopes
  to the child's OWN events (after the seed prefix), so a message-less child
  yields empty output.

Both fixes carry a regression test proven to go red on the pre-fix driver.

Also: correct the `SubagentRun.id` / event-payload docs (it is the child AGENT
id, not a session id — the backend mints distinct tokens); refresh the stale
`coding-agent` welcome string (subagent is now a tool); and replace the stale
`TODO(sub-agents)` "deferred" prose in the Agent interface, core.md, and
architecture.md with an accurate pointer to the realized seam.
2026-06-22 06:47:20 +08:00
.agents/skills docs(rfc): classify RFCs by kind via path-encoded subdirectories 2026-06-20 22:29:45 +08:00
.claude docs: accuracy sweep, architecture restructure, two ADRs, review skill 2026-06-13 22:05:34 +08:00
.github/workflows fix review findings: harden the app bins + built-bin smokes, arch-exception doc, snapshot fixture-guard 2026-06-21 15:39:24 +08:00
docs Fix subagent in-process result scoping (Codex review round 1) 2026-06-22 06:47:20 +08:00
examples Fix subagent in-process result scoping (Codex review round 1) 2026-06-22 06:47:20 +08:00
packages Fix subagent in-process result scoping (Codex review round 1) 2026-06-22 06:47:20 +08:00
scripts Fix review findings: lifecycle containment, configurable tool name, coverage, type catalog 2026-06-21 23:15:43 +08:00
vendor feat: migrate to pnpm 2026-06-16 14:55:37 +08:00
.gitignore fix(ui-stdio): cancel EOF-exit timer on dispose; harden config defaults; doc fixes 2026-06-19 14:53:07 +08:00
AGENTS.md Add in-process subagent backends: spawn (fresh) and fork (seeded) 2026-06-22 05:58:40 +08:00
CLAUDE.md Initialize repo with README, AGENTS.md, and CLAUDE.md symlink 2026-06-10 22:58:56 +08:00
eslint.config.mjs Reorganize packages into a modular hierarchy 2026-06-20 22:55:20 +08:00
knip.json Add in-process subagent backends: spawn (fresh) and fork (seeded) 2026-06-22 05:58:40 +08:00
lefthook.yml feat(acp-example): snapshot harness, normalizers, wiring, and handshake scenario 2026-06-19 03:36:12 +08:00
LICENSE Initialize repo with README, AGENTS.md, and CLAUDE.md symlink 2026-06-10 22:58:56 +08:00
package.json refactor(examples): extract the app spine into dsh-agent-core + app packages 2026-06-21 12:06:38 +08:00
pnpm-lock.yaml Add in-process subagent backends: spawn (fresh) and fork (seeded) 2026-06-22 05:58:40 +08:00
pnpm-workspace.yaml Reorganize packages into a modular hierarchy 2026-06-20 22:55:20 +08:00
README.md feat: migrate to pnpm 2026-06-16 14:55:37 +08:00
tsconfig.base.json Add subagent capability seam: interface, mock backend, model-facing tool 2026-06-21 22:31:56 +08:00
tsconfig.build.json Add in-process subagent backends: spawn (fresh) and fork (seeded) 2026-06-22 05:58:40 +08:00
tsconfig.json Fix CI: order steps by artifact dependency, resolve fresh-clone builds 2026-06-11 23:10:43 +08:00
tsconfig.test.json Reorganize packages into a modular hierarchy 2026-06-20 22:55:20 +08:00
tsconfig.typecheck.json Add subagent capability seam: interface, mock backend, model-facing tool 2026-06-21 22:31:56 +08:00
tsdown.config.ts Reorganize packages into a modular hierarchy 2026-06-20 22:55:20 +08:00
vitest.config.ts refactor(examples): extract the app spine into dsh-agent-core + app packages 2026-06-21 12:06:38 +08:00
vitest.e2e.config.ts Reorganize packages into a modular hierarchy 2026-06-20 22:55:20 +08:00
vitest.snapshot.config.ts ci+fix: run snapshot tests in CI and load .env only when recording 2026-06-19 04:28:09 +08:00

DeepSeek Harness

Monorepo for the DeepSeek Harness group.

Projects

  • DeepSeek Code — DeepSeek's coding agent product.

Development

This monorepo is built on the Cordis framework (vendored as source under vendor/), microkernel-style: everything is a plugin.

pnpm install
pnpm run test          # vitest
pnpm run demo:echo     # runnable echo-agent example (no API key needed)
pnpm run demo:coding   # the real DeepSeek coding agent (needs DEEPSEEK_API_KEY)

For humans, start with the development guide for local setup, hooks, environment variables, and quality gates, then read the architecture design before package work. Local context lives in packages/ and vendor/.

For agents, follow AGENTS.md.