- The core principle of context engineering: find the SMALLEST SET OF HIGH-SIGNAL TOKENS that maximize the likelihood of the desired outcome — context is a precious, FINITE resource, not a place to dump everything known. [research 2026-07-14, Anthropic "Effective context engineering"] [subsystem: knowledge · files: src/lib/learnings.ts, src/run-task.ts]
- Origin
- Unavailable
- Verification
- Unavailable
- Freshness
- Unavailable
- Last observed
- Unavailable
- Evidence
- Not linked in source
- Related
- Not stated in source
- Follow-up
- Follow-up status unavailable
- Claude Code's OWN model is HYBRID: CLAUDE.md dropped in up front + glob/grep for JUST-IN-TIME retrieval, which "effectively bypasses the issues of stale indexing" — prefer retrieval (the plan is grep-able) over injecting whole files. [research 2026-07-14] [subsystem: knowledge · files: src/lib/learnings.ts, src/run-task.ts]
- Origin
- Unavailable
- Verification
- Unavailable
- Freshness
- Unavailable
- Last observed
- Unavailable
- Evidence
- Not linked in source
- Related
- Not stated in source
- Follow-up
- Follow-up status unavailable
- Compaction's sharp failure mode: a summary that DROPS a critical fact is WORSE than no summary, because later steps trust it and cannot recover what was lost. Tune compaction for RECALL first, then precision; mitigate with ANCHORED SUMMARIZATION (goal/constraints/plan kept verbatim) and WRITE-BEFORE-COMPACT (externalize durable facts before the summary runs). [research 2026-07-14] [subsystem: context · files: src/lib/retro.ts, src/run-task.ts]
- Origin
- Unavailable
- Verification
- Unavailable
- Freshness
- Unavailable
- Last observed
- Unavailable
- Evidence
- Not linked in source
- Related
- Not stated in source
- Follow-up
- Follow-up status unavailable
- A compacted message is REMOVED from the window and recoverable ONLY IF IT WAS STORED — durable findings must be written out (scratch file / ledger) as they are discovered, not held in-context. [research 2026-07-14] [subsystem: context · files: src/lib/retro.ts, src/run-task.ts]
- Origin
- Unavailable
- Verification
- Unavailable
- Freshness
- Unavailable
- Last observed
- Unavailable
- Evidence
- Not linked in source
- Related
- Not stated in source
- Follow-up
- Follow-up status unavailable
- CACHE ECONOMICS: prompt caches key on EXACT PREFIX BYTES — any edit early in the context invalidates the cache for EVERYTHING after it; cache reads price at ~1/10th of fresh input. Assemble prompts STABLE-FIRST, VOLATILE-LAST. [research 2026-07-14] [subsystem: context · files: src/lib/learnings.ts, src/run-task.ts]
- Origin
- Unavailable
- Verification
- Unavailable
- Freshness
- Unavailable
- Last observed
- Unavailable
- Evidence
- Not linked in source
- Related
- Not stated in source
- Follow-up
- Follow-up status unavailable
- Harnesses encode assumptions about what Claude cannot do on its own, and those assumptions GO STALE as models improve — question them frequently; a guard load-bearing at one model version can become dead weight at the next. [research 2026-07-14] [subsystem: retro · files: src/lib/retro.ts]
- Origin
- Unavailable
- Verification
- Unavailable
- Freshness
- Unavailable
- Last observed
- Unavailable
- Evidence
- Not linked in source
- Related
- Not stated in source
- Follow-up
- Follow-up status unavailable