✔ within budget · +120 vs baseline
// open source · llm tooling
Small, sharp tools for building with LLMs.
Focused, well-tested libraries that each do one thing well — from prompt budgets to model output that passes muster.
$ npx promptsize
✘ over budget by 1.2K tokens
1 prompt over budget. exit 1
Projects
01 — open sourcesize-limit for LLM prompts. Count the tokens in your prompt and context files, set budgets, and fail CI when one grows past its limit.
Read the docs →Make LLM output pass muster. A tiny verify-and-retry loop: generate → check (schema / predicate / LLM-judge) → retry with feedback until it passes.
Read the docs →Instant, offline token + cost counter for LLM text. cat a file or pipe stdin and get the count — plus a cost estimate across models.
Read the docs →Talk to an LLM from your terminal. Pipe context in — git diff | heyllm "write a commit message" — over any OpenAI-compatible API.
Read the docs →Validate your .env against an .env.example contract — flags missing, extra, and empty keys. Runs locally and as a CI gate.
Read the docs →Interactively sweep stale local git branches — the ones already merged or whose remote is gone. Daily git hygiene, solved.
Read the docs →Watch your AI agent think. A 1-line wrapper records its run; replay it as a live terminal dashboard of tool-calls, tokens, and cost.
Read the docs →Turn a Markdown file into a gorgeous animated terminal demo (SVG) — from the shell snippets you already wrote. No tape files.
Read the docs →Generate a stunning, shareable SVG card for any repository — languages, stars, description — for social previews and READMEs.
Read the docs →How these are built
02 — principlesOne sharp problem
Every tool solves a single, well-scoped problem. No kitchen sinks, no frameworks pretending to be libraries.
Offline & deterministic
Where it matters, tools run with no network and no API keys — the same input always yields the same result. Built for CI.
CI-native
Clear exit codes, GitHub Actions, machine-readable output. Designed to live in your pipeline, not a dashboard you forget.
Typed & tested
Strict TypeScript, real test suites, and documentation that stays in sync with the code it describes.