Skip to content

Conversation Pruner

Plan how to fit a long chat history into a context budget — which turns to keep, fold into a summary, or drop, protecting system messages and the current request. 100% client-side.

AI & Agents
cosmodev ~/tools/conversation-pruner-

Each message: { role, tokens, pinned? }. "pinned": true is never pruned.

Context window minus what you reserve for the reply. history: 1,103 tok

Try: