F2077 / defossilize · a Claude Code plugin
Field Monograph · v0.2.0

defossilize.

Turn fossil code back into understanding — while the theory still lives in your head, or after it has gone.

Begin a dig /plugin install defossilize@f2077
A theropod dinosaur fossil half-buried in desert sand — the defossilize project mark
Plate I

Code does not sit at two poles.

It degrades along a continuous spectrum, from the feature you just shipped to the black box you inherited. defossilize walks it back to life — one stratum at a time.

surface · you wrote it, you remember
0 m · alive Alive The theory still lives in your head. Pin the why while it’s fresh.
~6 m · half-fossil Half-fossil You wrote it. You can’t quite read it anymore. Rebuild the theory from its signs.
~30 m · petrified Petrified Inherited, or AI-generated. The theory never lived in your head at all.
~80 m · dug Mapped The thin spots are found. One hotspot is chosen for revival.
bedrock · revived Revived Predict → reveal → reconcile. What holds, holds. What’s lost, marked unknown.
Fig. 1 — Strata of understanding Naur · Storey · Peirce
Plate II

The fossilization lifecycle.

Five lifecycle commands, descending from the surface. Read the column top to bottom; each stratum is one command, and the signs it leaves behind for the next digger.

0 m 10 m 25 m 45 m 70 m bedrock
Alive · stage I
preserve
/defossilize:preserve

Pin a feature’s why in code while you still understand it. Captures intent (the 故 / 理 / 类 of Mozi), the decision path with rejected alternatives, drift-resistant signs, and a self-explanation checkpoint with an understanding score.

Run it after simplify, one feature at a time.

  • Signs left
  • specimen.md
  • .progress.md
  • why-comments inline
Half-fossil · stage II
thaw
/defossilize:thaw

Rebuild your grasp of a feature you wrote but can no longer read. Loads the signs preserve left, orients you in one screen, then rebuilds the theory via retelling or deconstruction and scores what holds.

Ephemeral by design — nothing persisted.

  • Signs left
  • session-scoped
  • orientation screen
  • understanding score
Full fossil · dig
excavate
/defossilize:excavate

Map a system you don’t understand — legacy or AI black box. Mines git history as degraded intent-fossils, produces a map of where understanding is thinnest and what’s recoverable, and ranks hotspots for revive.

Does not revive anything itself. Degrades gracefully without git.

  • Signs left
  • map.md
  • hotspot ranking
  • .progress.md
Full fossil · revive
revive
/defossilize:revive

Bring one fossil hotspot back to understanding. For each decision it runs predict → reveal → reconcile: you predict first, the AI offers its hypothesis, you reconcile against the code.

Lays provenance=revive signs. Never fabricates; marks irrecoverable intent as unknown.

  • Signs left
  • specimen.md
  • provenance=revive
  • unknown markers
Maintenance · surface
curate
/defossilize:curate

Check whether comments, docs, and decision records still match the code, and fix what’s drifted. Classifies each mismatch — behavioral drift, invariant violated, stale reference, out-of-scope, reconstruction-was-wrong.

Only fixes drift and stale references, after you confirm. Bugs are flagged; revive-origin contradictions go back to revive.

  • Signs left
  • mismatch classification
  • curate-report on demand

Signs live in the target project at docs/defossilize/<area>/<unit>/. One sign type stays in place — why-comments inline in code, because its location is the drift-resistance. Three tools sit beside the column: catalog (a manual checkpoint), guard (an opt-in watch that captures understanding while you code), and using-defossilize (a router that picks the command for you). No vector DB, no parallel store.

Plate III

Why a plugin about understanding.

Three threads, braided. The plugin is a tool for keeping the theory — in Naur’s sense — alive in the heads that hold it.

Peirce’s meaning triangle maps a sign to its object through an interpretant — the mind that does the meaning. Storey’s triple-debt model reads this onto software: technical debt is the Object, intent debt the Sign, cognitive debt the Interpretant. defossilize works the last two and leaves the first to other tools.

Naur argued that programming is theory building — a program is the sediment of a theory that lives, briefly, in its authors’ heads. A dead program usually cannot be revived from docs alone. Hence revive’s honesty about unknowns: some intent is irrecoverable, and saying so is part of the cure.

Finally, the self-explanation effect: every rebuild is active. You predict first, then explain — never passively outsource. That is why thaw is session-scoped and why revive asks you to predict before it reveals.

— Full references in the design doc, dated 2026-07-03.

Interpretant COGNITIVE DEBT · the mind Object TECHNICAL DEBT · the code Sign INTENT DEBT · the record meaning is the motion between the three.
Fig. 2 — Peirce’s meaning triangle, mapped to Storey’s triple-debt
Plate IV

To begin a dig.

Install from the f2077 marketplace on GitHub. Two commands; then any of the nine are available as /defossilize:<command>.

terminal · Claude Code · · ·
 /plugin marketplace add F2077/defossilize
# adds the f2077 marketplace, sourced from GitHub
  ✓ marketplace added

 /plugin install defossilize@f2077
# installs defossilize from that marketplace
  ✓ installed · 7 lifecycle commands + guard + using-defossilize

 /defossilize:preserve      # pin the why, while it’s fresh
 /defossilize:excavate      # map a system you inherited
 /defossilize:revive        # bring one hotspot back
 /defossilize:thaw          # rebuild a theory you forgot
 /defossilize:curate        # reconcile signs with code
 /defossilize:continue      # see in-flight work, pick up
 /defossilize:catalog       # save a manual checkpoint
 /defossilize:guard on       # watch for code about to fossilize

Resuming across sessions. preserve, excavate, and revive write a small docs/defossilize/<area>/<unit>/.progress.md as they work, so a paused run can pick up in a later session. Run /defossilize:continue to see everything in flight and where each one stopped, or pause on purpose with /defossilize:catalog. (thaw is session-scoped by design; curate is safely re-runnable from scratch.)