Expand description
Command implementations for the scc CLI (docs/API_AND_INTEGRATIONS.md §4).
Structs§
- Task
Context Artifact - THE one complete task artifact (transport parity): the enriched task pack AND its surface delta derived together, from ONE builder.
Enums§
Functions§
- build_
enriched_ task_ pack - pack with scorer + beads + hindsight and its post-enrichment token
count. NO Surface delta, NO ContextLedger mutation, NO visibility side
effects. Pack-only callers (
context compress,build_task_pack) MUST use this — NEVERbuild_task_context, which also builds a delta and records its rendered ids in the ledger: throwing the delta away would mark Surface APIs “already visible” the agent never saw, breaking the ledger invariant (ledger = content actually shown to the agent). - build_
task_ context - Build the complete task artifact: scorer + beads + hindsight enrichment
for the pack, then the SAME-scorer task delta against the ledger.
hookkeeps the whole focus within the §37 1500-token cap (the delta gets what the pack leaves); an explicit budget caps the total; the default gives the delta its owntask_deltaslice. - build_
task_ pack - half built by the pure
build_enriched_task_pack— NO delta, NO ledger side effects. New transports should callbuild_task_contextdirectly so the delta ships with the pack. - cmd_
adapters scc adapters— list enabled adapters with their declared capability scope (security audit; docs/SECURITY.md §6).--jsondumps the full capability manifests instead.- cmd_
atlas scc atlas [--budget N] [--json]— the full System Atlas.- cmd_
beads scc beads— list active (in-progress) tasks from.beads/issues.jsonl(task state, not system facts).- cmd_
check_ invariants - scc verify –graph-invariants: structural checks for CI.
- cmd_
checkpoint_ load - cmd_
checkpoint_ save - cmd_
ci_ check scc ci check(docs/DEPLOYMENT_AND_INFRA.md §3, EPIC-180 CI policies): graph invariants + drift severity policy. Exits nonzero on violation.- cmd_
cochange scc cochange: print the git co-change pairs (files changed together across commits) and, when an indexed store exists, enrich its components with the signal.- cmd_
context_ component - cmd_
context_ docs scc context docs <dependency>— external library docs via Context7 (labeled external; never mixed with repository facts).- cmd_
context_ flow - cmd_
context_ startup scc context startup [--budget N]— the Wave 14 startup artifact: the Atlas + Surface fusion, deterministic per epoch (prompt-cache stable). Records what the session just showed in the context ledger so task deltas suppress already-visible APIs.- cmd_
context_ structural scc context structural --files <paths...> | --task "<goal>" [--budget N]— the Structural Source product surface (fixwave Item 7): the per-file signature/structural representation of the requested files, or of the files matched to a task goal. Returns the rendered text so every transport (CLI, MCP) shares one implementation.- cmd_
context_ subagent - Subagent context policy (SCC-107, docs/API_AND_INTEGRATIONS.md §5): a narrower, tighter-budget task pack with explicit scope boundaries so delegated agents start from the same system model without re-deriving it.
- cmd_
context_ task scc context task <goal> [--budget N] [--json] [--hook]— the complete task focus. Text and JSON are TWO VIEWS OF ONE ARTIFACT built bybuild_task_context: JSON carries{pack, delta, delta_ids}, text prints pack content followed by the delta — identical derivation, no transport downgrades quality.- cmd_
context_ task_ json - The complete task artifact as JSON — the same derivation as CLI text
(
{pack, delta, delta_ids}); serialization is the only difference. - cmd_
diagram scc diagram— SCC-native architecture diagram (SPEC-SCC-VIEWER §1). L1 nodes plus capped architectural edges plus flow subgraphs, as Mermaid (default) or dependency-free SVG. Deterministic: same index, same bytes.- cmd_
diff - cmd_
doctor scc doctor— integration health from THE Integration Registry (scc_indexer::adapters::integration_registry), offline, read-only and fast. Default never touches the network and never spawns a subprocess: every row is answered from local state only (config flags, binary on PATH, files present, evidence already in the graph).--deepmay start LOCAL subprocesses (pyright/tsserver handshakes);--networkmay test remote endpoints (Context7).--strictturns warnings into a nonzero exit;--jsonemits the machine-readable report.- cmd_
drift - cmd_
export - cmd_
history - cmd_
impact - cmd_
import - cmd_
important scc important [--limit N] [--component C] [--task G] [--json]— the fast “where do I pay attention first” answer (audit item 3). Global mode ranks by architectural centrality (global PPR + badges); –task re-ranks by task PPR and renders TASK-CRITICAL SYMBOLS. –component filters to one component substring. No new MCP tool: the section also ships inside startup/task context.- cmd_
index - cmd_
index_ paths - cmd_
ingest_ runtime - cmd_
init - cmd_
languages scc languages— generated support matrix. Never hand-maintain a second list in CLI copy.- cmd_
lessons_ add scc lessons add <text>— append one durable lesson to<root>/.scc/lessons.jsonl(the Hindsight memory bank). The bank is ingested into the System IR withscc import hindsight .scc/lessons.jsonl.- cmd_
lessons_ list scc lessons— list stored lessons from the System IR (most important first, same ordering as the context-pack enrichment).- cmd_
list_ components - cmd_
list_ flows - cmd_mcp
- cmd_
operations scc operations [--describe ID]: introspection over the registry.- cmd_
overview - cmd_
plugin_ check scc plugin check: verify live plugins against .scc/plugins.lock.- cmd_
plugin_ describe scc plugin describe <id>.- cmd_
plugin_ doctor scc plugin doctor.- cmd_
plugin_ invoke scc plugin invoke <operation> [json-input].- cmd_
plugin_ list scc plugin list: enabled plugins with lock entries (engine owns the set).- cmd_
plugin_ lock scc plugin lock: write .scc/plugins.lock from the live set.- cmd_
query - cmd_rpc
scc rpc --stdio: structured JSON-RPC (SDK subprocess mode).- cmd_
runtime_ reconcile - cmd_
runtime_ status - cmd_
serve - cmd_
setup_ claude - cmd_
setup_ detected scc setup(no subcommand): install for every detected harness and print one summary, including the manual steps setup cannot perform (Codex hooks live in user scope).scc setup allskips detection and installs for every harness unconditionally.- cmd_
snap scc snap— Snapcompact-style bitmap export (SPEC-SCC-VIEWER §3). Default OFF: requires--outtext plus--png(or configcontext.snap_enabled) to render; otherwise prints the map text and the pinned Pillow recipe so the operator sees exactly what would ship.- cmd_
snapshot_ diff - cmd_
snapshot_ save - cmd_
snapshot_ show - cmd_
status - cmd_
surface scc surface [--task "<goal>"] [--budget N] [--explain]— the System Surface Map: the actual callable API layer, global or task-personalized. BOTH modes run the ONE authoritative service —build_surface(Global or Task) — so the CLI, MCP, hermes, and the SDKs render the same artifact for the same request (no parallel pipelines). The rendered entries are recorded in the context ledger.- cmd_
system - cmd_
verify - cmd_
view scc view— local web viewer (SPEC-SCC-VIEWER §2). Serves the loopback viewer routes on an ephemeral port (or--port), then opens the browser unless--no-open.- cmd_
watch - detect_
harnesses