iiRecord
Agentic AI Atlas · Claude Code auto-compaction (rolling summary, ~70% threshold)
compaction-policy:claude-code-autoa5c.ai
II.
CompactionPolicy JSON

compaction-policy:claude-code-auto

Structured · live

Claude Code auto-compaction (rolling summary, ~70% threshold) json

Inspect the normalized record payload exactly as the atlas UI reads it.

File · context-engineering/compaction-policies/claude-code-auto.yamlCluster · context-engineering
Record JSON
{
  "id": "compaction-policy:claude-code-auto",
  "_kind": "CompactionPolicy",
  "_file": "context-engineering/compaction-policies/claude-code-auto.yaml",
  "_cluster": "context-engineering",
  "attributes": {
    "displayName": "Claude Code auto-compaction (rolling summary, ~70% threshold)",
    "strategy": "rolling-summary",
    "trigger": "hybrid",
    "triggerThresholdTokens": 140000,
    "triggerThresholdFraction": 0.7,
    "preserveRecentTurns": 0,
    "preserveFileOperations": false,
    "stripsImagesOnRetry": true,
    "description": "Auto-compacts when context fill crosses ~70% of the model context window\n(140k of 200k by default). Fires the PreCompact hook before summarizing.\nReactive arm: on PROMPT_TOO_LONG_ERROR_MESSAGE the retry parses the gap\nvia getPromptTooLongTokenGap and jumps past multiple groups in one retry;\non media-size errors stripImagesFromMessages runs before resummarizing.\n"
  },
  "outgoingEdges": [],
  "incomingEdges": [
    {
      "from": "agent-runtime-impl:claude-code.runtime@1.x",
      "to": "compaction-policy:claude-code-auto",
      "kind": "compaction_policy_applied_by",
      "attributes": {}
    }
  ]
}