ysskrishna logoysskrishna

Idle Compact

Compact large idle threads in BB before their prompt cache expires.

Gallery image 1
Gallery image 2
Built with
AI Apps & Assistants
Chat & AI
React
TypeScript
Details
FreeMIT licenseCreated November 23, 2026Updated November 23, 2026
Share this product

Compact before the cache runs out

Providers cache a conversation for a limited time. Come back to a large thread after that, and your next message re-reads the whole context without the cache, at full price or from your plan's usage. Idle Compact compacts large idle Claude Code and Codex threads in BB just before the cache expires, while compaction can still read cached tokens.

A pill in the composer tells you what happens next, so the plugin never compacts silently.

What you get

  • Compact before expiry. An idle thread above your threshold is compacted a few minutes before its prompt cache expires. On by default, 5 minutes before.
  • Compact before sending. If the cache already expired, your next message waits while the thread compacts, then sends.
  • A composer pill. It shows "Auto-compacts in 23m" while the cache is warm, "Compact 412K" in red once it expired, "Compacting" while it runs, and "Compacted 412K to 68K" until your next message. Click the first two to compact now.
  • Threshold and settings. A thread qualifies over a percentage of the model's window (20% by default) and at least 100K tokens. Per-provider overrides and the Codex cache lifetime are in settings.
  • Stats. The settings page shows the last 30 days: compactions, tokens not re-read, and compactions before expiry versus on return.

Compaction uses BB's own /compact and keeps a summary, not the full history. Claude Code reports its cache lifetime. Codex does not, so the plugin starts at 30 minutes and learns a longer one from cache hits. Cursor is not supported.

Install Idle Compact

Idle Compact requires BB 0.50.1 or a later 0.50.x release. Install it from BB Marketplace:

bb plugin install bb-idle-compact

Turn it off or on with the switch in Settings > Idle Compact.

See the GitHub repository for screenshots, settings, and release details.

Frequently asked questions

What do I need to use Idle Compact?

BB 0.50.1 or a later 0.50.x release. Install Idle Compact from BB Marketplace with bb plugin install bb-idle-compact. It works with Claude Code and Codex threads.

When does Idle Compact compact a thread?

A thread qualifies when its context is over a percentage of the model's window (20% by default) and at least 100K tokens. It is compacted a few minutes before the prompt cache expires (5 minutes by default). If the cache already expired, your next message waits while the thread compacts, then sends.

Does compacting delete my conversation?

No. Compaction uses BB's own /compact, the same as the composer command, and shows in the thread timeline. It keeps a summary, not the full history. Nothing happens below the threshold, while a turn is running, or on providers the plugin does not support.

Does it work with Cursor?

No. BB cannot compact Cursor threads or read their usage, so Idle Compact does not support them. Claude Code reports its cache lifetime; Codex does not, so the plugin starts at 30 minutes and learns a longer one from cache hits.

Is it free?

Yes. Idle Compact is free and open source under the MIT license. It is a community plugin for BB.

Continue exploring

BlogCover image for 17 Thinking Skills for AI Agents: Pre-Mortem, Five Whys, Six Hats and More

17 Thinking Skills for AI Agents: Pre-Mortem, Five Whys, Six Hats and More

AI Apps & Assistants
Agent Skills
4 min read
ToolCover image for AI Token Counter

AI Token Counter

AI token counter with model pricing and context-window comparison in your browser.

Chat & AI
AI Apps & Assistants
+1
CourseCover image for Prompt Engineering for Coding Agents

Prompt Engineering for Coding Agents

Write prompts that coding agents act on: clear goals, the right context, output contracts, examples, structured thinking, shorter answers and a tiny eval set.

Agent Skills
Chat & AI

8 chapters · 17 min

Productskills.sh+1Claude Code Subagents for Cursor

Claude Code Subagents for Cursor

Your Cursor subagents can finally run on the model you picked in each agent file.
Chat & AI
Agent Skills
+2
BlogCover image for How to Install Caveman in Cursor and Claude Code

How to Install Caveman in Cursor and Claude Code

AI Apps & Assistants
Agent Skills
+1
3 min read
ProductProfiles

Profiles

Choose which providers and models appear in BB's model picker for each project.
Chat & AI
AI Apps & Assistants
+2