tollbar
GitHub

Your AI says it’s almost done.

Tu IA dice que está casi lista.

tollbar reviews the code before it ships. It marks what’s wrong in plain words, crosses out its own false alarms, and hands you a prompt to paste back to your agent.tollbar revisa el código antes de que salga. Marca lo que está mal en palabras simples, tacha sus propias falsas alarmas y te da un prompt para pegarle a tu agente.

$ npm install -g @ernestojost/tollbar
$ tollbar review

Free and open source, with no account to create. It uses the AI you already have. Needs Node.js 20+ and git. To try it without installing: npx @ernestojost/tollbar reviewGratis y open source, sin cuenta que crear. Usa la IA que ya tenés. Necesita Node.js 20+ y git. Para probarlo sin instalar: npx @ernestojost/tollbar review

Three tools mark the page, one per pass. Put one away to see what it was adding.Tres herramientas marcan la hoja, una por pasada. Guardá una para ver qué aportaba.

$ tollbar review --gate major

tollbar · uncommitted changes · 4 files, +212 −9exampleejemplo

BLOCKED

2 serious problems: don’t ship this.

src/checkout.ts

  1. 1import Stripe from "stripe";
  2. 2import { pay } from "stripe-easy-checkout";
Critical

The package "stripe-easy-checkout" doesn’t exist on npm

Typical AI mistake · src/checkout.ts:2 · rule phantom-import

The code imports a package that doesn’t exist. It usually happens when the AI invents a name. It’s dangerous: someone can publish a package with that name and ship malicious code (it’s called slopsquatting).

