Claude Code source leak patterns applied to Continuous Claude — April 1, 2026
Full tables, code blocks, multi-line details all inline. Venture portfolio (15 lines), Flippa (21 lines), Gumroad (19 lines), X automation (34 lines), FB images (26 lines) — all jammed into the index.
Pure pointer index. Each entry is 1-2 lines: topic link + one-sentence summary. All detail lives in dedicated topic files loaded on-demand.
New topic files extracted:
venture_portfolio.mdflippa_deal_scout.mdgumroad_intelligence.mdvideo_pipeline.mdx_automation_standards.mdai_traffic_formula.mdfrequencyblockers_details.mdthisaihouse_architecture.mdpepguide_social.mdculturedgrooming_images.mdtypefully_api.md3d_printing.mdAll 40 files loaded into context on every single session start, regardless of task. 9 postgres files, supabase, wordpress, content pipeline, video pipeline — all always-on. Reinserted on every turn change.
Core behavior rules stay always-on. Reference material (postgres, supabase, wordpress, pipelines) moved to ~/.claude/references/ — loaded only when the task needs it.
Files moved to ~/.claude/references/:
postgres-advanced.mdpostgres-connections.mdpostgres-data-patterns.mdpostgres-locking.mdpostgres-maintenance.mdpostgres-queries.mdpostgres-rls.mdpostgres-routing.mdpostgres-schema.mdsupabase-workflow.mdwordpress-server-optimization.mdcontent-pipeline.mdvideo-pipeline.mdinternal-linking.mdreview-methodology.mdknowledge-curation.mdorg-recall.mdMemory only grew. No pruning, no contradiction detection, no staleness tracking. System silently truncated at 200 lines.
scripts/core/consolidate_memory.py — audits budget, finds duplicates, detects stale refs, flags bloated topics. HTML report mode. Run weekly.
| Metric | Before | After | Change |
|---|---|---|---|
| MEMORY.md lines | 373 | 58 | -84% |
| MEMORY.md visibility | 54% (200/373) | 100% (58/58) | +46% |
| Always-on rules lines | 3,756 | 1,336 | -64% |
| Total context per session | ~4,129 lines | ~1,394 lines | -66% |
| Topic files (memory) | 25 | 36 | +11 |
| Reference files (on-demand) | 0 | 17 | +17 |
| Consolidation automation | None | Weekly script | New |
Bottom line: Every future session starts with 66% less context overhead. MEMORY.md is 100% visible (was 54%). Reference material is still accessible via ~/.claude/references/ but no longer burns tokens on every turn of every session.
Patterns sourced from: "Claude Code's Source Got Leaked. Here's What's Actually Worth Learning" by Pawel Jozefiak (April 2026). Applied: 3-layer memory with pure index, reference tiering, autoDream-inspired consolidation.