2026-06-11 12:39:27 +08:00
# Packages
2026-07-26 05:03:53 +08:00
English | [中文 ](README.zh.md )
2026-08-07 14:40:42 +08:00
Packages use the `@deepseek-ai/dsh-*` scope. Cordis `Service` subclasses and function plugins contribute through `ctx.effect()` , `ctx.on()` , or `ctx.waterfall()` . Authoring rules: [package ](AGENTS.md ) and [root ](../AGENTS.md#conventions ).
2026-06-11 12:39:27 +08:00
2026-06-20 23:25:33 +08:00
## Hierarchy
2026-08-07 21:04:33 +08:00
Groups hold `packages/<group>/<pkg>/` ; names stay `@deepseek-ai/dsh-<pkg>` . **Group READMEs own package/ctx-key maps. **
2026-06-20 23:25:33 +08:00
| Group | Role | Release expectation |
|---|---|---|
2026-07-19 13:37:11 +08:00
| [`core/` ](core/README.md ) | Product API spine: sessions, prompts, tools, agent services, and the concrete loop | Product — stable surface |
2026-08-07 15:48:29 +08:00
| [`api/` ](api/README.md ) | Remote BFF assembly and TypeRT RPC gateway | Product — stable surface |
2026-07-28 23:47:57 +08:00
| [`typert/` ](typert/README.md ) | Type graph generation, artifact loading, and runtime registry | Product — stable surface |
2026-08-07 14:40:42 +08:00
| [`goal/` ](goal/README.md ) | Same-session goal persistence and lifecycle | Product — stable surface |
2026-08-09 15:22:53 +08:00
| [`schedule/` ](schedule/README.md ) | Session-local scheduled follow-ups | Product — stable surface |
2026-08-07 14:40:42 +08:00
| [`feedback/` ](feedback/README.md ) | Human feedback | Product — stable surface |
2026-06-20 23:25:33 +08:00
| [`llm/` ](llm/README.md ) | LLM capability family: the abstract service + provider adapters | Product — stable surface |
2026-07-28 18:38:45 +08:00
| [`e2b/` ](e2b/README.md ) | E2B providers | POC |
2026-08-09 15:34:32 +08:00
| [`subprocess/` ](subprocess/README.md ) | Subprocess capability family: Service Definition + local process-tree provider | Product — stable surface |
2026-07-22 02:13:39 +08:00
| [`bash/` ](bash/README.md ) | Bash capability family: executor seam, local impl, model-facing tool | Product — stable surface |
2026-07-21 16:01:00 +08:00
| [`pty/` ](pty/README.md ) | Persistent PTY capability family: owner-scoped sessions, local implementation, and model-facing tools | Product — stable surface |
2026-08-09 15:34:32 +08:00
| [`code-runtime/` ](code-runtime/README.md ) | Code-execution capability family: Service Definition + worker-thread provider + Code Mode Consumer | Product — stable surface |
2026-07-09 15:42:37 +08:00
| [`sandbox/` ](sandbox/README.md ) | Process-confinement seam; bwrap/Landlock/Seatbelt backends | Product — stable surface |
2026-07-22 02:13:39 +08:00
| [`fs/` ](fs/README.md ) | Filesystem capability family: seam, local impl, model-facing file tools, bash-backed discovery tools | Product — stable surface |
2026-07-16 12:05:35 +08:00
| [`lsp/` ](lsp/README.md ) | LSP capability family: seam, generic stdio provider, and the `lsp` tool | Product — stable surface |
2026-07-10 14:19:06 +08:00
| [`skill/` ](skill/README.md ) | Skill capability family: the provider registry, local provider, and model-facing catalog/loader | Product — stable surface |
2026-08-09 15:34:32 +08:00
| [`compact/` ](compact/README.md ) | Compaction capability family: Service Definition + basic provider + command Consumer | Product — stable surface |
2026-07-16 16:01:06 +08:00
| [`context/` ](context/README.md ) | Model-visible request context, including workspace instructions and time context | Product — stable surface |
2026-08-09 15:34:32 +08:00
| [`subagent/` ](subagent/README.md ) | Subagent capability family: the provider-registry contract and the model-facing delegation tool | Product — stable surface |
2026-07-11 23:04:27 +08:00
| [`tasks/` ](tasks/README.md ) | Generic background-task runtime and model-facing `task_*` control tools | Product — stable surface |
2026-08-09 15:34:32 +08:00
| [`workflow/` ](workflow/README.md ) | Workflow seam, worker-thread engine, and model-facing `workflow` /`ralph` tools | Product — stable surface |
2026-07-22 02:13:39 +08:00
| [`web/` ](web/README.md ) | Web capability family: seam, search/fetch provider impls, and the model-facing web tools | Product — stable surface |
| [`spill/` ](spill/README.md ) | Spill capability family: storage seam, local impl, tool-result spill policy | Product — stable surface |
2026-07-28 01:09:55 +08:00
| [`todo/` ](todo/README.md ) | The model-facing `todo_write` tool | Product — stable surface |
2026-07-22 16:57:23 +08:00
| [`plan/` ](plan/README.md ) | Plan collaboration state with a direct entry command and reviewed exit | Product — stable surface |
2026-07-30 03:40:42 +08:00
| [`guard/` ](guard/README.md ) | Loop-hygiene guards: advisory repeat-call reminders + the `tools/execute` deadline enforcer | Product — stable surface |
2026-08-06 04:40:11 +08:00
| [`bundle/` ](bundle/README.md ) | Installable `dsh --profile` patch layers | Product — stable surface |
2026-07-30 03:40:42 +08:00
| [`self-modification/` ](self-modification/README.md ) | The agent modifies its own runtime: inspect the live runtime's plugins and services, mount/unmount model-written plugins ([design ](../.agents/notes/implemented/feature/2026-07-08-self-referential-cordis-toolset.md )) and restricted repository Plugin loading | Product — stable surface |
2026-07-01 00:38:06 +08:00
| [`hooks/` ](hooks/README.md ) | Hook bridges + the shared Claude Code / Codex wire-protocol library | Product — stable surface |
2026-07-30 01:52:06 +08:00
| [`session/` ](session/README.md ) | Durable session data plane: persistence seam + JSONL/SQLite backends, projection seam, log-backed titles, session reporting | Product — stable surface |
2026-07-23 13:56:56 +08:00
| [`session-query/` ](session-query/README.md ) | Session retrieval family: logical corpus, bounded reads, lineage, event relationships, semantic filtering, and SQLite full-text search | Product — stable surface |
2026-07-29 10:24:57 +08:00
| [`settings/` ](settings/README.md ) | User-settings seam + file-backed provider | Product — stable surface |
2026-07-29 14:20:06 +08:00
| [`credentials/` ](credentials/README.md ) | Credential-reference seam + env-over-`.env` provider | Product — stable surface |
2026-07-24 22:49:57 +08:00
| [`storage/` ](storage/README.md ) | Non-session storage hub + backends + domain form | Product — stable surface |
| [`workspace/` ](workspace/README.md ) | Workspace entity | Product — stable surface |
2026-07-30 03:13:49 +08:00
| [`scaffold/` ](scaffold/README.md ) | Create/launch/drive project tooling: helper, launcher, initializer, wire protocol with both ends, launcher telemetry | Product — stable surface |
2026-07-24 01:40:25 +08:00
| [`acp/` ](acp/README.md ) | Automation-only Agent Client Protocol server | Product — stable surface |
2026-07-30 03:13:49 +08:00
| [`interaction/` ](interaction/README.md ) | Human-collaboration plane: approval/interaction seams, permission preset, commands, ask-user tool | Product — stable surface |
| [`boot/` ](boot/README.md ) | Shared app-bin boot glue | Product — stable surface |
2026-07-28 21:52:05 +08:00
| [`host/` ](host/README.md ) | Web-GUI host half: API gateway + HTTP route server | Product — stable surface |
| [`client/` ](client/README.md ) | Web-GUI browser half: shell, wire, object services, slots, `ui-*` plugins | Product — stable surface |
2026-07-28 22:30:12 +08:00
| [`experimental/` ](experimental/README.md ) | Prototypes and internal plugins | Unreleased |
2026-08-04 10:07:17 +08:00
| [`examples/` ](examples/README.md ) | Demo bundles (agent-spine + CLI/ACP/JSON-RPC bins) leaves load | Support — example infra |
2026-07-19 13:11:50 +08:00
| [`support/` ](support/README.md ) | Support infrastructure (testkits, invariants, replay, Loader smokes) | Support — lower compatibility expectations |
2026-07-17 18:35:48 +08:00
| [`util/` ](util/README.md ) | Low-level zero-dependency utilities shared across groups (`Branded<B>` , Harness home/path helpers, timeout, retention) | Support — small, stable, harness-dep-free |
2026-06-20 23:25:33 +08:00
2026-08-09 15:22:53 +08:00
New packages join existing groups; new groups update their README and this table.
2026-06-19 12:42:28 +08:00
2026-07-04 14:22:47 +08:00
## Dependencies
2026-06-11 12:39:27 +08:00
2026-07-09 13:01:14 +08:00
The dependency graph is generated: [docs/module-graph.md ](../docs/module-graph.md ) (`pnpm run gen-module-graph` , freshness-gated in CI).
2026-06-11 12:39:27 +08:00
2026-08-09 15:34:32 +08:00
**Extension plugins depend on Service Definitions, never concrete providers. ** `dsh-agent-loop` is swappable; UI, hook, and tool plugins use `dsh-agent` . Composition bundles, including `dsh-agent-spine-demo` , may depend on spine plugins. Capabilities separate Service Definition / Service provider / Consumer roles when they evolve independently; see [capability seams ](../.agents/notes/implemented/architecture/2026-06-13-capability-seams.md ).
2026-06-11 12:39:27 +08:00
2026-07-14 14:01:35 +08:00
Package READMEs cover purpose, APIs, extension points, and [Model Experience ](../docs/cookbook/adding-a-package.md#4-write-the-package-readme ) unless on the model-agnostic [omission allowlist ](../scripts/verify-package-readme-model-experience.ts ). They also carry `## Known Limitations and Deferred Work` or use its [allowlist ](../scripts/verify-package-readme-limitations.ts ).