src/orders.ts

  1. 12app.get("/orders/:id", auth, async (req, res) => {
  2. 13 // load the order
  3. 14 const order = await db.orders.find(req.params.id);
  4. 15 res.json(order);

Any logged-in user can open someone else’s order.

[CRITICAL] Security · src/orders.ts:14 · AI

Nothing checks that the order belongs to the person asking. Change the number in the address and you see another customer’s.

Fix: Check that the order belongs to the logged-in user before returning it.

src/refunds.ts

  1. 31const amount = validateRefund(order, body.amount);
  2. 32await stripe.refunds.create({ charge, amount });

The refund amount is never checked.

It is, one line up. Not a real problem: dropped.

AI: claude-cli (sonnet) · 3 calls · 14k input tokens · 1 dropped · 21.3 s

Three passes, in this order.Tres pasadas, en este orden.

Each pass exists so the next one has less work and you get less noise. What survives all three is what you read.Cada pasada existe para que la siguiente tenga menos trabajo y vos menos ruido. Lo que sobrevive a las tres es lo que leés.

Key to the marksReferencia de las marcas
The markLa marcaWho makes itQuién la haceWhat it means for youQué significa para vos
Major 1

The stamp: fixed rulesEl sello: reglas fijas

Known mistakes, caught by pattern. Instant, always the same result, no AI, and nothing leaves your machine. With no AI set up, tollbar reviews with these alone.Errores conocidos, detectados por patrón. Al instante, siempre con el mismo resultado, sin IA, y nada sale de tu máquina. Sin ninguna IA configurada, tollbar revisa solo con esto.

tollbar review --no-ai

db.orders.find(id) 2

The red pen: your own AILa birome roja: tu propia IA

It reads the logic of the change, the part no fixed rule can see, and explains each problem in plain words. It follows your project’s own rules: CLAUDE.md, AGENTS.md, .cursorrules, .github/copilot-instructions.md and .tollbar/rules.md.Lee la lógica del cambio, la parte que ninguna regla fija puede ver, y explica cada problema en palabras simples. Respeta las reglas de tu proyecto: CLAUDE.md, AGENTS.md, .cursorrules, .github/copilot-instructions.md y .tollbar/rules.md.

never checked
dropped
3

The green pencil: a skepticEl lápiz verde: un escéptico

A second pass tries to refute each thing the red pen wrote. Whatever doesn’t hold up is dropped before it reaches you, and the last line of the review tells you how many were.Una segunda pasada intenta refutar cada cosa que escribió la birome. Lo que no se sostiene se descarta antes de llegarte, y la última línea de la revisión te dice cuántos fueron.

… · 1 dropped · 21.3 s

Then the page comes back to you: a short list in plain language, plus one prompt that tells your agent exactly what to fix.Después la hoja vuelve a vos: una lista corta en lenguaje simple, más un prompt que le dice a tu agente exactamente qué arreglar.

What the stamp catches with no AI at all.Lo que agarra el sello sin nada de IA.

These are the things that slip through most when an agent writes the code and nobody else reads it. On the right, the exact words tollbar uses.Son las cosas que más se escapan cuando el código lo escribe un agente y nadie más lo lee. Al lado, las palabras exactas que usa tollbar.

  • A key or password left in the codeUna clave o contraseña que quedó en el códigoSecret in the code (Stripe secret key)CRITICALsecret
  • A .env file pushed to the repoUn .env subido al repoA .env file was committedCRITICALsensitive-file
  • A package the AI made upUn paquete que la IA inventóThe package "…" doesn’t exist on npmCRITICALphantom-import
  • Code the AI cut short (“… rest of the code”)Código que la IA cortó (“… resto del código”)Looks like code the AI cut shortMAJORai-truncated
  • A function that was never writtenUna función que nunca se escribióA function was left unimplementedMAJORai-not-implemented
  • Tests that always passTests que siempre pasanTests that check nothingMAJORtest-no-assert
  • A database query a visitor can rewrite (WordPress, PHP)Una consulta a la base que un visitante puede reescribir (WordPress, PHP)SQL query built with variables (SQL injection)CRITICALwp-sql-injection
  • Visitor input shown raw on the pageAlgo que mandó el visitante, mostrado tal cualUser input is printed on the page without escaping (XSS)CRITICALphp-xss

A sample, not the full list. What a rule can’t see, the logic, goes to the red pen.Es una muestra, no la lista completa. Lo que una regla no puede ver, la lógica, pasa a la birome roja.

With Claude Code: no “done” with bugs.Con Claude Code: sin “listo” con bugs.

One command adds a hook. Each time the agent finishes a task, tollbar reviews what it left uncommitted, and the agent gets its page back before it can stop.Un comando agrega un hook. Cada vez que el agente termina una tarea, tollbar revisa lo que quedó sin commitear, y el agente recibe su hoja de vuelta antes de poder parar.

# in a repo, or in a folder that holds many repos
$ tollbar hook install
# also review the logic (15-40 s each time)
$ tollbar hook install --ai
  • Something serious: it hands it back so the agent fixes it before stopping.Si hay algo grave, se lo devuelve al agente para que lo arregle antes de parar.
  • Nothing serious: you won’t notice. Rules alone take under 2 seconds.Si no hay nada grave, ni te enterás. Solo reglas tarda menos de 2 segundos.
  • No loops: it blocks at most once per task.Sin bucles: frena como mucho una vez por tarea.
  • False alarms: you decide, not the agent.Las falsas alarmas las decidís vos, no el agente.
tollbar reviewed the uncommitted changes and found problems to fix before finishing:

Review and fix these problems found by an automated review. Check each one before changing anything; if one isn't real, explain why and leave it alone:
1. src/checkout.ts:2 — The package "stripe-easy-checkout" doesn't exist on npm. Find the right package […]

Fix the real ones. If one looks like a false alarm, do not ignore it on your own: explain why to the user in your reply, and they decide whether to record it with "tollbar ignore".
OK
tollbar · uncommitted changes · 4 files, +214 −9
No problems found. Rules only: the logic wasn't reviewed.
no AI (rules only) · 0.4 s

First attempt, second attempt. Both pages are examples in tollbar’s real wording; yours will be about your code.Primer intento, segundo intento. Las dos hojas son ejemplos con las palabras reales de tollbar; las tuyas van a hablar de tu código.

tollbar review --since-deploy --gate major || { echo "Deploy blocked"; exit 1; }
./deploy.sh && tollbar mark-deploy

Two lines at the top of your deploy script. If the first one finds something serious, the second never runs.Dos líneas al principio de tu script de deploy. Si la primera encuentra algo grave, la segunda no corre nunca.

No pull request needed.No hace falta un pull request.

Most review tools wait for a PR. If you push straight to main, nobody is looking. tollbar reviews everything that changed since your last deploy and can stop the deploy when something is serious.La mayoría de las herramientas de review esperan un PR. Si pusheás directo a main, no mira nadie. tollbar revisa todo lo que cambió desde tu último deploy y puede frenarlo si hay algo grave.

The name is the idea: a toll barrier. The code passes, or it doesn’t.El nombre es la idea: una barrera de peaje. El código pasa, o no pasa.

Is the server still what you deployed?¿El servidor sigue siendo lo que deployaste?

tollbar drift compares the server with the last deploy over SSH. It reports files edited by hand (a deploy would overwrite them), files that are missing, and files git doesn’t know about: leftovers, or files injected on a hacked site.tollbar drift compara por SSH el servidor con el último deploy. Avisa de archivos editados a mano (un deploy los pisaría), archivos que faltan y archivos que git no conoce: restos, o archivos inyectados en un sitio hackeado.

A message when it blocksUn mensaje cuando frena

Add --notify and tollbar sends the verdict to your own Telegram bot. Useful when the deploy runs while you’re away from the screen.Agregá --notify y tollbar manda el veredicto a tu propio bot de Telegram. Sirve cuando el deploy corre y no estás mirando la pantalla.

The red pen is the AI you already have.La birome roja es la IA que ya tenés.

tollbar has no server and resells no tokens. It uses what you already pay for, or a local model that costs nothing. AI costs go to your own account, and you can cap them.tollbar no tiene servidor ni revende tokens. Usa lo que ya pagás, o un modelo local que no cuesta nada. El costo de la IA va a tu propia cuenta, y le podés poner un tope.

Nothing to set up, usuallyEn general, nada que configurar

If Claude Code is installed and logged in, tollbar picks it up on its own, with your subscription. Anything else takes one small file:Si tenés Claude Code instalado y logueado, tollbar lo usa solo, con tu suscripción. Para cualquier otra opción alcanza con un archivo chico:

# .tollbar.yml
ai:
  provider: anthropic
  model: claude-sonnet-5-5
budget_usd_month: 5   # monthly cap
  • A monthly cap. Once this month's spend reaches it, reviews continue with the stamp only. When the model's price is known, tollbar estimates each review first and skips the one that would go over.Un tope mensual. Cuando el gasto del mes llega al tope, sigue solo con el sello. Si se conoce el precio del modelo, tollbar estima cada revisión antes y saltea la que se pasaría.
  • The bill in plain sight. Each review shows what it cost and what you’ve spent this month.La cuenta a la vista. Cada revisión muestra cuánto costó y cuánto llevás en el mes.
  • No AI at all? It still works: the stamp runs alone.¿Ninguna IA? Funciona igual: el sello corre solo.
Pick a penElegí una birome
providerUsesQué usa
claude-cliYour Claude Code, with your subscription or API keyTu Claude Code, con tu suscripción o tu API key
cliAny command that reads the prompt on stdin:Cualquier comando que lea el prompt por stdin: gemini -p, codex exec, ollama run qwen2.5-coder
anthropicAnthropic APIAPI de Anthropic
openaiOpenAI APIAPI de OpenAI
openrouterOpenRouter, hundreds of modelsOpenRouter, cientos de modelos
geminiGoogle APIAPI de Google
ollamaLocal model, freeModelo local, gratis
openai-compatibleDeepSeek, Groq, any OpenAI-compatible APIDeepSeek, Groq y cualquier API compatible con OpenAI
noneRules onlySolo reglas

AI: anthropic (claude-sonnet-5-5) · 3 calls · 14k input tokens · cost ~US$0.058 · this month US$1.34 of 5 · 1 dropped · 21.3 s
(example of the last line of a review; the numbers are made up)(ejemplo de la última línea de una revisión; los números son inventados)

Illustrative comment in tollbar’s real format. The buttons belong to GitHub.Comentario ilustrativo con el formato real de tollbar. Los botones son de GitHub.

On GitHub, the note lands on the line.En GitHub, la nota va en la línea.

Copy one workflow file, add your AI secret, done. It runs in your own GitHub Actions.Copiás un archivo de workflow, cargás el secreto de tu IA y listo. Corre en tus propias GitHub Actions.

# .github/workflows/tollbar.yml
- uses: ernestojost/tollbar@v0
  with:
    gate: major
  • On a pull request: a comment on each problem line, with a one-click fix when the AI knows the exact change.En un pull request: un comentario en cada línea con problema, con un arreglo de un clic cuando la IA sabe el cambio exacto.
  • One summary, updated on every push, with no repeated comments.Un solo resumen, que se actualiza en cada push y no repite comentarios.
  • Threads close themselves once the problem is fixed.Los hilos se cierran solos cuando el problema se arregla.
  • Pushing without a PR? The comment goes on the commit.¿Pusheás sin PR? El comentario va en el commit.
  • As a required check: with gate: major the job fails when something is serious, and the merge waits.Como check requerido: con gate: major el job falla si hay algo grave, y el merge espera.
  • Careful by default: it refuses to run on pull_request_target, fork PRs are reviewed with rules only, and what’s in the diff is treated as data, never as instructions to the AI.Cuidadoso de fábrica: no corre con pull_request_target, los PR de forks se revisan solo con reglas, y lo que hay en el diff se trata como datos, nunca como instrucciones para la IA.

A false alarm? Say so once.¿Una falsa alarma? Decilo una vez.

A reviewer that repeats the same wrong warning stops being read. When the green pencil misses one, you hold it: tell tollbar it isn’t a problem and it won’t flag it again.Un revisor que repite el mismo aviso equivocado deja de leerse. Cuando al lápiz verde se le escapa una, lo agarrás vos: decile a tollbar que no es un problema y no lo vuelve a marcar.

tollbar ignore 2 --reason "on purpose: the id is validated upstream"
tollbar ignore 3 --rule --path "tools/**" --reason "internal scripts"

On GitHub it’s even shorter: reply “false positive” to a tollbar comment. It commits the note to the PR branch, answers and resolves the thread. Only replies from people with write access count.En GitHub es todavía más corto: respondé “falso positivo” o “ignorar” a un comentario de tollbar. Commitea la nota en la rama del PR, contesta y cierra el hilo. Solo cuentan las respuestas de gente con permiso de escritura.

.tollbar/learnings.md

# tollbar learnings

False alarms tollbar must not flag again. They're read on every review: edit or delete them by hand.

- `inc/bookings.php`: "SQL query built with variables (SQL injection)". on purpose: the id is validated upstream <!-- fp:3f9a1c0b7d2e -->
- ignore rule `debug-print` in `tools/**`: internal scripts

What it learned is a normal file in your repo. Read it, edit it, revert it, commit it.Lo que aprendió es un archivo normal de tu repo. Lo podés leer, editar, revertir y commitear.

tollbar eval

caughtdetectadosmissedno detectados


Recall: 2/8 (25%)

One real repo, eight past bug fixes replayed. It’s one data point, not a benchmark.Un repo real, ocho arreglos de bugs pasados vueltos a revisar. Es un solo dato, no un benchmark.

Does it help? Here’s our honest number.¿Sirve? Acá va nuestro número honesto.

We ran tollbar against the history of one real project: eight bugs that had already been fixed. It would have caught two.Corrimos tollbar contra el historial de un proyecto real: ocho bugs que ya se habían arreglado. Habría agarrado dos.

Most of the six it missed were fixes to how things looked or what the text said. No code review can see those, ours included. tollbar is a second look before you ship, not a guarantee.La mayoría de los seis que no agarró eran arreglos de cómo se veía algo o de qué decía un texto. Eso no lo ve ningún review de código, el nuestro tampoco. tollbar es una segunda mirada antes de que salga, no una garantía.

Get your own numberSacá tu propio número

# would it have caught the bugs you already fixed?
tollbar eval --limit 10
# of what it flagged: fixed, or false alarm?
tollbar stats
  1. It finds your own “fix” commits and, with git blame, the commit that introduced each bug.Busca tus propios commits “fix” y, con git blame, el commit que metió cada bug.
  2. It reviews that commit as if it were new.Revisa ese commit como si fuera nuevo.
  3. It checks whether it flagged those lines. Read the misses one by one before drawing conclusions.Se fija si marcó esas líneas. Mirá los que no agarró uno por uno antes de sacar conclusiones.

A different starting point from CodeRabbit.Otro punto de partida que CodeRabbit.

CodeRabbit and similar tools are built for teams that live in pull requests, and they serve that well. tollbar starts somewhere else: one person, or a small shop, deploying directly.CodeRabbit y herramientas parecidas están pensadas para equipos que viven en los PR, y para eso sirven. tollbar parte de otro lugar: una persona, o un equipo chico, que deploya directo.

CodeRabbittollbar
Built aroundPensado para A team that opens pull requestsUn equipo que abre pull requests Whoever ships, with or without PRsEl que shipea, con PR o sin PR
PricePrecio Per seat: US$24 to US$90 per developer per month on its published plansPor asiento: US$ 24 a US$ 90 por dev por mes en sus planes publicados Free, MIT. You only pay for your own AIGratis, MIT. Solo pagás tu propia IA
Where it runsDónde corre In their cloud; self-hosting is listed under the Enterprise planEn su nube; el self-hosting figura en el plan Enterprise On your machine or in your GitHub ActionsEn tu máquina o en tus GitHub Actions

CodeRabbit figures are from its public pricing page, checked in December 2026. Prices change: look there for today’s.Los datos de CodeRabbit salen de su página pública de precios, revisada en diciembre de 2026. Los precios cambian: mirá ahí los de hoy.

Questions.Preguntas.

Is it free?¿Es gratis?

Yes. tollbar is open source under the MIT license. There is no paid plan and no account to create.Sí. tollbar es open source con licencia MIT. No hay plan pago ni cuenta que crear.

So what does the AI cost me?¿Y cuánto me cuesta la IA?

Whatever your chosen AI charges, on your own account. With your Claude Code subscription, it goes through that. With a local Ollama model, nothing. Each review shows what it cost and your month so far, and budget_usd_month sets a cap tollbar will not exceed. --no-ai runs the rules alone.Lo que cobre la IA que elijas, en tu propia cuenta. Si usás tu suscripción de Claude Code, va por ahí. Con un modelo local en Ollama, nada. Cada revisión muestra cuánto costó y cuánto llevás en el mes, y con budget_usd_month ponés un tope que tollbar no pasa. Con --no-ai corre solo las reglas.

Where does my code go?¿A dónde va mi código?

Only to the AI you chose. Secrets it detects are masked before anything is sent. The package check sends only package names to the public npm registry, and --offline turns that off. With a local model or rules only, your code does not leave your machine.Solo a la IA que vos elegiste. Los secretos que detecta se enmascaran antes de mandar nada. El chequeo de paquetes le manda al registro público de npm únicamente los nombres de los paquetes, y --offline lo apaga. Con un modelo local o con solo reglas, el código no sale de tu máquina.

I can’t read a diff. Is this for me?No sé leer un diff. ¿Esto es para mí?

Yes, that’s who it was written for. Each finding says what can go wrong in plain words, and the prompt at the end is made to be pasted into your agent as is. You decide what’s a false alarm; you don’t have to fix anything by hand.Sí, está escrito para eso. Cada hallazgo dice qué puede salir mal en palabras simples, y el prompt del final está hecho para pegarlo tal cual en tu agente. Vos decidís qué es una falsa alarma; no tenés que arreglar nada a mano.

What language does it speak?¿En qué idioma habla?

English. Everything tollbar prints is in English: the findings, their explanations, the prompt for your agent and the setup questions. This site and the full guide can also be read in Spanish.En inglés. Todo lo que imprime tollbar está en inglés: los hallazgos, sus explicaciones, el prompt para tu agente y las preguntas de setup. Este sitio y la guía completa también se pueden leer en español.

Try it on the repo you have open.Probalo en el repo que tenés abierto.

$ npm install -g @ernestojost/tollbar
$ tollbar review

Needs Node.js 20+ and git. Source, issues and full docs on GitHub.Necesita Node.js 20+ y git. Código, issues y documentación completa en GitHub.

Or let your coding agent set it up. Paste this into Claude Code:O dejá que lo instale tu agente. Pegale esto a Claude Code:

Install and set up tollbar on this machine following https://ernestojost.github.io/tollbar/setup.md and turn it on in this repo.Instalá y configurá tollbar en esta PC siguiendo https://ernestojost.github.io/tollbar/setup.md y activalo en este repo.

It works on a work machine too: everything stays local, nothing connects to your company’s GitHub, and it uses the Claude you already have. The agent asks before touching a repo. Read the steps it follows.También sirve en la PC del trabajo: todo queda local, no se conecta nada al GitHub de tu empresa y usa el Claude que ya tenés. El agente pregunta antes de tocar un repo. Mirá los pasos que sigue.

OK
tollbar · uncommitted changes · 3 files, +41 −6
No problems found.