Skip to content

Appendix C · Official Docs Index

Word count~1,710 wordsTime~5 minLevelReference

The dsh official repo's documentation is all in the GitHub repo's docs/ directory and each package's README. Categorized by use, jump directly when you need to dive into a topic.

Core Docs

DocContentWhen to read
READMEProject overview, design philosophy, quick start, four runtime modesFirst encounter, want to quickly understand the whole picture
architecture.mdOverall architecture design: Cordis plugin framework, plugin tree, Profile, Bundle, layered config loading orderWant to understand exactly how "everything is a plugin" is implemented
Root AGENTS.mdRepo structure, per-package directory organization, dev environment setupWant to read source or submit a PR to the official repo
docs/AGENTS.mdDoc dev manual: specifies what each kind of doc should and shouldn't contain, doc layering standardWant to submit a PR to the official docs, or learn the doc organization conventions

Subsystem Docs (subsystems/)

The official team wrote a separate doc for each core subsystem, 40+ in total. Each explains: what this subsystem is, what data structures it flows, what ctx services and events it provides. All in the docs/subsystems/ directory.

SubsystemWhat it covers
sessionSession management: create, resume, fork, persistence, event stream
agent-loopAgent loop: think → call tool → see result iteration mechanism
toolsTool registration, Schema, execution pipeline, approval, sandbox
llmModel adaptation, Provider, request/response, cache
skillsSkill discovery, loading, invocation mechanism
subagentSubagent scheduling, two modes (spawn / fork), result aggregation
workflowWorkflow orchestration, multi-step chains
sandboxFile sandbox, three permission levels, approval flow
trajectoryTrajectory recording, replay, export
credentialsCredential management, write-only storage, redaction
mcpMCP client, server integration, tool bridging
compactionContext compression, trigger timing, summary generation

Subsystem docs are in alphabetical order; when you need to dive into a mechanism, find the corresponding file directly.

Cookbook

The official step-by-step hands-on tutorials are in the docs/cookbook/ directory.

TutorialWhat it teaches
Add a packageHow to add a new npm dependency to dsh
Add a toolHow to write a custom tool and register it with the Agent
Add an LLM adapterHow to connect a new model provider
Extend plugin formsHow to write client plugins, UI plugins, bundles
Custom ProfileHow to create a brand new profile combination

Cookbook is "follow along and it runs" tutorials, more hands-on than the subsystem docs.

CLI Reference

apps/cli/reference/README.md — the complete behavior reference for the dsh command line, including argument parsing, profile launch flow, exact behavior of each subcommand. Look this up when writing scripts or troubleshooting.

Per-package READMEs

The repo is a monorepo, with 49 groups under packages/, each with its own README. Commonly used ones:

PackageRole
@deepseek-ai/dshMain entry, CLI binary
@deepseek-ai/cordisUnderlying plugin framework
@deepseek-ai/dsh-web-appWeb UI front-end
@deepseek-ai/dsh-headlessHeadless runtime
@deepseek-ai/dsh-mcp-clientMCP client plugin
@deepseek-ai/dsh-tool-skillSkill tool plugin

How to use this index

  1. Want to understand a concept → read README and architecture.md first
  2. Want to understand a mechanism → find the corresponding subsystem under subsystems/
  3. Want to make something by following along → find the corresponding tutorial under cookbook/
  4. Unsure about command behavior → check CLI reference
  5. Want to see a specific package's implementation → find the corresponding package's README under packages/

Open Source · MIT · Community Driven