CLAUDE CODE TOOL

llm-map

Label each item of a large list with a small model through claude -p, in parallel batches, with exact per-item output.

  • 0.731 OOLONG score with llm_map, against 0.711 for plain Claude Code: no measurable gain (1 run, 400 tasks for each arm)
  • 199/206 llm_map calls that succeeded in that run
  • v0.1.0 First and only release, 2026-11-20
  • MIT Licence

llm-map README, Honest result, 2026-11-26; llm-map README, Honest result, 2026-11-26; llm-map release list, 2026-11-26; llm-map repo, 2026-11-26

ROLE
Author
TIMELINE
2026-11-20 to now
STACK
Python, Bash, Claude Code skill
STATUS
Public

Label twelve tickets

Watch for: one row for each item, and what happens to the item that gets no answer.

Twelve fake support tickets are split into batches and labelled by a fixed fake small model. One item gets no answer on the first pass and is retried, not dropped. Then a count summary appears. Fake data only.

Problem

Some tasks need an exact answer for each of hundreds or thousands of items. Examples: label the tone of 3,000 reviews, or extract a value from each log line. A main model that reads a sample and estimates a count gives a guess (llm-map README, 2026-11-26).

I wanted a small model to read every item, one answer for each, written to a file. Then a script counts the answers.

Constraints

  • It is a command for Claude Code, so it calls the local claude -p command. It needs a login and it makes real API calls (README, Limits).
  • Python 3 and the claude command on your PATH. Nothing else (README, Install).
  • The item text goes to the Anthropic API, so it is not for secrets (README, When to use it).
  • Each batch is judged alone, so it cannot reason across items.
  • Cost must stay bounded. The default cap is --max-usd 2.00.
  • A failed item must never be filled with a guess.
  • Public and MIT licensed.

Approach

llm_map.py splits the list into batches (default 100 items) and runs up to 8 batches at the same time (defaults --batch 100, --jobs 8). It uses Haiku by default. It writes one JSON line for each item, in input order, with the item number, the text, the answer and an error if there was one.

With --labels "a|b|c" the answer is always one of the labels. A reply that does not match is retried once. If it still fails, the answer is null and the error says why. An item that the model leaves out is also retried once. The budget cap stops new batches, and the unsent items get error: "budget".

The exit code is 0 when every item has an answer and 3 when some failed. A skill file tells Claude Code when to run the tool, so it runs by itself for a task of this kind.

The tool began as an opt-in part of Lossless Handoff and became its own repository in release v0.1.0 (CHANGELOG).

What shipped

  • One release, v0.1.0, on 2026-11-20. The repo was created on the same day (gh release list, gh repo view, checked 2026-11-26).
  • llm_map.py, a skill file, and an install.sh with --dry-run and --uninstall that changes no settings.json entry (README).
  • An offline smoke test, tests/smoke.sh, that uses a fake claude command so it makes no model call. CI runs on Ubuntu and macOS (CHANGELOG).
  • Source: pratikgh0se/llm-map.

Outcome

I tested it on OOLONG, a benchmark of large aggregation tasks. One run, 2026-11-18, 400 tasks for each arm (README, Honest result):

Arm Score
Plain Claude Code 0.711
Plain Claude Code with a hint to use a subagent 0.730
Lossless Handoff with llm_map and its skill 0.731

That is no measurable gain, and the cost was about equal. In the third arm, 199 of 206 llm_map calls succeeded. The harness flagged the run for shared-temp use (2.2% of units), and the result is a tie on every cleaned task set.

The README says to use the tool for exact per-item answers in a file, not because it raises a benchmark score. The repo has no stars (gh repo view, 2026-11-26). I do not know of any user besides me.

What I learned

The benchmark gave a tie, and I wrote that in the README instead of a better story. The tool still earns its place for a different reason: an exact answer for each item, in a file, that a script can count.

A batch call can return a bad reply. So the tool never guesses. It retries once and then marks the item as failed, and the summary line shows the failed count.

How AI built this

  • The repo is small: 6 commits and one file of code (git rev-list --count HEAD, 2026-11-26).
  • It came out of the Lossless Handoff project, which uses a written behaviour contract and a code-blind test repo. The llm-map repo has its own offline smoke test.
  • I have no repo record of which model built which part.