The Claude Memory Compiler uses the Claude Agent SDK, which runs on your existing Claude subscription. Anthropic has clarified that personal use of the Claude Agent SDK is covered under Claude Max, Team, and Enterprise plans — no separate API key or billing account is required. Costs below are in USD and represent approximate per-operation consumption against your subscription quota.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/coleam00/claude-memory-compiler/llms.txt
Use this file to discover all available pages before exploring further.
Cost table
| Operation | Estimated cost |
|---|---|
| Compile one daily log | 0.65 |
Query (no --file-back) | ~0.25 |
Query (with --file-back) | ~0.40 |
| Full lint (with contradictions) | ~0.25 |
| Structural lint only | $0.00 |
| Memory flush (per session) | ~0.05 |
These figures are estimates based on typical knowledge base sizes (50–200 articles). Compile costs increase as the knowledge base grows because the LLM receives the full
knowledge/index.md and all existing articles as context on each compilation run.Why compile costs are highest
compile.py sends the most tokens per run. The prompt includes:
- The full
AGENTS.mdschema (~500 tokens) - The current
knowledge/index.md(grows with each article) - All existing knowledge articles (grows as the KB scales)
- The daily log being compiled
--all flag recompiles every log from scratch and should be used sparingly.
Free operations
Structural lint (--structural-only) makes zero API calls. All six structural checks — broken links, orphan pages, orphan sources, stale articles, missing backlinks, and sparse articles — are pure file-system operations. Run them as often as you like at no cost.
The SessionStart hook is also completely free. It reads local files and outputs a JSON string; no LLM is involved.
Cost tracking
Every operation that makes an API call updatesscripts/state.json with the actual cost returned by the SDK:
total_cost field accumulates across all compile and query operations. The flush.py process does not currently write its per-flush cost to state.json, so the flush row in the table above is an approximation.
Tips to reduce costs
Use --dry-run before compiling
Use --dry-run before compiling
Run
compile.py --dry-run to see which daily logs are queued for compilation before spending any tokens. This is especially useful after --all is needed to confirm the scope.Use --structural-only for routine lint
Use --structural-only for routine lint
The LLM contradiction check is the only lint step that costs money. Run it weekly or on demand; use
--structural-only for all other lint runs.Avoid --file-back on exploratory queries
Avoid --file-back on exploratory queries
--file-back costs ~$0.10 more per query because it writes a Q&A article and updates index.md and log.md. Use it only for questions whose answers are worth preserving permanently.Avoid --all unless necessary
Avoid --all unless necessary
--all recompiles every daily log, multiplying compile costs by the total number of logs. Use it only after making structural changes to AGENTS.md that require fresh extraction passes across the whole history.Let auto-compilation run instead of manual runs
Let auto-compilation run instead of manual runs
The end-of-day auto-compilation triggered by
flush.py after 6 PM compiles only the logs that have changed since their last compilation. This is the lowest-cost way to keep the knowledge base up to date — it avoids redundant recompile runs that manual invocations can cause.