{
  "id": "ao-compaction-opencode-settings-table",
  "kind": "table",
  "slug": "ao-compaction-opencode-settings",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/ao-compaction-opencode-settings/",
  "title": "Compaction settings: OpenCode vs Gemini CLI",
  "columns": [
    "tool",
    "setting",
    "meaning",
    "documented_default"
  ],
  "rows": [
    {
      "tool": "OpenCode",
      "setting": "automatic compaction",
      "meaning": "summarize near the context limit; lossy",
      "documented_default": "enabled"
    },
    {
      "tool": "OpenCode",
      "setting": "keep.tokens",
      "meaning": "recent conversation kept beside the summary",
      "documented_default": "15000"
    },
    {
      "tool": "OpenCode",
      "setting": "buffer",
      "meaning": "share of the window kept free (not the trigger point)",
      "documented_default": null
    },
    {
      "tool": "Gemini CLI",
      "setting": "compressionThreshold",
      "meaning": "fraction of context usage that triggers compression",
      "documented_default": "0.5"
    }
  ],
  "related_slugs": [
    "ao-compaction-gemini-cli-compress"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT (anomalyco/opencode (GitHub)); Apache-2.0 (google-gemini/gemini-cli (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-16",
  "status": "week-draft-20261116",
  "note": "Restated from the note; check the note sources before relying on a value."
}