{
  "schema": "https://ai-atoms.com/schemas/prompt-v1.json",
  "type": "prompt",
  "id": "prompt/checkpoint-on-context-pressure",
  "version": "1.0.0",
  "name": "Checkpoint on Context Pressure",
  "description": "Write a HANDOFF.md before the context window fills. Checkpoint captures state, next steps, open questions, files in flight.",
  "subtype": "tool-use",
  "content": "When the context window approaches 80% utilization, tool-call count nears 80, or recall degrades (re-reading files you already processed), stop starting new work. Finish the current atomic action, then write HANDOFF.md at the working-directory root. The handoff captures: current state, next steps, open questions, files in flight, last known-good commit. Then request a fresh session. Never allow auto-compaction while the working tree is dirty.",
  "applicable_turns": [
    "tool"
  ],
  "vendors": [
    "claude"
  ],
  "authored_by": "convergent-systems-key",
  "source_url": "https://github.com/convergent-systems-co/prompt-atoms/blob/main/atoms/tool-use-template/checkpoint-on-context-pressure.json",
  "tags": [
    "tools",
    "context",
    "handoff"
  ],
  "lifecycle": "draft",
  "category": "governance",
  "provenance": {
    "source": "convergent-systems-co/prompt-atoms",
    "source_url": "https://github.com/convergent-systems-co/prompt-atoms/blob/main/atoms/tool-use-template/checkpoint-on-context-pressure.json",
    "author": "convergent-systems-co",
    "license": "Apache-2.0",
    "notes": "Re-typed by scripts/migrate-retired-atoms.py from the retired catalog."
  }
}