Agent Plugins Marketplace
All plugins

gemini-compact

v0.4.0

Moves compaction to Gemini: in summary mode Gemini summarizes the conversation and the newest messages stay; in prune mode every message stays and Gemini keeps, truncates or drops old tool calls. /gemini-compact sets the mode, the threshold and on/off; gemini-core holds the key, tier, model and thinking level. Needs function hooks (early access).

Claude Code

By Kerem GokLicense: MIT0 GitHub starsUpdated 4 days ago

Directory evidence

Runtimes
Claude Code
Parsed components
0 skill or MCP entries
Source updated
Sep 19, 2026
Manifest status
Canonical path parsed

The directory validates manifest shape and source location. It does not execute the plugin or provide a security endorsement. Review the indexing methodology

Install gemini-compact for Claude Code

Installs for the current user
claude plugin marketplace add IchenDEV/agent-plugin-mkt
claude plugin marketplace update agent-plugin-marketplace
claude plugin install gemini-compact@agent-plugin-marketplace

Paste and run these commands in a terminal with Claude Code. They add and refresh the PluginsMP catalog, then install this plugin.

The installer fetches third-party code from the source repository shown on this page. This directory validates manifest structure and source location, but does not perform a security audit; review the manifest, components, and source before installing.

Get the source manually
git clone https://github.com/KilimcininKorOglu/claude-code-mods

Clone the source repository, then follow its setup instructions to add the plugin to a compatible client. The plugin root is plugins/gemini-compact/.

Plugin files

plugins/gemini-compact/
└── .claude-plugin/plugin.json

Plugin manifests1

plugins/gemini-compact/.claude-plugin/plugin.json
{
  "name": "gemini-compact",
  "version": "0.4.0",
  "description": "Moves compaction to Gemini: in summary mode Gemini summarizes the conversation and the newest messages stay; in prune mode every message stays and Gemini keeps, truncates or drops old tool calls. /gemini-compact sets the mode, the threshold and on/off; gemini-core holds the key, tier, model and thinking level. Needs function hooks (early access).",
  "author": {
    "name": "Kerem Gok",
    "email": "[email protected]",
    "url": "https://x.com/koroglan"
  },
  "license": "MIT",
  "dependencies": [
    "gemini-core"
  ],
  "userConfig": {
    "mode": {
      "type": "string",
      "title": "Compaction mode",
      "description": "summary: Gemini summarizes the conversation and the newest messages stay verbatim. prune: every message stays and Gemini keeps, truncates or drops each old tool call. /gemini-compact mode <summary|prune> overrides it.",
      "options": [
        "summary",
        "prune"
      ],
      "default": "summary"
    },
    "compactAtPercent": {
      "type": "number",
      "title": "Automatic compaction threshold",
      "description": "Context percentage (1-99) after which a finished turn starts a compaction; 0 turns it off. /gemini-compact at <N> overrides it.",
      "default": 60
    },
    "keepRecent": {
      "type": "number",
      "title": "Newest messages kept whole",
      "description": "Tool calls in the newest messages and in the first message are never sent for a decision.",
      "default": 6
    },
    "minReduction": {
      "type": "number",
      "title": "Minimum reduction",
      "description": "Fraction (0-1) of characters the decisions must remove; below it the built-in summary runs.",
      "default": 0.25
    },
    "headChars": {
      "type": "number",
      "title": "Characters kept of a truncated output",
      "description": "The head of a tool output Gemini truncates.",
      "default": 300
    },
    "maxInputChars": {
      "type": "number",
      "title": "Maximum characters sent to Gemini (prune mode)",
      "description": "Above it the longest tool outputs are cut to their head and tail before sending.",
      "default": 400000
    },
    "summaryMaxInputChars": {
      "type": "number",
      "title": "Maximum characters sent to Gemini (summary mode)",
      "description": "Above it the longest tool outputs are cut to their head and tail before sending.",
      "default": 2000000
    }
  }
}

If you maintain this plugin, link to this source-backed listing from your README so users can review its manifest and indexed components.

[gemini-compact on Agent Plugins Marketplace](https://pluginsmp.com/plugins/gemini-compact)