Capability Overview

Capability Overview

Every capability package in Dsh-Go follows the Capability Seam pattern: service definition + provider, where replacing the provider changes the overall behavior. The following are grouped by functional domain.

Core Runtime

PackageCapability
pkg/sessionEvent Sourcing, event vocabulary, fold, invariants, incremental projection
pkg/agentAgent registry, Turn/Step loop, cancellation reasons, request-error retry
pkg/toolsfour-stage pipeline, execution context, presentation, limits, schema, preservation
pkg/llmLLM seam, streaming protocol, failure classification, retry, cache probe

Planning Primitives

PackageCapability
pkg/goal / pkg/todoGoal State Machine (four states + stable error codes), Todo whole replacement
pkg/plan / pkg/skillsplan patterns, skills system (6-layer provider)

Persistence & Storage

PackageCapability
pkg/persistence / pkg/storageJSONL (sharding/async) and SQLite backends, CAS storage domain

Subagents & Workflow

PackageCapability
pkg/subagent / pkg/workflow / pkg/mcpsubagents, workflow engine, MCP client→tool bridge

Files & Processes

PackageCapability
pkg/fs / pkg/shell / pkg/subprocess / pkg/jobs / pkg/terminalfile & process execution, jobs, terminal

Configuration & Security

PackageCapability
pkg/settings / pkg/credentials / pkg/approval / pkg/sandbox / pkg/scopeconfiguration, credentials, approval, sandbox, scope

Observability

PackageCapability
pkg/telemetry / pkg/tokenmeter / pkg/feedback / pkg/sessionqueryobservability, metering, feedback, search