Self-maintaining .claude/ runtime — LLM-powered doc review, project map, task queue, auto-fix, and project init
Project description
cmdop-claude
Self-maintaining .claude/ runtime for Claude Code. Keeps your project documentation accurate, your context lean, and your LLM session aware of what matters — automatically.
~$0.003 per full cycle (scan → review → fix → map) using DeepSeek V3.2.
What it does
- Documentation review — LLM finds stale docs, contradictions, coverage gaps, abandoned plans. Runs automatically once per day.
- Project map — annotates directories with one-sentence descriptions. Cached by SHA256; only changed dirs cost tokens.
- Task queue — review findings become structured tasks (
T-001.md, ...). Top pending items injected into every prompt automatically. - Auto-fix — LLM generates targeted file edits for any task. Preview diff or apply directly.
- Project init — bootstraps
CLAUDE.md+rules/from scratch using a two-step LLM pipeline. - Rules system — generates
.claude/rules/*.mdwithpaths:frontmatter so rules load lazily (only when relevant files are open). Usesidecar_add_ruleto persist discovered patterns. - Docs search (FTS5) —
docs_search/docs_getwith BM25 full-text search. No external service. - Docs semantic search —
docs_semantic_searchvia sqlite-vec embeddings. Build index withmake embed-docs. - Plugin browser — searches Smithery + Official MCP registries (~1000 plugins).
- Skill Studio — install, browse, edit Claude Code skills from claude-plugins.dev.
- Changelog system —
changelog/vX.Y.Z.mdper release.changelog_list/changelog_getMCP tools. - Auto-update — checks PyPI once per 6 hours, upgrades silently in background.
- Streamlit dashboard — 12-tab UI for all of the above.
Install
pip install cmdop-claude
# With Streamlit dashboard
pip install 'cmdop-claude[ui]'
Quick Start
pip install 'cmdop-claude[ui]'
cd your-project
python -m cmdop_claude.sidecar.hook setup
setup registers the MCP server, installs hooks, configures .claude/, and generates docs if none exist.
Then set your API key:
export OPENROUTER_API_KEY=sk-or-... # OpenRouter (recommended)
export OPENAI_API_KEY=sk-... # OpenAI
export SDKROUTER_API_KEY=... # SDKRouter
Or configure it in the dashboard: make run → Settings & Security → LLM Provider.
Uninstall
python -m cmdop_claude.sidecar.hook unregister
MCP Tools (quick reference)
| Tool | Description |
|---|---|
sidecar_scan |
Run documentation review |
sidecar_map |
Generate/update project map |
sidecar_tasks |
List/create/update tasks |
sidecar_fix |
Generate fix for a task |
sidecar_init |
Bootstrap .claude/ for bare projects |
sidecar_add_rule |
Add/update a rule in .claude/rules/ |
docs_search |
Full-text search across bundled + custom docs |
docs_semantic_search |
Semantic vector search over docs |
changelog_list / changelog_get |
Browse release history |
→ Full table with all 19 tools: docs/mcp-tools.md
Dashboard
make run # http://localhost:8501
12 tabs: Overview, Project Map, Task Queue, Changelog, Skills, Plugins, Docs, MCP, Hooks, Settings, Sidecar, Trigger Graph.
Docs
- MCP Tools — all 19 tools, query syntax
- Configuration — LLM providers, env vars, docs sources, vector index
- CLI Reference — all commands + Python API
- Architecture — how it works, source tree, file layout
- Cost — token usage per operation
Testing
make test # 455+ tests
License
MIT
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 cmdop_claude-0.1.78.tar.gz.
File metadata
- Download URL: cmdop_claude-0.1.78.tar.gz
- Upload date:
- Size: 522.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
59b5c553112e3d0217d231669f84acb5e052af084a2b42bb572068762b505fd7
|
|
| MD5 |
4efd1f963c33629cbbbe3e0f81cdf107
|
|
| BLAKE2b-256 |
f9a96fbf714626b233e4d9aebfb621d95c550ab00610640fd966947be5688d7e
|
File details
Details for the file cmdop_claude-0.1.78-py3-none-any.whl.
File metadata
- Download URL: cmdop_claude-0.1.78-py3-none-any.whl
- Upload date:
- Size: 563.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0896f502a18b950e980e3aaacd3ecf868748edc3fad9709d42bd00db1fdbae59
|
|
| MD5 |
adcfa3551a21560bd5c9aeee755ab45e
|
|
| BLAKE2b-256 |
5cc6e64655aa22d2d94da227cff4129940687efd813a48db1ea3119dabc15363
|