How to use it
Field claims vs numbers live on compare and limits. This page is the work.
Onboard a repo
Section titled “Onboard a repo”cd your-repoctx-optimize upup writes .ctxoptimize/ if needed (commit that), gathers into
~/ctxoptimize/<name>/, and is a no-op when the store is already fresh. Monorepos: it
scans modules; curate config.json if the list is wrong, then up again.
Optional, for the team: ctx-optimize init writes the pointer block into AGENTS.md /
CLAUDE.md. Optional, for your agent CLI: ctx-optimize install --claude (or
--codex / --copilot / --devin). Grok already reads the Claude skill directory.
There is no API key and no server.
As a developer
Section titled “As a developer”Pick the verb by intent. Do not default to query for everything.
ctx-optimize query "refund tax" # find — 2–4 wordsctx-optimize card Store.Merge # inspect — signature, callers, calleesctx-optimize change-plan Store.Merge # about to edit — callers, blast, testsctx-optimize affected Store.Merge # blast radius onlyctx-optimize path A B # how A connects to Bctx-optimize boundaries # what this talks toctx-optimize sync # you edited — refresh the storeCite the file:line. Open the file only for a body the store did not show. If card
says unattributed callers, believe that.
As an architect
Section titled “As an architect”ctx-optimize serve# Viewer → FlowSame store. A card is a directory, an arrow is real edges, plates are
boundaries (names, never values). How to read it.
If Claude does not use it
Section titled “If Claude does not use it”CLAUDE.md is not a contract. We do not block Grep.
Use ctx-optimize for searching and all structural work — query, card, change-plan,affected, path, boundaries. Grep only for exact literal strings. Cite the file:line.If the next turn still only Greps: run ctx-optimize change-plan <that name>. Do not
forbid Grep. After you edit, sync.