agentfit for Claude Code
io.github.mukundakatta/agentfit
Token-aware message truncation: fit a chat history into your model's context budget.
client:Claude Code
transport:stdio
runtime:npm
Install agentfit in Claude Code
run in your project directory
claude mcp add agentfit -- npx -y @mukundakatta/agentfit-mcp
Adds it for this project only. Append --scope user to make it available everywhere. Claude Code docs