Developer CLI for Blitz locker-room: spec-driven playbooks, a codebase/huddle ontology graph with an MCP tool, and the composable watcher/trainer/graph containers.
Project description
blitz-cli
Developer CLI for the Blitz locker-room: spec-driven playbooks for your coding agent, a local ontology graph of your codebase/huddles/features (served to agents over MCP), and the composable containers that keep it fresh.
pip install blitz-cli
The core CLI is stdlib plus rich. Two optional extras carry heavier deps only
when you need them: blitz-cli[locker-room] (the MCP server) and
blitz-cli[train] (the QLoRA trainer).
Top-level commands: playbooks, locker-room, activity.
Playbooks: spec-driven development commands
blitz playbooks init installs a set of spec-driven-development slash-commands
into a repo, rendered for whichever agent you use (Claude Code, Cursor, GitHub
Copilot, Gemini CLI, OpenCode), plus a shared .playbooks/ working area.
blitz playbooks init # auto-detect the agent(s) in this repo
blitz playbooks init --agent claude # or target one explicitly
blitz playbooks init --all # install for every supported agent
The commands are specify, plan, tasks, implement, playbook, clarify,
and analyze. Run at a folder of repos, init installs into each repo it finds
(recursing through non-git folders) and adds a workspace-level /huddle command
for coordinating a feature across repos. Use --ignore PATH to skip a repo and
--root to force a single install.
Locker-room: ontology graph, watcher, trainer, MCP
blitz locker-room init scaffolds a docker-compose.yml that pulls prebuilt
images (from sparepartslabs/blitz-locker-room, pinned to this CLI version) for
three roles sharing ./data:
- watch: ingests your coding agent's session transcripts into a corpus.
- graph: rebuilds an ontology of your playbook-enabled repos, huddles,
features, and their code lineage into
data/ontology.dbon a loop. - mcp: serves that ontology to agents over SSE.
blitz locker-room init # write ./locker-room/docker-compose.yml
cd locker-room
blitz locker-room up # start watch + graph + mcp
blitz locker-room logs
The ontology is also usable directly on the host, no containers required:
blitz locker-room ontologize # scan a workspace into ./data/ontology.db
blitz locker-room list # list playbook-enabled repos + their active feature
blitz locker-room mcp # stdio MCP server for a local agent
The graph an agent can query
ontologize reuses playbook discovery and static code parsing (Python symbols +
imports + calls; File nodes for other languages) to build a graph of Workspace,
Repo, AgentTool, Playbook, Feature (with lifecycle stage), Huddle,
File, and Symbol nodes. Each feature's git branch diff links it to the code
it touches (Feature -TOUCHES-> File/Symbol), so an agent can walk a spec out to
the full lineage of code it implements, and back. The MCP tools expose this:
list_repos, get_repo, list_huddles, get_huddle, get_playbooks,
get_lineage, impact_of, get_file, get_symbol, and a generic neighbors.
Training (optional)
blitz locker-room train runs an on-demand QLoRA fine-tune of the watcher corpus
in the trainer container (needs a GPU); adapters land in ./train-out. Override
the base model with BASE_MODEL_HF or blitz locker-room init --base-model.
Activity: replay a coding-agent session
blitz activity reads your coding agent's own local session transcripts
(currently Claude Code's, at ~/.claude/projects) for the current repo and
replays each prompt alongside the actions taken to resolve it (tool calls,
sub-agents) and the final response:
blitz activity --list # sessions for this repo, most recent first
blitz activity # the most recent session's timeline
blitz activity <session-id-prefix> # a specific session
blitz activity --full # untruncated prompts/responses/tool I/O
blitz activity --html report.html # also write a self-contained HTML report
The terminal view is compact by default; --full shows untruncated text. The
HTML report includes each action's full tool input/output, collapsed per action.
Each turn shows its raw token usage and, where a pre-edit backup exists, a real
diff of what an Edit/Write changed. Point at a different transcript root with
--sessions-dir. This only reads local session data, no project id or API key.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file blitz_cli-0.7.0.tar.gz.
File metadata
- Download URL: blitz_cli-0.7.0.tar.gz
- Upload date:
- Size: 111.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7c756228e7fd48873e9255f0fdfd5e4e8a13c7dedf23945a244af26f6fa1920
|
|
| MD5 |
8e8a59d1e7e98ac7ec39a14a59d7d55c
|
|
| BLAKE2b-256 |
78ce053855f0123f9c69ca4b4adc3dc2eee70ba1a88f2425cc30b3ec5ec36da6
|
Provenance
The following attestation bundles were made for blitz_cli-0.7.0.tar.gz:
Publisher:
publish.yml on sparepartslabs/blitz-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
blitz_cli-0.7.0.tar.gz -
Subject digest:
a7c756228e7fd48873e9255f0fdfd5e4e8a13c7dedf23945a244af26f6fa1920 - Sigstore transparency entry: 2166694846
- Sigstore integration time:
-
Permalink:
sparepartslabs/blitz-cli@0c27d64d38399351bf7ebdde05d00e43f1d6d769 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/sparepartslabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0c27d64d38399351bf7ebdde05d00e43f1d6d769 -
Trigger Event:
push
-
Statement type:
File details
Details for the file blitz_cli-0.7.0-py3-none-any.whl.
File metadata
- Download URL: blitz_cli-0.7.0-py3-none-any.whl
- Upload date:
- Size: 120.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4f59d42c264712d9d662bc65a241bfc812f869f01fce5d1a74e554c360e37cb
|
|
| MD5 |
d25d669c8db4393fdd6df7d64f738815
|
|
| BLAKE2b-256 |
625a54bac0bfe5d6e7dc3512fc02d2fd0e84348f8778eb65161bb03c5c6f7b59
|
Provenance
The following attestation bundles were made for blitz_cli-0.7.0-py3-none-any.whl:
Publisher:
publish.yml on sparepartslabs/blitz-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
blitz_cli-0.7.0-py3-none-any.whl -
Subject digest:
f4f59d42c264712d9d662bc65a241bfc812f869f01fce5d1a74e554c360e37cb - Sigstore transparency entry: 2166694851
- Sigstore integration time:
-
Permalink:
sparepartslabs/blitz-cli@0c27d64d38399351bf7ebdde05d00e43f1d6d769 -
Branch / Tag:
refs/tags/v0.7.0 - Owner: https://github.com/sparepartslabs
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@0c27d64d38399351bf7ebdde05d00e43f1d6d769 -
Trigger Event:
push
-
Statement type: