CLI
| Command | What it does |
|---|---|
specship init [path] | Initialize SpecShip in a project directory and build the initial index |
specship uninit [path] | Remove SpecShip from a project (deletes .specship/ directory) |
specship index [path] | Index all files in the project |
specship sync [path] | Sync changes since last index |
specship status [path] | Show index status and statistics |
specship statusline | Print a SpecShip status-line segment (reads Claude Code JSON on stdin) |
specship query <search> | Search for symbols in the codebase |
specship files | Show project file structure from the index |
specship reflect [path] | Mine ingested transcripts for self-improvement proposals (memory rules, skills, hooks) |
specship memory | Capture lessons to memory and review/manage stored memory items. |
specship memory capture | Capture a lesson/anti-pattern as a human-gated memory rule (lesson text on stdin). |
specship memory list | List the memory rules SpecShip has applied (reflect-managed store). |
specship memory remove <id> | Remove a SpecShip-managed memory rule by id (previewed; pass —yes to write). |
specship fitness [path] | Check architecture-fitness rules against the code graph (CI gate; exits non-zero on violation) |
specship check [path] | Run the enforcement gate (drift + fitness + maintainability + behaviour); exits non-zero on a gating failure |
specship serve | Start SpecShip as an MCP server for AI assistants, an HTTP API for the desktop UI, or both |
specship unlock [path] | Remove a stale lock file that is blocking indexing |
specship callers <symbol> | Find all functions/methods that call a specific symbol |
specship callees <symbol> | Find all functions/methods that a specific symbol calls |
specship impact <symbol> | Analyze what code is affected by changing a symbol |
specship affected [files...] | Find test files affected by changed source files |
specship install | Install specship MCP server into Claude Code |
specship doctor [path] | Diagnose a SpecShip install (runtime · FTS5 · MCP boot · index). Exits non-zero on a usage-blocking failure. |
specship starter-prompt [path] | Print a suggested first flow/impact prompt for this project (used by the /specship:explore door). |
specship cheatsheet | Print the SpecShip session cheat-sheet (used by the SessionStart hook). |
specship uninstall | Completely remove SpecShip (wiring, indexes, ~/.specship data, and the binary) |
specship drifted [path] | List spec links in concerning states (drifted, broken, orphaned). |
specship domain-gaps [path] | List code entities and specs not yet covered by a domain fact (the domain gap-seed). Feeds the /specship:spec domain … |
specship spec [id] | Spec lifecycle funnel (idea → spec → implemented). With an id, show that spec/brief detail. |
specship workflow <action> [arg] | Workflow engine: list | run |
specship update | Update SpecShip to the latest released version |
specship jira | Connect SpecShip to a JIRA instance (Cloud or Data Center). |
specship jira configure | Save JIRA credentials to ~/.specship/jira.json (0600) and test the connection. |
specship jira test | Test the configured JIRA connection (uses ~/.specship/jira.json or SPECSHIP_JIRA_* env). |
specship jira track | Show each picked JIRA issue with its SpecShip work-state + live JIRA status. |
specship jira release <version> | Set |
Query commands
Section titled “Query commands”query, callers, callees, and impact all accept --json for machine-readable output.
specship query UserService --kind class --limit 10specship callers handleRequest --jsonspecship impact AuthMiddleware --depth 3affected
Section titled “affected”Traces import dependencies transitively to find which test files are affected by changed source files. See Affected Tests in CI for options and a CI example.
drifted
Section titled “drifted”Lists spec links that are drifted, broken, or orphaned. Add --fail-on=broken,drifted,orphaned to exit non-zero, so it works as a CI gate that refuses a PR that breaks a spec link.
specship drifted --fail-on=broken,drifted,orphanedSee Spec links & drift.
workflow
Section titled “workflow”Drives the workflow engine from the terminal — list, run <name>, resume <runId>, cancel <runId>, approve <runId>, reject <runId>, runs. Pass inputs with repeatable -i KEY=VALUE. See Workflows.
specship workflow run spec-implement -i SPEC_ID=REQ-AUTH-005Connects SpecShip to your JIRA board. configure stores credentials at ~/.specship/jira.json (owner-only, 0600); test verifies the connection; track shows the status of the issues SpecShip has picked. The list → pick → start flow itself runs through the MCP tools an agent calls in conversation.
# Cloud (email + Atlassian API token)specship jira configure --base-url https://your-org.atlassian.net --email you@example.com --api-token <token># Data Center / Server (Personal Access Token)specship jira configure --base-url https://jira.your-company.com --pat <token>
specship jira test # Verify the connection ("connected as <name>")specship jira track # Status of picked issues (--project to narrow, --path)The token is never printed and every request is locked to the configured host. See the JIRA integration guide.
Environment variables
Section titled “Environment variables”Every SPECSHIP_* variable the shipped code reads:
SPECSHIP_ADAPTIVE_EXPLORESPECSHIP_ALLOW_UNSAFE_NODESPECSHIP_ASCIISPECSHIP_BIN_DIRSPECSHIP_BUN_BINSPECSHIP_CLAUDE_BINSPECSHIP_COMPACTSPECSHIP_CTX_WARN_PCTSPECSHIP_DAEMON_IDLE_TIMEOUT_MSSPECSHIP_DAEMON_INTERNALSPECSHIP_DEBUGSPECSHIP_DIRSPECSHIP_ENDSPECSHIP_EXPLORE_LINENUMSSPECSHIP_FORCE_WATCHSPECSHIP_HOOKSSPECSHIP_HOST_PPIDSPECSHIP_INSTALL_DIRSPECSHIP_INTEGRATIONSSPECSHIP_JIRA_SPECSHIP_JIRA_API_TOKENSPECSHIP_JIRA_BASE_URLSPECSHIP_JIRA_CA_CERTSPECSHIP_JIRA_CONFIGSPECSHIP_JIRA_DEPLOYMENTSPECSHIP_JIRA_EMAILSPECSHIP_JIRA_INSECURE_TLSSPECSHIP_JIRA_PATSPECSHIP_JIRA_PROJECTSPECSHIP_JIRA_TRANSITION_DONESPECSHIP_JIRA_TRANSITION_IN_PROGRESSSPECSHIP_JIRA_TRANSITION_IN_REVIEWSPECSHIP_LEARNINGSPECSHIP_MAX_DIR_WATCHESSPECSHIP_MCP_DEBUGSPECSHIP_MCP_TOOLSSPECSHIP_MODELSPECSHIP_NO_CHEATSHEETSPECSHIP_NO_DAEMONSPECSHIP_NO_RELAUNCHSPECSHIP_NO_STEERINGSPECSHIP_NO_WATCHSPECSHIP_PPID_POLL_MSSPECSHIP_PREFIXSPECSHIP_PROJECT_ROOTSPECSHIP_RESOLVER_CACHE_SIZESPECSHIP_SDD_HOOKSSPECSHIP_SDD_SECTION_ENDSPECSHIP_SDD_SECTION_STARTSPECSHIP_SERVER_CONFIGSPECSHIP_SQLITE_BACKENDSPECSHIP_STARTSPECSHIP_STATUSLINESPECSHIP_STEER_HOOKSSPECSHIP_TOOLDEF_CHARSSPECSHIP_UNICODESPECSHIP_USAGE_FILESPECSHIP_UV_BINSPECSHIP_VERBOSESPECSHIP_WASM_RELAUNCHEDSPECSHIP_WATCH_DEBOUNCE_MS