← ClaudeAtlas

compaction-survivallisted

Maintain a persisted, re-readable control anchor so a long autonomous run survives context compaction without losing the plot — one file holding the mission, a plan pointer, a live cursor (done / in progress / next action), invariants, last-known-good state, and exact resume steps, updated after each step and re-read at the start of each turn. Use when starting or driving a multi-hour or multi-phase autonomous task, a self-driving loop, or any unattended run that will cross one or more automatic compactions or context-window resets; on asks like "make sure compaction doesn't lose the work", "keep state across auto-compact", "persist the current state so a reset doesn't disrupt this", "this is a long autonomous run", or "resume cleanly after a reset". The anchor is intra-actor state recovery — the same actor re-reading its own working state across a discontinuity. Not for handing work to a fresh context or a teammate (that is context-handoff's inter-actor brief), not for post-hoc capture of what a finished ses
grimaldost/craft-collection · ★ 2 · AI & Automation · score 68
Install: claude install-skill grimaldost/craft-collection
# Compaction Survival A long autonomous run loses most often to this — the context that held the plan gets compacted or reset, and the next turn resumes from a summary that dropped the load-bearing detail. The defense is an anchor on disk that the run re-reads and rewrites as it goes, so the plan lives in a file, not only in the context window. This is a **flexible** skill: the anchor's schema and update cadence adapt to the task. What stays firm is small — the anchor is the single source of truth for run state, re-read at the start of each turn and updated before the state it describes can be lost. ## The anchor One file, at a stable path the run can find again after a reset. It has two tiers, split by a literal `<!-- anchor:tail -->` marker line: above it the live **HEAD** — the only part the re-injection hook emits — and below it the **TAIL**, which stays on disk. A marker-less anchor still injects whole, but then a long run's live state is whatever the 8K bound keeps. HEAD — bounded, rewritten in place: - **Mission** — the goal in a sentence or two, the hard constraints, and any user instruction that constrains *mechanism* rather than outcome, quoted in the user's own words with a stable id. Paraphrase is where an order dies: once the wording is gone a substituted mechanism reads as a design choice, and a conformance check has nothing to point at. - **Plan pointer** — where the full plan lives (a separate doc), so the anchor stays a cursor, not a second co