Skip to content

CLI Reference

cspace provides a comprehensive set of commands for managing devcontainer instances, running autonomous agents, and coordinating multi-agent workflows.

CommandDescription
cspace upCreate/reconnect instance and launch Claude Code
cspace sshShell into a running instance
cspace listList running instances
cspace portsShow port mappings for an instance
cspace downDestroy instance and volumes
cspace warmPre-provision containers without launching Claude
cspace rebuildRebuild the container image (with --reindex to also refresh search on every running instance)
CommandDescription
cspace coordinateLaunch a multi-task coordinator agent
cspace up --prompt-fileRun a one-shot agent with a free-text prompt
CommandDescription
cspace sendInject a user message into a running agent session
cspace send _coordinatorSend a message to the coordinator
cspace interruptInterrupt a running agent session
cspace agent-statusShow supervisor status as JSON
cspace restart-supervisorRestart agent supervisor (preserves workspace)
CommandDescription
cspace initInitialize cspace project configuration
cspace self-updateUpdate cspace to the latest version
CommandDescription
cspace search initBootstrap search for a project: writes search.yaml, installs lefthook hooks, runs initial indexes.
cspace search code "<query>"Natural-language search over the code corpus.
cspace search commits "<query>"Same, against the commit history corpus.
cspace search context "<query>"Same, against the .cspace/context/ planning artifacts.
cspace search issues "<query>"Same, against the repo’s GitHub issues and PRs.
cspace search {code,commits,context,issues} index(Re)build the named index. Auto-runs on commit via lefthook if installed.
cspace search {code,commits,context,issues} clustersDiscover thematic clusters and write cluster_id into the index.
cspace search mcpStdio MCP server exposing all four corpora as tools (launched by Claude via .mcp.json, not invoked directly).

See Semantic Search for a conceptual overview, corpus selection guidance, and MCP tool contracts.

CommandDescription
cspaceInteractive TUI menu (requires gum)
cspace versionShow cspace version
cspace helpShow help text
cspace context-serverStdio MCP server exposing .cspace/context/ (launched by Claude via .mcp.json, not invoked directly). See Project Context.