A zero-dep Python lib that trims LLM conversation history to fit a token budget — and always keeps tool_use/tool_result pairs together.

A zero-dep Python lib for agent working memory — keyed notes, lists, counters, prompt injection, and JSONL logging in under 200 lines.

A zero-dep Python lib that trims LLM conversation history to fit a token budget — and always keeps tool_use/tool_result pairs together.

A zero-dep Python lib with composable stop conditions for LLM agent loops — turn limits, cost caps, response patterns, and custom predicates that you can OR/AND/NOT together.

A zero-dep Python lib that tracks cumulative LLM API cost and raises before you go over budget — with per-label breakdown and warn-at callbacks.

A zero-dep Python lib that tracks estimated token usage across a conversation and fires warning callbacks at configurable thresholds — no tokenizer required.