Skip to main content

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.

cmdop-claude

~$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/*.md with paths: frontmatter so rules load lazily (only when relevant files are open). Use sidecar_add_rule to persist discovered patterns.
  • Docs search (FTS5)docs_search / docs_get with BM25 full-text search. No external service.
  • Docs semantic searchdocs_semantic_search via sqlite-vec embeddings. Build index with make embed-docs.
  • Plugin browser — searches Smithery + Official MCP registries (~1000 plugins).
  • Skill Studio — install, browse, edit Claude Code skills from claude-plugins.dev.
  • Changelog systemchangelog/vX.Y.Z.md per release. changelog_list / changelog_get MCP 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.

Health Auditor MCP Studio & Plugins
Plugin Browser Project Map
Task Queue Sidecar Monitor

Docs


Testing

make test   # 455+ tests

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cmdop_claude-0.1.75.tar.gz (522.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cmdop_claude-0.1.75-py3-none-any.whl (562.8 kB view details)

Uploaded Python 3

File details

Details for the file cmdop_claude-0.1.75.tar.gz.

File metadata

  • Download URL: cmdop_claude-0.1.75.tar.gz
  • Upload date:
  • Size: 522.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for cmdop_claude-0.1.75.tar.gz
Algorithm Hash digest
SHA256 d2c5d05690d07dcad08d021ffbe26864c3eb5af6bb7e56438f7493d457467a89
MD5 3cf9092ef6c4e836f1a56c935679e369
BLAKE2b-256 40c35a69df439b2a4a18f7ae684f57d04538df16c0ab7f5b13789999df1f0d5f

See more details on using hashes here.

File details

Details for the file cmdop_claude-0.1.75-py3-none-any.whl.

File metadata

  • Download URL: cmdop_claude-0.1.75-py3-none-any.whl
  • Upload date:
  • Size: 562.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.18

File hashes

Hashes for cmdop_claude-0.1.75-py3-none-any.whl
Algorithm Hash digest
SHA256 031ca7a739f6bcc51a8e476a0fd45fec230d47d3cf5d4559212579817d31bc63
MD5 75cf23c0087822ddd7128762d2c708e6
BLAKE2b-256 8b06c4658fff932dcab0417be42fde1dd6c49d7d877cf8574d77b6b81065c729

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page