Carpool – cut LLM costs by batching tasks and compiling repeated calls into code A tool called carpool, released as the pip-installable carpool-agents library and a Claude Code plugin, batches independent LLM tasks into a single request and re-runs only answers that fail citation checks, cutting cost per accepted answer by about 80% versus one lean Claude call per task and by 93–96% versus one Claude Code agent call per task with no regressions. In the project's tests, 24 ops tasks that cost $0.281 as 24 lean calls cost $0.047 as one carpool call (−83%), and 48 SQuAD questions that cost $2.449 as 48 agent calls cost $0.178 as two carpool calls (−93%). The savings come from paying the shared harness context once rather than per call; the author reports preflight-only compression without grouping saved just 0.2%, and that on a small local model with almost no fixed setup savings fell to 8–51% with some quality loss. If your script, pipeline or agent makes a separate model call for every item, each call pays for its fixed setup again: system prompt, tool schemas, instructions. carpool puts independent tasks in one request, checks every answer against the source it cites, and redoes only the ones that fail. In our tests on Claude, that cut the cost per accepted answer by about 80% against one lean call per task, and by 93–96% against one Claude Code agent call per task, with no regressions. 1 user-content-fn-1-d7a9571b88769719809644ff7c024e0d In Claude Code: claude plugin marketplace add nmayp/carpool claude plugin install carpool@carpool Or try the library offline, no API key needed: pip install carpool-agents carpool bench carpool bench uses a mock model with a fixed cost per call, so it shows how carpool works rather than what it saves. For real numbers run carpool bench --backend claude-lean or claude-code , codex , ollama: