Context Autopilot mines your real coding-agent sessions — every instruction you repeated, every correction you made, every action you rejected — and distills them into CLAUDE.md / AGENTS.md rules you approve. Automated context collection, grounded in evidence.
$ npx context-autopilot scanYour session history is the highest-signal context source that exists — it's a literal record of what your agent got wrong and what you had to say to fix it. Autopilot turns it into durable context.
ctxlayer scan reads your local Claude Code transcripts and Cursor sessions and finds three kinds of evidence: instructions you repeated across sessions, corrections you made after the agent went wrong, and tool calls you rejected.
ctxlayer distill sends the signals — not your whole history — through Claude and gets back imperative, project-specific rules. Each one carries the quotes that justify it. Generic advice gets filtered out.
ctxlayer apply shows each proposal with its rationale and evidence. Accepted rules land in a managed block inside CLAUDE.md and AGENTS.md — your hand-written content is never touched.
Run against an actual SaaS project's session history, Autopilot surfaced rules like these — each one a convention the developer had already taught the agent the hard way:
Research on LLM-generated CLAUDE.md/AGENTS.md files found they reduce task success and raise inference cost — repo scans produce generic filler the model then has to wade through. A focused 50-line file beats a sprawling 1,000-line one.
When you tell an agent "no — like this" you are labeling training data for free. Autopilot only proposes rules your own words support, quotes them as evidence, and prefers fewer, higher-confidence rules over volume.
Output lands in both CLAUDE.md and AGENTS.md, so Claude Code, Cursor, Copilot, Codex, and 30+ other agents all benefit. And ctxlayer stale catches the reverse problem: context your repo has outgrown — missing files, removed npm scripts — before it misleads an agent. CI-friendly (exit 1 on findings).
ctxlayer distill --global mines all your projects across all your tools for rules about how you work — "explain in plain English", "don't build while I'm brainstorming", "parallelize independent tasks" — and maintains them in your personal ~/.claude/CLAUDE.md. No other tool does evidence-based personal context. It's the first step toward the endgame: agents that absorb how you work without you ever "building an agent."
An independent, curated map of the context layer — who does what, without the vendor slant. Updated continuously.