ctxpilot builds a living summary of your project and injects it into every AI tool you use. Auto-updates after every git commit. Works with Cursor, Claude Code, Codex, and Windsurf.
npm install -g @ctxpilot/ctxpilot
ctx init
Scans your codebase with AI. Builds a Living Context Document from your files, git history, and answers to 3 quick questions.
ctx setup
Hooks into every AI tool you have installed. Writes MCP configs, CLAUDE.md, Cursor rules, and Codex skills automatically.
ctx watch
Starts a background daemon. Detects git commits. Auto-updates the LCD. You never run ctx update manually again.
ctx setup auto-detects installed clients and writes configs in one command.
| ctx init | Scan codebase and build the first LCD |
| ctx setup | Write MCP configs and rule files for all installed clients |
| ctx watch | Start background daemon, auto-update on git commits |
| ctx update | Run one incremental update now |
| ctx build | Rebuild LCD from scratch, archive previous |
| ctx show | Print current LCD with token count |
| ctx inject | Output LCD as XML/markdown/plaintext for manual paste |
| ctx signal "text" | Add a manual note for next update |