cc-session-pool is a Claude Code plugin for macOS. A session can compact its own conversation with compact_self and is woken afterwards to carry on, and can read the size of its own context with context_usage. A dispatcher session manages a pool of worker sessions in Terminal windows.
↑ 29
HEALTH 88 / Healthy
// momentum
// why it's here
- Created 2 weeks ago and already shipping
- Built almost entirely by one person
- Health 88/100 with only 5 stars
// how to help
// readme
claudecode-session-dispatcher
cc-session-pool is a Claude Code plugin with four jobs:
- Every session gets the tool
compact_self. A session uses it to compact its own conversation, and is woken afterwards so that it carries on, without anyone typing/compactor telling it to go on. - Every session in which the plugin’s mod runs gets the tool
context_usage. A session uses it to learn the size of its own context, as Claude Code’s status line has it. Where Claude Code refuses the mod’s tool, as it does in a session started with--tools "", the session goes without it, and the reason is in Claude Code’s debug log (claude --debug). - Every interactive session in which the plugin’s mod runs is told of a stuck subagent. Once a minute the mod looks at the session’s subagents, without a model request. When neither the transcript nor the token count of one has changed for 11 minutes, the mod starts a turn in the session with a report that names it. It ends no subagent, and a report waits while a turn of the session is running.
- A dispatcher session gets ten more tools. With them it manages a pool of worker sessions that run in Terminal windows.