2nd dokployH
Find a file
Tianyi Cui 25eccdaedc Fix review findings: lifecycle containment, configurable tool name, coverage, type catalog
Address four findings from the first Codex review round:

- Contain subagent/start|end listener throws (emitContainedStart/End): a
  thrown lifecycle listener could escape SubagentService.start() before the
  caller received the live run to dispose it (a leaked child), and a thrown
  subagent/end listener could surface as an unhandled rejection on the detached
  result-settle hook. Both emits now log-and-contain, mirroring the agent
  registry's agent/created|disposed containment.
- Make the model-facing tool name configurable (Config.toolName, default
  subagent). The docs say to load dsh-tool-subagent once per provider to expose
  multiple transports, but the hardcoded name made the second load throw a
  duplicate-tool-name error; a distinct toolName per load is now required and
  documented.
- Reach the per-file 100% coverage gate: tests for the subagent/end error
  branch, lifecycle-listener containment, every stopReasonError arm + the
  merge-extensible default, the multi-provider toolName path, agentOptions
  forwarding, and the direct-apply schema-bypass fallbacks.
- Document the seam vocabulary in docs/core-data-structures/subagent.md with
  verbatim type-equiv blocks + manifest entries, and link it from core.md (a
  brand-new core/seam type the doc-sync gate cannot detect on its own).
2026-06-21 23:15:43 +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 review findings: lifecycle containment, configurable tool name, coverage, type catalog 2026-06-21 23:15:43 +08:00
examples fix review findings: require session.jsonl for every snapshot scenario 2026-06-21 15:46:38 +08:00
packages Fix review findings: lifecycle containment, configurable tool name, coverage, type catalog 2026-06-21 23:15:43 +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 Merge remote-tracking branch 'origin/worktree-simplify-extract-examples' into worktree-lessons-learned 2026-06-21 20:22:47 +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 fix review findings: harden the app bins + built-bin smokes, arch-exception doc, snapshot fixture-guard 2026-06-21 15:39:24 +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 subagent capability seam: interface, mock backend, model-facing tool 2026-06-21 22:31:56 +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 subagent capability seam: interface, mock backend, model-facing tool 2026-06-21 22:31:56 +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.