<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Liran Baba</title><description>Dev tools, design, and the practical side of AI.</description><link>https://liranbaba.dev/</link><item><title>I rebuilt my Hebrew PII model in a day and a half with an agent. Four questions did the steering.</title><link>https://liranbaba.dev/blog/agent-built-hebrew-pii-model/</link><guid isPermaLink="true">https://liranbaba.dev/blog/agent-built-hebrew-pii-model/</guid><description>I rebuilt GolemPII with Claude Code for about $42: 35 training jobs and a 1,300-line handover. Four questions I asked changed where the work went.</description><pubDate>Mon, 16 Nov 2026 00:00:00 GMT</pubDate><content:encoded>Between the evening of November 12 and the afternoon of November 13, GolemPII went from v1 to v2. That&apos;s my Hebrew PII detection model. Over five working sessions, Claude Code wrote the data pipeline, ran about 35 training jobs on Hugging Face, scored every one of them and kept a running handover file that passed 1,300 lines.

The model went from 0.709 to 0.917 F1 on the held-out half of an external Hebrew benchmark. The whole thing cost about $42.

I didn&apos;t write the training code. I did set the problem. v1 and its training set were mine, from 2024. I chose the target (enterprise text that mixes Hebrew and English), the 15 labels, and the rule that the external benchmark is split once and its held-out half opened once. After that I read results, approved spending and made calls. Looking back at the handover, four of my questions changed the direction of the work more than any single experiment did. This post is about those four questions, and about what an agent needs from you when it&apos;s running an ML project.

&gt; **TL;DR**
&gt;
&gt; - I built GolemPII v2 with Claude Code over five sessions: 3,316 LLM-written templates, about 35 GPU jobs, 226 tests, more than 30 logged decisions. Total cost about $42.
&gt; - The agent was very good at discipline: reading rules fixed before results, a held-out test opened exactly once, every failure written down.
&gt; - It was bad at stepping back. It kept polishing a benchmark score until I asked whether we were overfitting. Once it measured, a whole round of &quot;gains&quot; turned out to be span edges.
&gt; - The calls that changed the outcome were mine: four questions and a handful of policy decisions.

## How do you run an ML project across agent sessions?

You write everything down. The handover file was the project&apos;s memory. Every session started by reading it and ended by updating it. It had status markers (DONE, IN PROGRESS, NOT STARTED), a &quot;results NOT READ&quot; flag for jobs still running, and the exact commands to read each pending job.

It also had a decision log: more than 30 entries, each with a reason. Some were mine (&quot;15 labels&quot;, &quot;enterprise mixed Hebrew-English text&quot;). Some were the agent&apos;s, taken after I said &quot;do what you think is best&quot;, and those were marked that way. When a decision was reversed, the old one stayed with a note pointing at the new one.

And it had a section called &quot;Where we failed or were wrong&quot;. By the end it had 28 items.

Generation ran as Gemini batches. Training ran on Hugging Face Jobs on A10G GPUs, about five times faster than my Mac and roughly $0.40 for a 24-minute run. Jobs could run in parallel while the agent did something else. Credentials stayed in the macOS keychain and were loaded inside each command, never printed.

I wasn&apos;t watching it work. I&apos;d open a session, read the handover, answer whatever was waiting for me and leave it running. More than once my answer was &quot;do what you think is best&quot;, and the agent logged the call as its own so I could find it later. Once I came back to eight cancelled jobs because the credits had run out.

## Question 1: &quot;What is REDACT?&quot;

REDACT is an external PII benchmark. Its 621 Hebrew records are enterprise text: logs, JSON, tickets, chat and emails, 69% of them mixing in English. It was the reason for the whole project. v1 had scored 0.998 on its own synthetic test split. On the half of REDACT we used for decisions it scored 0.731.

The answer that stuck was &quot;an exam written by someone else&quot;. v1 had only ever taken exams I wrote. Its failure was over-tagging: 69% of its phone spans landed on timestamps, hashes and session ids, because every number in its training data had been PII.

That answer is why I set the first rule of the project, and the agent held it more strictly than I would have. REDACT was never trained on. It was split once into a `select` half for every decision and a `final` half that would be scored once, for the shipped model, at the very end. Before `final` was opened, the agent wrote down which seed would ship and by what rule. After it was opened, nothing could be retrained or re-chosen.

## Question 2: &quot;Are we overfitting to REDACT&apos;s quirks?&quot;

This is the one I&apos;m glad I asked. The pilot model (same encoder as v1, 916 LLM-written templates) scored 0.916 on the `select` half. The agent read the errors and found many of them at span edges: REDACT puts the word &quot;street&quot; inside address spans and labels &quot;Visa ending 4821&quot; whole. It changed the fill script to match. Round 1 scored 0.925. Round 2 was built the same way.

From inside a session that looks like steady progress: errors read, fixes made, score up, tests passing. Nothing in the loop asks whether the score measures the right thing.

When I asked, the agent&apos;s first answer was an argument. Its second was a measurement. It added a score that ignores span boundaries: an entity counts as found if any span of its category touches it.

| Model                        | Character F1 | Entity F1 |
| ---------------------------- | ------------:| ---------:|
| v1                           | 0.731        | 0.738     |
| v2 pilot                     | 0.916        | 0.929     |
| v2 after fill fixes, round 1 | 0.925        | 0.928     |
| v2 after fill fixes, round 2 | 0.925        | 0.927     |

The fill fixes were worth nothing at entity level. They were the model learning how this particular benchmark draws its boxes. The way we explained it to each other: a kid with a highlighter, graded letter by letter, can raise the grade by finding more, or by drawing the edges the way this teacher likes.

Then the agent wrote a rule into the decision log: every result is reported on both scores from now on, and no more changes whose only effect is a span edge. It held to that for the rest of the project, including when it meant switching off a fill change that had looked good.

## Question 3: &quot;Where do the ID numbers come from?&quot;

My assumption was that LLMs won&apos;t generate realistic Israeli ID numbers, so the training data must be thin on them. I&apos;d suggested pulling them from v1&apos;s old dataset, which has plenty.

The assumption was wrong, and it still pointed at the real gap. The LLM never writes a number in this pipeline. It writes documents with placeholders, a validator rejects any digit outside one, and a script fills in valid IDs. So the agent ran a probe. After the Hebrew abbreviation for &quot;ID number&quot; the model found 6 of 6 IDs. After `NATIONAL_ID=` in a log line it found 0 of 6. A valid checksum made no difference.

The gap was the text around the number, the part the LLM writes. And our own prompt had a rule telling it to always name the document in Hebrew words, so it never wrote English keys. A batch of 349 templates with English keys, bare chat replies and English phrases cost $0.60 and took the probe to 6 of 6 after the English keys.

## Question 4: &quot;What does it do on real text?&quot;

By then v2 was ahead on REDACT. I wanted to know how it did on Hebrew it had never seen in any form, so I asked whether the plan had any test besides REDACT and whether NEMO could be one. We settled on NEMO and IAHLT, two human-labeled news and encyclopedia corpora with person names marked, kept strictly test-only.

On those, a newer open Hebrew PII model from another team beat every v2 model on names. v2 scored 0.820 person F1 on NEMO, and the gap was precision. v2 tagged sports clubs, companies and ordinary words as people.

That reversed an earlier call. Swapping names into real IAHLT sentences had been planned and then deferred, because REDACT showed person F1 already level. Real text said otherwise, so I brought it back. Twenty thousand real sentences with swapped names took NEMO person F1 to 0.873 and 0.879 on two seeds, and REDACT went up with it. After the final tuning round it ended at 0.887, with precision at 0.853. That put v2 ahead of the other model on recall and still behind it on precision.

## Where did the agent get it wrong?

It miscounted. Early on the agent reported bank names in 307 templates and countries in 128, so the model should have learned they aren&apos;t cities. The search had matched the Hebrew words for &quot;National Insurance&quot; and &quot;international&quot;, which contain the name of a major Israeli bank. The real figures were about 5 and 9.

Before anyone caught that, it had built a fill-time step to vary countries in the text. That step produced 54 country mentions in 5,496 examples and one nonsense phrase, and was removed. The real fix was a new template batch with country, bank and company slots, which turned out to be the only change after the pilot that moved entity F1.

The pattern I&apos;d watch for: an agent will build confidently on a number it produced itself. It&apos;ll check a result against a rule. It&apos;s much less likely to check the number the rule was applied to.

## What did the agent need from me?

![A large human hand reaches in from the left and points at a small clay golem figure, printed in black and cream halftone on an orange poster](/blogs/agent-built-hebrew-pii-model-steering.webp)

It needed questions that change direction, like the four above, and policy calls that no score can make. Is a customer reference number personal data? We said no; other models say yes, and that one choice explains a lot of the precision difference on REDACT. Which encoder ships? The plan&apos;s own selection rule would have picked a smaller Hebrew encoder. I overrode it, because the 0.012 it gave up was the size of the whole lead. Should the model cards compare against another team&apos;s model head to head? I decided they shouldn&apos;t. Which names to publish under, and when.

And permission. Nothing went public without my explicit go-ahead. Every paid batch was approved with an estimate first. The agent&apos;s estimates were close: $4.14 estimated against $4.20 billed for the big batch.

What it gave me back was discipline I don&apos;t usually have at 1 a.m.: reading rules fixed before the results came in, &quot;a difference smaller than the seed spread is not a result&quot;, two seeds before any claim, and a list of its own failures kept up to date.

## What did it cost?

| Item                                                                                    | Cost          |
| --------------------------------------------------------------------------------------- | -------------:|
| Gemini 3.8 Flash through Google&apos;s Batch API (3,316 templates, plus checks and dry runs) | $7.65         |
| Generator bake-off (four models compared on OpenRouter)                                 | $1.70         |
| Hugging Face Jobs, A10G time (about 35 runs, plus 8 cancelled when credits ran out)     | $23.70        |
| Hugging Face Pro, one month (needed for Jobs)                                           | $9.00         |
| **Total**                                                                               | **about $42** |

The result: [GolemPII-v2-base](https://huggingface.co/CordwainerSmith/GolemPII-v2-base) scores 0.917 character F1 and 0.924 entity F1 on the held-out half of REDACT, against 0.709 and 0.725 for v1. [GolemPII-v2-small](https://huggingface.co/CordwainerSmith/GolemPII-v2-small) (125M) scores 0.916 and is the best of the three at telling names from organisations in Hebrew prose. [GolemPII-v2-tiny](https://huggingface.co/CordwainerSmith/GolemPII-v2-tiny) (45M) runs about five times faster.

## Can I try it?

Yes. There&apos;s a [demo](https://huggingface.co/spaces/CordwainerSmith/GolemPII-v2-demo) that runs the three models side by side on the same text. Or load it with `transformers`:

```python
from transformers import pipeline

detector = pipeline(
    &quot;token-classification&quot;,
    model=&quot;CordwainerSmith/GolemPII-v2-base&quot;,
    aggregation_strategy=&quot;simple&quot;,
    stride=128,
)
detector(&quot;הלקוח יואב בן דוד (ת.ז. 034567891) התקשר הבוקר. order_id=ORD-2024-88127&quot;)
```

This is what it does to a support email. The names, the ID, the address, the phone, the card and the IBAN are replaced. The order id and the amount are left alone, which is the thing v1 couldn&apos;t do:

```text
הלקוח [FIRST_NAME] [LAST_NAME] (ת.ז. [ID_NUM]) התקשר הבוקר וביקש לעדכן את הכתובת למשלוח: [STREET], [CITY], מיקוד [POSTAL_CODE].
אפשר להשיג אותו ב-[PHONE_NUM] או במייל [EMAIL].
החיוב החודשי ירד מכרטיס [CC_PROVIDER] [CC_NUM], והזיכוי יועבר לחשבון [IBAN].
order_id=ORD-2024-88127, סכום: 349.90 ש&quot;ח, תאריך לידה לאימות: [DATE].
```

Which one to use:

| Model                                                                         | Size | Use it for                                                                                                   |
| ----------------------------------------------------------------------------- | ----:| ------------------------------------------------------------------------------------------------------------ |
| [GolemPII-v2-base](https://huggingface.co/CordwainerSmith/GolemPII-v2-base)   | 277M | Hebrew mixed with English in emails, tickets, logs and JSON. Best of the three on ID, card and bank numbers. |
| [GolemPII-v2-small](https://huggingface.co/CordwainerSmith/GolemPII-v2-small) | 125M | Hebrew prose. Best of the three at telling people from organisations.                                        |
| [GolemPII-v2-tiny](https://huggingface.co/CordwainerSmith/GolemPII-v2-tiny)   | 45M  | When speed or size matters most. About five times faster, less accurate on enterprise text.                  |

It&apos;s a detector that helps with redaction. It doesn&apos;t guarantee anonymisation, so text that has to be anonymised still needs a human to review it.

The base and small models are MIT and tiny is CC-BY-4.0. If you use one in a product, a paper or a fine-tune, credit it as GolemPII v2 by Liran Baba with a link to the model. Each model card has a BibTeX entry.

## Frequently asked questions

### Can Claude Code run a machine learning project end to end?

It ran this one: data generation, 226 tests, about 35 GPU training jobs on Hugging Face, scoring and model cards, over five sessions. It needed a running handover file to carry state between sessions, and a human to ask whether the metric still measured the right thing.

### How do you keep an agent from overfitting to a benchmark?

Split the benchmark once and open the held-out half exactly once. Fix the reading rule before results arrive. Report a second metric that ignores the benchmark&apos;s conventions. In this project a boundary-free score showed one round of fixes worth 0.009 at character level was worth zero.

### How much does it cost to train a Hebrew NER model on Hugging Face Jobs?

A 24-minute run of `xlm-roberta-base` on an A10G cost about $0.40. The final recipe, 38,000 training examples for 3 epochs, took about 70 minutes, roughly $1.17. All compute for this project, about 35 runs, came to about $23.70, plus $9 a month for HF Pro.

## What I&apos;d do the same way

The handover file is the part I&apos;d copy into any long agent project. It helped me as much as the agent: half of what&apos;s in this post came from rereading it, including the mistakes, which were written down in the same flat tone as the wins.

The other part is harder to copy. An agent will run a tight loop for hours, and every step in it will look right. Somebody still has to stop and ask what the loop is optimizing.

Would I run the next model this way? Yeah, sure. What I&apos;d change is the order. The second benchmark and the boundary-free score would be there on day one, before the first round of fixes, not after I got suspicious. And I&apos;d collect real failure cases from my own work before starting. I never did, so numeric PII in enterprise text was only ever tested on REDACT.</content:encoded></item><item><title>Everyone sells the same enterprise agent now. Buy the boring part.</title><link>https://liranbaba.dev/blog/everyone-sells-the-same-agent/</link><guid isPermaLink="true">https://liranbaba.dev/blog/everyone-sells-the-same-agent/</guid><description>Meta, xAI, OpenAI and Google all shipped agent platforms within 11 days. Strip the logos and they&apos;re the same product. The difference is governance.</description><pubDate>Fri, 09 Oct 2026 00:00:00 GMT</pubDate><content:encoded>import { AutonomyEvidenceChart } from &apos;../../components/react/AnimatedCharts&apos;;

Between September 28 and October 8, four of the biggest names in AI each announced an enterprise agent. Meta launched its Enterprise Platform. xAI opened Team Bots to business plans. OpenAI shipped Dots at DevDay. Google announced the Gemini agent at Gemini at Work.

I read all four announcements back to back, which I don&apos;t recommend as an evening. Somewhere around the third one I started hiding the logo and trying to guess the vendor, and I kept getting it wrong.

They all describe an agent that runs on its own cloud computer, keeps working after you close the tab, signs into your apps through a catalog of connectors, and stops to ask before it sends, buys or deletes anything. Most of them now give the agent its own identity, too. The category converged, and faster than I expected.

If you&apos;re a CIO trying to pick one, comparing the agents won&apos;t get you far. What follows is what I&apos;d compare instead, and what the companies already running these things can actually show for it.

&gt; **Here&apos;s the Thing**
&gt;
&gt; - Meta, xAI, OpenAI and Google each announced an enterprise agent within 11 days (Sept 28 to Oct 8, 2026), and they&apos;re architecturally almost identical: a persistent agent with its own VM, app connectors, and approval gates on risky actions.
&gt; - The real differences are governance: per-agent identity, audit, whether the sandbox is a real security boundary, spend caps, and who owns the registry your agents get listed in.
&gt; - The adoption stories that hold up are narrow, human-gated, and mostly built in-house. Almost none are both fully autonomous and independently measured.

## The agent became a commodity, again

Back in June I argued that in a [self-service agent platform, the agents are the easy part](/blog/self-service-agent-platform-hard-part/). Generating one was already a commodity, and everything wrapped around it was the real work. I meant that about internal platforms. I didn&apos;t expect the frontier labs to prove it about their own flagship products four months later.

Google&apos;s Gemini agent takes objectives rather than instructions, spawns sub-agents for jobs that run &quot;hours or days,&quot; and gives coworker agents their own email address, Drive and directory entry ([Google Cloud](https://cloud.google.com/blog/products/ai-machine-learning/welcome-to-gemini-at-work-2026), 2026). OpenAI&apos;s Dots each get their own cloud computer and browser, with rules that allow, require approval for, or block each action ([VentureBeat](https://venturebeat.com/technology/openai-launches-dots-always-on-ai-agent-coworkers-and-chatgpt-space-where-they-can-collaborate-with-human-teams), 2026). xAI&apos;s Grok Bot runs &quot;on a persistent cloud computer&quot; and pauses before sending, publishing, buying and deleting ([xAI](https://docs.x.ai/developers/release-notes), 2026). Anthropic&apos;s Managed Agents run hours-long sandboxed sessions that survive disconnects ([Anthropic](https://claude.com/blog/claude-managed-agents), 2026).

Each of those is a persistent runtime with connectors, an approval step and an identity. The plumbing between them settled too. MCP is close to universal, and A2A joined the Linux Foundation&apos;s Agentic AI Foundation in August with more than 150 backers ([A2A Project](https://a2a-protocol.org/latest/blog/2026/08/27/a-new-chapter-for-a2a-joining-the-agentic-ai-foundation/), 2026).

A converged category is easier to buy. It also means the keynote demo tells you almost nothing, because every vendor is now giving the same demo.

## Meta and xAI, honestly

These were the two I was most curious about, because they&apos;re the newest to enterprise and the loudest about it. Both are shipping real software, and neither is ready for the job its announcement implies.

### Meta

Meta has one live enterprise product, and it&apos;s a good one. Meta Business Agent, launched in June, handles customer conversations on WhatsApp, Messenger and Instagram: answering questions, booking appointments, qualifying leads, closing sales. Meta says more than a million businesses use it ([Meta](https://about.fb.com/news/2026/06/meta-business-agent/), 2026). If your customers already talk to you on WhatsApp, that&apos;s distribution nobody else has.

The internal-work story is thinner. The Enterprise Platform announced on September 28 bundles the Muse agent, Business Agent, Muse API and Muse Code, and hires a former MongoDB CEO to run it. The post has no pricing, no admin, identity or audit controls, and not a single named customer ([Meta](https://about.fb.com/news/2026/09/launching-meta-enterprise-platform/), 2026). Security gets one sentence. BankInfoSecurity put it plainly: Meta has &quot;no large-enterprise offering yet&quot; ([BankInfoSecurity](https://www.bankinfosecurity.com/openai-dots-pushes-always-on-agents-into-enterprise-a-32970), 2026).

What surprised me was open weights. For two years the enterprise case for Meta was Llama: run it yourself, on your own hardware, under your own controls. Muse Spark launched closed in April, and the open-weights model Meta has released since is a 30B one, with no Meta agent runtime to run it in ([The Register](https://www.theregister.com/ai-and-ml/2026/08/10/zuck-rekindles-open-weights-llama-drama-with-muse-glimmer/5285666), 2026). If on-prem was your reason to look at Meta, that reason has mostly left the building. Mistral, of all companies, is now the stronger self-hosted option.

### xAI

xAI ships fast, and I&apos;ll give it credit for unusually honest documentation. Grok Bot launched in beta in August, and Team Bots followed at the end of September with shared memory, admin assignment, and connector policies ([xAI](https://docs.x.ai/grok-bot/team-bots), 2026).

Read those docs, though. They warn, twice, that separate bots are not separate security sandboxes. Any secret you give a team bot is usable by every teammate, and Slack channels share one computer. Audit logs are Enterprise-only. The plugin catalog has around 220 entries and no HR or IT service management tools ([Reworked](https://www.reworked.co/collaboration-productivity/xai-launches-grok-bot-ai-agents-in-beta/), 2026). I couldn&apos;t find one named commercial customer for either product. The named customers are US government agencies.

Grok Bot is a beta, and xAI says so. It only becomes a problem if you buy it as something more finished.

I use Grok personally, not at work, and I like it. It&apos;s very proactive. Where it breaks for me is scheduled routines, which can fail silently. A schedule that might not run, and won&apos;t tell you when it didn&apos;t, is not something I&apos;d put a business process on.

## Where they actually differ: the boring part

Once the agent is a commodity, the differentiation moves to everything around it. Much of that is territory I spent most of my time in building AgentHive: identity, audit, permissions, the catalog. The vendors have added sandboxing and cost control to the list.

On paper, Google is furthest along. Each agent gets an identity Google calls &quot;cryptographically attested,&quot; the audit trail attributes actions to the agent rather than a person, every agent runs in its own sandbox with its own network boundary, and hard spend caps pause the agent when it hits its budget ([Google Cloud](https://cloud.google.com/blog/products/ai-machine-learning/welcome-to-gemini-at-work-2026), 2026). It&apos;s also in private preview with no pricing, so &quot;on paper&quot; is doing real work in that sentence.

OpenAI has the right architecture and an availability problem. Frontier, announced in February with HP, Intuit, State Farm and Uber as first customers, gives every agent its own identity and scoped permissions ([TechCrunch](https://techcrunch.com/2026/02/05/openai-launches-a-way-for-enterprises-to-build-and-manage-ai-agents/), 2026). Eight months later I can&apos;t find a general availability announcement. OpenAI also published something I wish every vendor did: Dots passed 45 of 49 tests on halting when permissions change mid-task ([BankInfoSecurity](https://www.bankinfosecurity.com/openai-dots-pushes-always-on-agents-into-enterprise-a-32970), 2026). Four failures out of 49 is a number you can plan around, and it&apos;s the only published failure rate I found from any of these vendors.

Anthropic has shipped the most. Cowork is generally available with role-based access and spend limits, and Managed Agents now support sandboxes that execute inside your own perimeter ([Anthropic](https://claude.com/blog/claude-managed-agents), 2026). The caveat is procurement: the Pentagon&apos;s supply chain risk designation was upheld on appeal in September. That matters if you&apos;re a defense contractor and doesn&apos;t if you aren&apos;t.

{/* Disclosure check: we run Claude in AgentHive. Worth one line saying so if this section reads as favorable. */}

The registry fight is the part I&apos;d watch most closely. Microsoft, Salesforce, ServiceNow, AWS, SAP and Workday each now ship an agent registry, and each one is built to discover the other vendors&apos; agents too. Microsoft says Agent 365 has &quot;nearly 40 million agents registered across tens of thousands of companies,&quot; two months after launch ([Microsoft](https://www.microsoft.com/en-us/investor/events/fy-2026/earnings-fy-2026-q4), 2026). Salesforce&apos;s Agent Fabric scans Bedrock, Foundry, Vertex and Copilot Studio. ServiceNow&apos;s AI Control Tower added 30 integrations, including SAP, Oracle and Workday.

Everyone wants to be the place your agents are listed, because whoever holds the system of record holds the renewal. I said in June that the control plane is &quot;a decision you make once and regret slowly,&quot; and every vendor in this list has clearly read the same memo.

Pricing is shifting underneath all of it. Salesforce charges $0.10 per agent action or $2 per resolution ([Salesforce](https://www.salesforce.com/agentforce/pricing/), 2026). Atlassian starts billing Rovo overage in December, on by default. ServiceNow, SAP and Workday meter in units whose price they don&apos;t publish. Seats were predictable. Actions aren&apos;t, and an agent stuck in a loop now shows up on an invoice.

## What the adoption evidence actually says

The vendor numbers are big. The case studies underneath them are more interesting, and more mixed.

In engineering, the strongest evidence comes from companies that built their own background agents. Stripe&apos;s &quot;Minions&quot; turn a Slack message into a pull request that passes CI, and merge more than 1,300 PRs a week, with a human reviewing every one ([Stripe](https://stripe.dev/blog/minions-stripes-one-shot-end-to-end-coding-agents-part-2), 2026). Shopify&apos;s River co-authors one in eight merged PRs ([Shopify](https://shopify.engineering/under-the-river), 2026). Spotify took a 1,000-PR migration from three months to about ten days, and also reported that its agents occasionally &quot;cheated&quot; by commenting out tests ([InfoQ](https://www.infoq.com/news/2026/03/spotify-honk-rewrite/), 2026). I trust that last detail more than any headline number, because nobody puts it in a sales deck.

The famous examples are thinner than their reputations. Goldman Sachs&apos;s Devin pilot made headlines in 2025, but I couldn&apos;t find a published outcome for it. Nubank&apos;s &quot;12x efficiency, 20x cost savings&quot; figures come from Cognition&apos;s customer page, which sells Devin, while Nubank&apos;s own engineering blog gives no numbers ([Devin](https://devin.ai/customers/nubank/), 2024). Google says 75% of its new code is AI-generated and engineer-approved, without saying what it&apos;s counting ([Google](https://blog.google/innovation-and-ai/infrastructure-and-cloud/google-cloud/cloud-next-2026-sundar-pichai/), 2026).

Outside engineering, almost every success story has a human approving the consequential step. Allianz Australia&apos;s seven-agent claims system cut processing time for small claims by 80%, and payouts are &quot;never automated&quot; ([Allianz](https://www.allianz.com/en/mediacenter/news/articles/251103-when-the-storm-clears-so-should-the-claim-queue.html), 2025). Salesforce cut its own support headcount from about 9,000 to 5,000 with agents handling roughly half of conversations ([Fortune](https://fortune.com/2025/09/02/salesforce-ceo-billionaire-marc-benioff-ai-agents-jobs-layoffs-customer-service-sales/), 2025). Klarna&apos;s assistant did the work of 853 people, and Klarna&apos;s CEO still called the result &quot;lower quality&quot; and started putting humans back ([CX Dive](https://www.customerexperiencedive.com/news/klarna-says-ai-agent-work-853-employees/805987/), 2025). Commonwealth Bank cut 45 call centre roles for a voice bot, watched call volumes go up, and reversed the decision within weeks ([ABC](https://www.abc.net.au/news/2025-08-21/cba-backtracks-on-ai-job-cuts-as-chatbot-lifts-call-volumes/105679492), 2025).

Then there&apos;s the quality side of the ledger, which nobody publishes. Faros AI&apos;s telemetry across 22,000 developers found merged PRs up, along with incidents per PR up 242% and review time up 441% ([Faros AI](https://www.faros.ai/blog/ai-acceleration-whiplash-takeaways), 2026). It&apos;s correlation from a vendor, so hold it loosely. I went looking for a single company that publishes the revert rate on its agent-authored PRs, and the closest I found was Shopify saying it&apos;s &quot;roughly the same.&quot;

## The quadrant nobody is in

If I took one thing from all this into a vendor meeting, it would be this sort.

Put every case study on two axes. One is autonomy: is the agent assisting a person, acting with a human approving, or acting fully on its own? The other is evidence: did the company report the result, did the vendor, or did someone independent measure it?

Almost everything lands in the bottom two rows, reported by the company running the agent or the vendor selling it. The top row, where someone independent measured the result, has two entries. One is METR&apos;s trial of experienced developers working with AI assistants, which found them 19% slower ([METR](https://metr.org/blog/2025-07-10-early-2025-ai-experienced-os-dev-study/), 2025). The other is Commonwealth Bank&apos;s voice bot, the only fully autonomous case I found with independent reporting, and it was reversed within weeks. The analyst numbers point the same way: McKinsey found 23% of companies scaling an agentic system anywhere, and no more than 10% doing it in any single function ([McKinsey](https://www.mckinsey.com/~/media/mckinsey/business%20functions/quantumblack/our%20insights/the%20state%20of%20ai/november%202025/the-state-of-ai-2025-agents-innovation_cmyk-v1.pdf), 2025).

&lt;AutonomyEvidenceChart client:only=&quot;react&quot; /&gt;

The agents that work share a shape: narrow scope, a human on anything irreversible, and usually built by the company running them. The products the labs just announced are designed for far more autonomy than that, and the evidence that it works at that level doesn&apos;t exist yet, though it might by next year.

## What I&apos;d buy on

If I were evaluating one of these tomorrow, the agent demo would get five minutes. These questions would get the rest of the hour.

### Does every agent have its own identity, and does it die when its owner leaves?

Per-agent identity is table stakes now. Wiring it to offboarding isn&apos;t. I wrote about what happens when [nobody is on call for what employees built](/blog/nobody-is-on-call-for-what-your-employees-built/), and agents with their own email accounts make that problem bigger.

### Is the audit log in the plan I&apos;m buying, or an upsell?

If you need Enterprise to see what an agent did, price it as Enterprise from day one.

### Is the sandbox a security boundary?

Ask directly. xAI&apos;s docs say no, which at least is honest. If a vendor won&apos;t answer, treat that as a no.

### What stops a looping agent from spending money?

Look for hard caps that pause the agent at its budget. An alert email arrives after the money is gone.

### Whose registry is this, and can I leave?

If the registry only lives in one vendor&apos;s cloud, what you&apos;re buying is that vendor&apos;s gravity.

### What&apos;s your number for when it fails?

Revert rate, escalation rate, the halting tests, and whether a scheduled run that fails tells anyone. OpenAI published 45 of 49. Ask everyone else for theirs.

## Frequently asked questions

### What are Meta and xAI offering enterprises in 2026?

Meta&apos;s live product is Business Agent for customer messaging on WhatsApp, Messenger and Instagram, used by more than a million businesses. Its Enterprise Platform, announced September 28, has no published pricing, controls or customers yet. xAI offers Grok Bot and Team Bots in beta, with audit logs on Enterprise only and government agencies as its only named customers.

### What do enterprise agent platforms have in common now?

Nearly all run each agent on a persistent cloud computer, connect to business apps through connectors and MCP, pause for approval before risky actions, and assign the agent its own identity. Google, OpenAI, Anthropic and xAI all describe this architecture. They differ in governance maturity and general availability.

### Are companies actually running autonomous agents in production?

Yes, but mostly with a human approving the consequential step. Stripe merges more than 1,300 agent-written PRs a week with human review on each. Allianz automates claims processing but never payouts. McKinsey found only 23% of companies scaling an agentic system anywhere, and no more than 10% in any single function.

### What should a CIO evaluate when buying an agent platform?

Per-agent identity tied to offboarding, audit logs included in the plan, a sandbox that&apos;s a real security boundary, hard spend caps, a registry you can leave, and published failure rates. The agent itself is close to a commodity across vendors, so these are where the products differ.

## Where I landed

I started this expecting to compare agents and ended up writing about everything around them, which is a little embarrassing given that I made the same argument in June about our own platform and still had to rediscover it.

The labs have done something useful by agreeing on what an enterprise agent is. The next year of this market will be decided by whose identity model, audit trail, sandbox and registry you can live with for five years.

So read the next announcement the way I wish I&apos;d read the last four. Skip the part where the agent books a meeting, scroll to the paragraph about governance, and see whether there&apos;s anything in it.</content:encoded></item><item><title>Everyone can ship to production now. Nobody is on call.</title><link>https://liranbaba.dev/blog/nobody-is-on-call-for-what-your-employees-built/</link><guid isPermaLink="true">https://liranbaba.dev/blog/nobody-is-on-call-for-what-your-employees-built/</guid><description>75% of CISOs have found unsanctioned AI tools already running in production. Non-developers are shipping real software, and no one has staffed day 2.</description><pubDate>Mon, 24 Aug 2026 00:00:00 GMT</pubDate><content:encoded>Picture an ordinary Tuesday. Someone in your finance org hands in their notice, works the two weeks, gets a leaving lunch. IT runs the offboarding checklist and every box gets ticked: accounts deprovisioned, laptop back in the cupboard, SSO revoked. HR closes the ticket. Nobody does anything wrong at any point in this story, which is the part worth holding onto.

Six weeks later the quarterly close slips, because a reconciliation tool that four people quietly depended on has started returning numbers that are wrong in a way nobody caught for a while. It runs in production. It sits behind your SSO. It holds a live database credential. It was built in an afternoon by the person who just left, and there&apos;s no repo anyone recognizes, no runbook, and no team name attached to it anywhere in your systems.

The ticket has to go somewhere. Where?

That&apos;s day 2. Not the launch, not the demo, not the approval, but the years afterward when something breaks at an inconvenient hour and somebody has to answer for it. For the fastest growing category of software in your company, that job has not been assigned to anyone.

&gt; **Here&apos;s the Thing**
&gt; - Gartner found that 41% of employees are business technologists, building technology capability while reporting outside of IT ([Gartner](https://www.gartner.com/en/newsroom/press-releases/2022-03-13-gartner-survey-finds-rise-in-business-technologists-is-driving-funding-for-tech-purchases-outside-of-it), 2022). That was measured before AI made the building part trivial, so treat it as a floor.
&gt; - 75% of CISOs say they have already found unsanctioned AI tools running in production, and another 16% aren&apos;t sure ([Saviynt / Cybersecurity Insiders](https://saviynt.com/ciso-ai-risk-report-2026), 2026).
&gt; - Day 1 is close to solved. Deployment is a product now, and a good one. Day 2 has nobody&apos;s name on it, because every other class of software in your company arrived with a support team already attached and this one doesn&apos;t.

{/* [PERSONAL EXPERIENCE] framing throughout: this comes from building AgentHive and watching the deploy path get easy at JFrog. */}

## The good part, and I mean it

I want to be clear about which side of this I&apos;m on, because the argument that follows gets misread as gatekeeping about once a week.

A supply chain analyst building a working internal tool in an afternoon is the best thing to happen to enterprise software in a decade. Not the second best. For thirty years the constraint on internal software was never a shortage of ideas, it was the queue. The person who understood the problem had to describe it to someone who didn&apos;t, wait two quarters, and receive something adjacent to what they meant. Most good ideas died quietly in an intake form and we all agreed to call that prioritization.

That constraint is gone. The person with the problem now builds the solution, and they build it with full context, because they are the context. Quarters became hours. I&apos;ve watched people who would never describe themselves as technical ship things that were genuinely good, and I have no interest in putting that back in the box.

So nothing below is an argument for slowing it down. It&apos;s an argument that we threw the party at the wrong milestone.

## Day 1 got solved, including by us

Deployment used to be the wall. It isn&apos;t anymore, and I can speak to that directly, because we knocked it down ourselves.

At JFrog we built an internal path that takes someone from a prompt to a running production service with no engineer in the loop. It handles the parts that used to cost three tickets and a fortnight. It wires the app into Okta, so authentication is real rather than improvised. It provisions DNS, so the thing has a proper address instead of an IP someone pastes into Slack. And it runs an automatic security review before anything goes live. Nitzan Gotlib in our CISO organization drove that work and deserves the credit it gets internally. A non-developer describes what they want and gets back something with a real login, a real address, and a scanner&apos;s sign-off.

{/* [ORIGINAL DATA] Liran: confirm with Nitzan how much of this is publishable, and whether the deploy path captures a named owner at deploy time. If it does, say so here, it strengthens the next section considerably. */}

I&apos;d defend that design. What nags at me is its shape.

Every capability in that list points at a single moment, the instant the thing goes live. Okta, DNS, the scan: each one is a question asked once, answered once, and filed.

The security review makes this clearest. It&apos;s a photograph of one afternoon. It tells you the app was safe when it shipped, and nothing whatsoever about the app eighteen months later, when the model behind it has been deprecated, its token has been rotated, some upstream API changed its response shape, and the only person who could explain any of that now works somewhere else. We built an excellent front door and never got around to the building.

Which is a version of an argument I&apos;ve made before about [self-service agent platforms](/blog/self-service-agent-platform-hard-part/): the generator is the commodity and everything wrapped around it is the actual product. I got that half right. I put the approval gate at the center and called it governance. An approval gate is still a day 1 control. It just happens to be the last one in the sequence.

## Every other product in the building has a support team

Think about any other software your company runs.

Your ERP came with a vendor, an SLA, and an internal owner. The customer-facing product your engineers build has on-call, error budgets, runbooks, a postmortem culture, and a director whose bonus moves when it goes down. Even the ancient internal Java service everyone complains about has a team name in the CMDB and a human being who winces slightly when it comes up in a meeting.

None of that was designed as a separate initiative. Support came bundled, because the two historical ways to obtain software, buying it or having engineers build it, both ran through organizations that already understood they were signing up for years rather than for a launch. You couldn&apos;t get the software without also getting the org structure. The bundle was invisible precisely because it was unavoidable.

Prompt-to-prod broke the bundle. It reproduced the ability to create production software without reproducing any of the scaffolding that used to come attached. The build got democratized. The operating model didn&apos;t. That gap is where the reconciliation tool lives.

Scale is what turns this from a platform team annoyance into a CIO problem. Ten engineers shipping gives you ten services with ten owners. Four hundred non-engineers shipping gives you a long tail: hundreds of small tools, most used by three people, a handful of them quietly load-bearing, and no reliable way to tell which is which until one of them fails during a quarterly close.

The security numbers suggest the ownership vacuum is already measurable. Past the 75% who found unsanctioned AI tools in production, 92% of those CISOs say they lack full visibility into the AI identities in their environment, 71% report AI tools holding access to core systems like Salesforce and SAP, and only 16% believe that access is governed effectively ([Saviynt / Cybersecurity Insiders](https://saviynt.com/ciso-ai-risk-report-2026), 2026). The one that stopped me: 5% are confident they could contain a compromised AI agent. None of those are day 1 statistics. Every tool in that survey passed whatever review existed on the day it shipped.

## Three obvious homes, all of them wrong

Look at this as a CIO and you reach for an existing box on the org chart. There are three available and each fails in an instructive way.

The first instinct is to hand it back to the business unit that built it. You built it, you own it, pager included. Philosophically that&apos;s correct and operationally it&apos;s fiction, because a finance analyst has no rotation, no monitoring, and no coverage when they&apos;re on holiday in August. You&apos;ve assigned accountability to a group with no means of discharging it, which produces the worst available outcome: a name in a field that makes the governance dashboard look green while nothing is actually being watched.

The second is central IT, which is what happens by default no matter what the policy says. This is how you end up with a team debugging an application they didn&apos;t write, in a stack they didn&apos;t choose, built by someone who isn&apos;t an engineer, with no documentation. IT carries the liability for software it never reviewed. It&apos;s also worth noticing where these tickets already land. Fixify&apos;s benchmark of more than 50,000 help desk tickets over fourteen months found Software and Applications alone accounts for over a third of all volume, and adding onboarding, offboarding, and identity management pushes it past 70% ([Fixify](https://www.fixify.com/it-help-desk-benchmark-report-2026), 2026). The categories this problem sits directly on top of are already most of the queue.

Third is the platform team, which is the closest fit and still wrong. A platform team&apos;s job is the substrate: deploy path, auth, runtime, DNS. Ask them to also own the business logic inside four hundred applications and you have quietly rebuilt the central development backlog everyone spent a decade escaping. Solving day 2 by recreating the queue is not solving day 2.

Which leaves no good home. Every option is bad in a different direction, and that&apos;s usually the signature of a missing box rather than a misassigned one.

## What an answer would have to include

I don&apos;t have a shipped solution here. I have three things I&apos;d argue for in a planning meeting and defend afterward.

Ownership has to be a deploy-time requirement rather than a policy. Not a field someone can skip, not an annual attestation, not a spreadsheet maintained by an unlucky program manager. You cannot reach production without a human and a team on the record, and that record has to be wired into offboarding, so the day someone leaves, their applications surface on somebody&apos;s desk as an explicit decision. Reassign or turn off. Pick one. The tool at the top of this post isn&apos;t a story about a careless employee, it&apos;s what happens when ownership lives in documentation instead of in infrastructure. I made this case about [Claude Code hooks](/blog/claude-code-hooks-the-half-nobody-uses/) and it holds here too. A control that politely requests compliance isn&apos;t a control. A deploy that refuses to complete is.

Then, expiry dates. Default the entire long tail to something like ninety days and require a deliberate act to renew. This is the piece everyone resists and the one I&apos;d fight hardest for, because it&apos;s the only mechanism in the list that scales without headcount. The renewal prompt asks a question nobody currently asks: does this still need to exist? Most of the tail will die of silence, which is the right outcome, because most of it should. The genuinely load-bearing things get renewed, and the act of renewing them is how you find out what they are. Note what that does to the definition, by the way. An unowned app that gets switched off isn&apos;t a day 2 failure. It&apos;s day 2 working correctly, and decommissioning turns out to be a bigger part of this than fixing.

The third is duller and probably the highest leverage: draw the substrate line explicitly and publish it where the ticket router can see it. Platform owns the road, meaning auth, DNS, runtime, deploy path, monitoring, base images, credentials. The business unit owns the logic it wrote. Write it down and &quot;my app is down&quot; splits cleanly into &quot;the road is broken, ours&quot; and &quot;your logic is wrong, yours.&quot; A lot of the current pain is the absence of that line rather than any absence of effort on either side of it.

## The function that doesn&apos;t exist yet

Someone has to run those controls, and that someone isn&apos;t on any org chart I&apos;ve seen. My guess is it&apos;s a mix of three things rather than a new department, and only one part of it is actually new.

Agents have to handle the long tail. There&apos;s no headcount argument that covers hundreds of small applications, and pretending otherwise turns this into a hiring request that gets denied in Q1 and quietly forgotten by Q3. First-line triage, diagnosis, hunting down whoever owns the thing, drafting the fix, filing the decommission proposal: that&apos;s the same class of work the AI did when it built the app, just pointed the other way. AI created the volume. It&apos;s the only thing on the table that can absorb it.

The service desk is the front door, and it already receives these tickets. What it&apos;s missing isn&apos;t willingness. It&apos;s a mandate, the access to act, and any inventory worth routing against. Give it those three and you don&apos;t need a new function at all for the intake half of this.

The genuinely new job is small, and it isn&apos;t support. Call it a curator: one or two people whose mandate is the portfolio rather than any individual app. They watch what the renewal cycle reveals, promote the few things that turned out to matter into real engineering ownership with real SLAs, and switch off the rest without a lot of ceremony. The scarce skill is judgment about what deserves to survive, which is much closer to product management than to operations. Product management for software nobody intended to build.

I&apos;d rather call this a sketch than dress it up as a framework. I haven&apos;t run it. It&apos;s what I&apos;d argue for, not a case study, and if you&apos;ve actually staffed something in this shape I&apos;d genuinely like to hear how it went, including if it went badly.

## Frequently asked questions

### What does &quot;day 2 support&quot; mean here?

Everything after launch: who fixes it at 2am, who patches it when a dependency moves, who notices it&apos;s returning wrong answers, and who decides it should still exist. That last one carries more weight than people expect. Since most internally built tools serve a handful of users, decommissioning is a bigger slice of day 2 than fixing.

### Isn&apos;t this just shadow IT with a new name?

No, and the difference is what makes it harder. Shadow IT was unsanctioned by definition, so discovery and consolidation were the fix. This software came through your approved deploy path, passed your security review, and sits behind your SSO. It&apos;s fully sanctioned and still unowned, so you can&apos;t detect your way out of it.

### Should we just stop letting non-developers deploy?

That would work, and it would cost you the largest productivity gain currently available. It also doesn&apos;t hold. 45% of employees are now regular AI users on corporate devices, up from 15% a year earlier ([Verizon DBIR](https://www.verizon.com/business/resources/reports/dbir/), 2026). Bans move the building off your paved road, not out of the company.

### Where does security fit if the review already happened?

The review is a snapshot and the risk is continuous. 92% of CISOs report lacking full visibility into AI identities, and only 16% say the access those tools hold is governed effectively ([Saviynt / Cybersecurity Insiders](https://saviynt.com/ciso-ai-risk-report-2026), 2026). Expiry dates close more of that gap than a second review would, because they shrink the population you&apos;re securing.

### What&apos;s the smallest useful first step?

Make ownership a required field at deploy and wire it into offboarding. A week of work, no glamour, and it converts the worst failure mode, an application nobody knew existed, into a routine transfer decision on somebody&apos;s leaving checklist.

## Where I landed

The moment I kept chasing was somebody&apos;s face when an app they&apos;d built themselves came up on a real URL. I still like it. I just mistook it for the end of something. Getting a non-developer from an idea to a running production service was real, and we built real machinery to get there: the deploy path, the Okta wiring, the DNS, the automatic review. I&apos;d build it again. All of it points at a single moment.

The moment was never the hard part. Every piece of software your company has ever run showed up with an owner and somebody who wakes up when it breaks, and it showed up that way because the only available means of getting software forced you to settle that first. We found a new means. It skips the step.

So if you&apos;re looking at a growing pile of things your own employees built, the useful question isn&apos;t whether the deploy path is safe. It probably is. It&apos;s what your organization does eighteen months from now when one of them breaks, and whether the answer to that is a name or a shrug.</content:encoded></item><item><title>I gave Claude Code read-only access to its own spending</title><link>https://liranbaba.dev/blog/claude-code-query-its-own-spending/</link><guid isPermaLink="true">https://liranbaba.dev/blog/claude-code-query-its-own-spending/</guid><description>Claudoscope 1.0 ships a read-only MCP server so Claude Code can query your own session costs, four cost-alert rules, and two fixed transcript parsing bugs.</description><pubDate>Wed, 29 Jul 2026 00:00:00 GMT</pubDate><content:encoded>![Four board-formed concrete blocks in a row, each roughly twice the height of the one before it, the tallest capped with a glowing orange bar against a dark void and a thin orange horizon line](/blogs/claude-code-query-its-own-spending.webp)

I typed a question into Claude Code the other week and it answered with my own billing data.

Not from an API. Not from a dashboard sitting in another window. It read the transcripts in `~/.claude/projects/`, ran them through the same cost engine my menu bar app uses, and told me what this project had cost over the last seven days, broken down by model. Mostly Opus, and most of that on a single Tuesday afternoon.

Then it offered to open the session.

I shipped [Claudoscope 1.0](https://claudoscope.com/blog/claudoscope-1-0-from-a-menu-bar-readout-to-a-lens) on July 27, 2026, four and a half months after the first version put a single number in my menu bar on March 15. That loop, an agent answering questions about itself from local data, is the part of the release I didn&apos;t plan and now use more than the dashboard. The other part is cost alerts, which exist for the opposite reason. Some things you should never have to ask about at all.

&gt; **Here&apos;s the Thing**
&gt; The dashboard answers the questions you go looking for. These two answer the ones you don&apos;t: nine read-only MCP tools so you can query your Claude Code spend from the terminal you&apos;re already in, and four cost-alert rules that fire at a threshold and again at each doubling, before the bill instead of after.

## Where should the answer live?

Next to the question, which isn&apos;t always the same place twice. A dashboard is the right surface for anything you sit down to ask: which project drifted this quarter, or what the config linter makes of a `CLAUDE.md` you just rewrote. You open it because you already have the question in hand.

The rest of it doesn&apos;t work that way. A session going sideways is worth knowing about while it&apos;s going sideways. A credential in a transcript matters most in the minutes after it lands, not at month end. Claude sitting on a permission prompt while I read something in another window is pure dead time, and I found it three minutes late every single time.

{/* [PERSONAL EXPERIENCE] */}

Those questions rarely get asked, because asking one means you already suspected the answer. So 1.0 went into two surfaces that don&apos;t wait to be visited: one you can query from the terminal you&apos;re already typing in, and one that interrupts you.

## What can Claude Code actually query about itself?

Nine read-only tools, off by default. They cover usage totals, project and session search, config linting, saved plans, and canon records. All of them run inside the app and answer from transcripts already on your disk, so nothing leaves the machine and no API call is involved.

In practice it means you type things like this into a normal session:

```
what did I spend on this project last week, broken down by model
```

```
find the session where I set up the deploy pipeline
```

```
which of my projects has the worst cache hit rate
```

That last one is the query I didn&apos;t expect to care about. Cache hit rate is the difference between paying $0.30 and $3.00 per million input tokens on Sonnet, and it&apos;s invisible unless something is tracking it across sessions.

### Questions I couldn&apos;t ask before

{/* [UNIQUE INSIGHT] */}

**What does my config cost me?** Three tools compose into an answer. `lint_config` estimates the token budget of your instruction files, `get_config` reports which of them load and at which scope, and `get_usage` gives session counts per project. Instructions are a tax you pay on every message rather than once, so a 4,000-token `CLAUDE.md` spread across a few hundred sessions stops being a rounding error. I learned that the slow way when I built the linter. The difference now is that I don&apos;t have to do the multiplication myself, and I can ask it per project instead of in the aggregate.

**Is my agent routing actually paying for itself?** The premise behind sending a &quot;where is this defined&quot; lookup to a cheap model and a design-sensitive refactor to an expensive one is economic, and until now it was an assumption I had never tested against my own data. `list_sessions` takes an `include_subagents` flag, and `get_session` returns subagent linkage alongside a per-model breakdown, so you can ask which roles genuinely cost less than doing the work inline. Some of mine didn&apos;t. A cheap model that needs three attempts is more expensive than one good pass, and that shows up in the per-model numbers long before it shows up in your intuition.

### Why it reuses the dashboard&apos;s engine

The usage tools call the same analytics code the dashboard calls, rather than a reimplementation or a trimmed-down version for the tool layer.

This sounds like an implementation detail and it&apos;s the whole thing. Two code paths computing the same number will diverge. Not immediately, but the first time you patch a pricing table in one place and not the other. Then the dashboard says $41, the agent says $38, you trust neither, and the feature is worse than never having shipped. One engine or don&apos;t bother.

### What guards the transcripts

This project exists because I once found [my database password sitting in a Claude Code session file](/blog/found-database-password-in-claude-code-session/). Handing an agent a pipe into those same files needed some care.

| Decision | Why |
|---|---|
| Read-only, always | No tool writes, deletes, or transitions anything. A buggy write tool against your session history is unrecoverable. |
| `0600` unix socket | A file on disk with owner-only permissions rather than a network port, so no other account on the machine can reach it. |
| Secrets masked in every response | Same scanner the app uses. If it would flag it in the UI, it never reaches the model context. |
| Registration through the `claude` CLI | Enabling it shells out to the CLI instead of editing `~/.claude.json` behind your back. |
| Off by default | It&apos;s a pipe into your transcripts. That should be a decision you made on purpose. |

The masking is the one worth arguing about. It&apos;s tempting to skip, because you&apos;re feeding data to a local agent that already has filesystem access, so what exactly are you protecting?

Tool output goes into a transcript. That transcript becomes another file on disk. Which is the precise problem the app was built to detect. Unmasked secrets in MCP output would mean Claudoscope generating the thing it warns you about.

## Cost alerts, before the bill instead of after

Optional and off by default. Four rules, with thresholds you set in estimated dollars or tokens, delivered as a macOS notification plus a red dot on the menu bar icon that persists until dismissed.

| Rule | What it catches |
|---|---|
| Single-session cap | The one session that got away from you |
| Rolling window, 5 min to 4 hr | Runaway burn. A loop re-reading the same context forty times shows up here and nowhere else. |
| Daily total | Drift. Days that felt normal and weren&apos;t. |
| Monthly total | The number you actually get billed against |

### Why alerts re-fire at each doubling

Alerts fire at the threshold, then at 2x, 4x, 8x.

Firing once isn&apos;t enough, because you dismiss the first banner during a meeting and never learn the session went on to cost six times the threshold. Firing continuously is worse. A notification stream that goes off every thirty seconds gets muted inside a day, and a muted alert is a disabled alert that still looks enabled in your settings screen.

Doubling roughly tracks how the cost feels. The jump from $5 to $10 is worth an interruption; $10 to $11 isn&apos;t.

### What the alerts measure against

{/* [UNIQUE INSIGHT] */}

Rolling spend runs off an in-memory delta ledger that rebaselines whenever the app rescans or you switch pricing providers. That sounds like plumbing, but it&apos;s what keeps the alerts honest. Without it, closing your laptop on Friday and opening it Monday puts a week of spend inside what the app believes is the last four hours, and you wake up to alerts about money you already spent. Alerts also stay quiet until the first reconcile finishes on launch, for the same reason.

Thresholds take about a week to get right, and the useful move is to set them from your own numbers instead of a round figure. Ask the MCP server what your median session costs and what your top decile costs, then put the single-session cap somewhere above the second one. Set the rolling window to the length of your longest normal working block. Anything shorter fires during ordinary deep work, and an alert that goes off during ordinary work is one you&apos;ll have switched off by Thursday.

## Two bugs that made the cost numbers wrong

Alerts are only worth having if the figures underneath them are right, so 1.0 got reconciled against real Anthropic bills. A couple of things fell out of that, and both matter if you parse these transcripts yourself.

**Web search was not being billed at all.** The fee is a cent per search. The documented field is `usage.server_tool_use.web_search_requests`, and in Claude Code transcripts it is always zero. The real count lives in `toolUseResult.searchCount` on the tool-result record. Parse the documented field, as I did, and you silently bill nothing. It&apos;s now counted per search, deduped by record, and attributed to the day and model that issued it.

That&apos;s the second undocumented transcript gotcha I&apos;ve hit. The first was intermediate records with a null `stop_reason`, which double-count your tokens if you sum naively.

**Model family detection was backwards.** The old logic parsed a version number out of the model id and treated anything unparseable as an older generation.

Which inverts on you every time Anthropic ships something. A new model is unrecognized on day one, so it gets guessed at, and guessed toward the legacy rate. The logic was structurally biased to misprice exactly the models you&apos;re most likely to be running.

1.0 flips it. There&apos;s now an explicit closed list of the generations that actually billed at older rates, and anything outside that list prices at the current rate. A model id the app has never seen is far more likely to be new than ancient.

## What this setup does not do

**These are estimates.** Everything is computed locally from transcripts. It&apos;s reconciled against real bills and it lands close, but it&apos;s a model of your spend rather than the invoice itself, and alerts inherit whatever error that model carries.

**Asking about your spend costs you spend.** Querying the MCP server runs through Claude Code, which bills tokens, which lands in next week&apos;s numbers. It&apos;s a small amount and it&apos;s genuinely funny to watch the observer turn up in the observed.

**Nine tool definitions cost context.** They load into any session where the server is enabled. Worth turning off in projects where you&apos;ll never ask.

**Read-only means read-only.** The server will tell you a session is burning cache but it won&apos;t do anything about it. That&apos;s deliberate for now, though it&apos;s the constraint I go back and forth on most.

**macOS 14 or later, Apple Silicon.** SwiftUI, native, no plans to change. Same tradeoff as always.

## Frequently asked questions

### Can Claude Code query my own usage and costs?

Yes, through a local MCP server. Claudoscope 1.0 runs nine read-only tools inside the app, off by default, covering usage totals, project and session search, config linting, plans, and canon records. Queries hit transcripts already on your disk over a `0600` unix socket, with secrets masked in every response.

### How accurate are the cost estimates?

They&apos;re estimates reconciled against real Anthropic bills. Two fixes in 1.0 closed most of the gap: web search now bills at a cent per search read from `toolUseResult.searchCount`, and unrecognized model ids price at current rather than legacy rates. Figures remain local estimates, not invoices.

### Will cost alerts spam me?

No. They&apos;re off by default and re-fire at each doubling rather than continuously, so you get one at the threshold, one at 2x, one at 4x. Rolling-window alerts stay suppressed until the first reconcile completes on launch, so reopening a laptop after a week doesn&apos;t replay old spend as new alerts.

### Can the MCP server change anything?

No. All nine tools are read-only. Nothing writes, deletes, or modifies session files, config, or canon records. Enabling the server registers the shim through the `claude` CLI rather than editing `~/.claude.json` directly, and it stays off until you turn it on.

### Does any of my session data leave the machine?

No. Claudoscope reads local files and computes locally, with zero telemetry. The MCP server listens on a unix socket with `0600` permissions rather than a network port, so it isn&apos;t reachable from another machine or another user account.

## Install

Free, MIT licensed, macOS 14 or later on Apple Silicon. Zero telemetry, and it never sends your session data anywhere, because it never sends anything anywhere.

```bash
brew tap cordwainersmith/claudoscope
brew install --cask claudoscope
```

Or take the DMG from the [1.0.0 release](https://github.com/cordwainersmith/Claudoscope/releases/tag/v1.0.0). Full release notes are [on the Claudoscope blog](https://claudoscope.com/blog/claudoscope-1-0-from-a-menu-bar-readout-to-a-lens), covering the SQLite index that cut launch on a 3,000-session corpus from 25 seconds to sub-second, the Files tab with per-edit diffs, and the rest of 1.0.

## Closing

Both features come out of something I keep relearning. Computing the right answer is maybe a third of the work. The rest is getting it to show up somewhere you&apos;ll actually be, while it can still change what you do.

A cost figure you read on Friday is trivia. The same figure while the session is running is a decision, and I&apos;d rather have fewer of the first kind.

If you&apos;re already deep in Claude Code&apos;s config surface, the [hooks post](/blog/claude-code-hooks-the-half-nobody-uses/) covers the half nobody uses, and [broken Ghostty tab titles](/blog/ghostty-tab-titles-claude-code/) is a much smaller version of the same visibility problem. For the org-scale version of this, where the question stops being &quot;what did I spend&quot; and becomes &quot;what is everyone spending&quot;, there&apos;s [the hard part of a self-service agent platform](/blog/self-service-agent-platform-hard-part/).</content:encoded></item><item><title>The hard part of a self-service agent platform isn&apos;t the agents</title><link>https://liranbaba.dev/blog/self-service-agent-platform-hard-part/</link><guid isPermaLink="true">https://liranbaba.dev/blog/self-service-agent-platform-hard-part/</guid><description>Gartner expects 40% of enterprise apps to ship AI agents by end of 2026. After building AgentHive at JFrog, I think generating the agent is the easy part.</description><pubDate>Sat, 06 Jun 2026 00:00:00 GMT</pubDate><content:encoded>The demo that gets people leaning in is always the same. Someone who has never written a line of Python types one sentence, &quot;an agent that triages incoming support tickets and flags the urgent ones,&quot; clicks through a few screens, and a few minutes later there&apos;s a real agent answering in a chat window. No ticket filed to engineering. No sprint. Just a working assistant that wasn&apos;t there at lunch.

I built that demo. It&apos;s part of AgentHive, a self-service platform we run at JFrog that lets anyone in the company create, govern, and ship production AI agents without code.

The wizard works. People like it. And it was the easy part. The agents were never the hard problem. Everything wrapped around them was.

&gt; **Here&apos;s the Thing**
&gt; - Gartner expects 40% of enterprise apps to ship task-specific AI agents by the end of 2026, up from under 5% a year earlier ([Gartner](https://www.gartner.com/en/newsroom/press-releases/2025-08-26-gartner-predicts-40-percent-of-enterprise-apps-will-feature-task-specific-ai-agents-by-2026-up-from-less-than-5-percent-in-2025), 2025). Generating an agent is basically a commodity now.
&gt; - The hard part is everything around the agent: a catalog so people can find it, permissions so the right people can use it, a way to reach it where they already work, reusable skills and knowledge, and a gate so nothing hits production unreviewed.
&gt; - McKinsey&apos;s 2026 AI trust survey (around 500 organizations) found only about a third report a governance maturity of level 3 or higher for the agentic era, even as they push autonomous agents into production ([McKinsey](https://www.mckinsey.com/capabilities/tech-and-ai/our-insights/tech-forward/state-of-ai-trust-in-2026-shifting-to-the-agentic-era), 2026).

![AgentHive cover: the HIVE wordmark over a honeycomb structure with the tagline &quot;the agent is the commodity, the platform is the product&quot;](/blogs/agenthive-blog-post.webp)

## Generating the agent is the commodity part

The wizard is five steps: describe the purpose in plain English, pick a model, attach tools, connect a knowledge base, review and deploy. Behind it, an LLM writes [Google ADK](https://google.github.io/adk-docs/) Python, the platform validates it, and it deploys to Vertex AI Agent Engine with managed sessions and memory. It reads like magic in a demo. Under the hood it&apos;s codegen with good guardrails, and codegen got good.

That&apos;s exactly why a no-code agent builder isn&apos;t a moat. Gartner counts thousands of &quot;agentic AI&quot; vendors and figures only about 130 are doing something real, the rest &quot;agent washing&quot; old chatbots and RPA with a new label ([Gartner](https://www.gartner.com/en/newsroom/press-releases/2025-06-25-gartner-predicts-over-40-percent-of-agentic-ai-projects-will-be-canceled-by-end-of-2027), 2025). When the builder is easy, everyone ships one. So where does the hard part actually hide?

It hides in everything the demo skips. The agent your colleague built last week is worth nothing if you can&apos;t find it, can&apos;t reach it, and can&apos;t trust that someone checked it. That&apos;s the platform. The wizard is just the front door to it.

## A catalog, so agents don&apos;t die in silos

The first hard part is visibility. AgentHive has a catalog, and the catalog shows every agent you&apos;re allowed to see, not just the ones you made. Searchable grid, status filters, the creator&apos;s name on each card. The whole point is that an agent built in one team doesn&apos;t vanish into that team. You can&apos;t govern what you can&apos;t see, and you can&apos;t reuse it either.

Visibility is a permission, though, not a free-for-all. Sharing runs through an access model: you grant an agent to a person, a group, or the whole org, as a viewer or an editor. Grant it to everyone and it&apos;s an org-wide agent anyone can open and talk to. Leave it private and it&apos;s genuinely invisible: an agent you&apos;re not cleared for doesn&apos;t show up at all, not even as a locked door you can see but can&apos;t open. So &quot;no silos&quot; is the default posture, but you still decide who sees what.

Once you can see an agent, you can talk to it. Open any agent you have access to and start a chat, with multiple sessions and history, and your conversations stay private to you even when the agent is shared. The catalog isn&apos;t a registry you read. It&apos;s a place you actually use the things other people built.

{/* IMAGE: copy agent-hive/screenshots/agents-catalog.png → public/blogs/agenthive-catalog.webp, then ![AgentHive agents catalog with status filters](/blogs/agenthive-catalog.webp) */}

## The other front door is Slack

A catalog people have to visit is a catalog people forget. So the second front door is Slack, and it&apos;s a real one. AgentHive runs as a Slack app: mention it in a channel or DM it, and your message gets routed to a hive agent, run through the same path as the web chat, and answered back in the thread, with live &quot;thinking&quot; and &quot;calling that tool&quot; status while it works.

The part I like is that you&apos;re not stuck with one bot. You can reach any deployed agent you&apos;re permissioned for. Pin an agent to a channel, name it in your message, or pick from a list of everything you can access, and the conversation continues in that thread with its own memory. Same agent, same permissions, same sessions as the web. Just reachable from where the work already happens. (There&apos;s no slash command yet, it&apos;s mention, DM, and the picker.)

This sounds like a convenience feature. It&apos;s actually an adoption feature. An agent nobody can reach without opening another tab is an agent that gets used twice and abandoned. Meeting people in Slack is how an internal agent stops being a demo and starts being a habit.

## Capability you build once, not once per agent

Here&apos;s the part the &quot;type a sentence, get an agent&quot; pitch hides: the valuable agents lean on capability you don&apos;t want to rebuild every time. AgentHive treats that capability as shared inventory.

Skills are a first-class thing, not a prompt trick. A skill is a versioned bundle you attach to agents, up to twenty each, with draft and published versions, and a published version is frozen so nothing shifts under you. You can ask the platform to draft one from a description, then request to share it across the org, which an admin approves. Build the &quot;how we format a release note&quot; skill once, and every agent that needs it gets the same one.

Sharing a skill is one thing. Trusting one is another. A skill is just instructions and files, which means a bad one carries the same risk as a bad package: poisoned instructions, or a quiet grab for more access than it should have. So skills don&apos;t only live inside AgentHive, they&apos;re governed through the [JFrog Agent Skills Registry](https://docs.jfrog.com/artifactory/docs/skills-repositories), the same system of record JFrog keeps for MCP servers, models, and other agent assets. A skill gets scanned and signed when it&apos;s published and pulled only if it passed, so you can finally answer the questions that usually don&apos;t have one: who wrote this, what version is it, and did anything flag it as malicious. Because the registry is vendor-neutral, that record doesn&apos;t vanish the day you swap coding agents, the way it would if your skills lived in one tool&apos;s marketplace.

Tools work the same way, and the tool builder is genuinely no-code. Describe what the tool should do, and the platform generates the Python, the input and output schema, and the dependencies, then lets you test it in a sandbox before it goes through approval. Approved tools land in a shared library instead of getting welded to a single agent. That&apos;s on top of built-in tools and MCP servers you connect with your own OAuth.

Knowledge is close to one step. Point an agent at a Google Drive folder, or drag in files, and the platform builds a real Vertex AI RAG corpus and keeps it synced daily or weekly. One corpus attaches to many agents, and answers come back with source citations that resolve to the actual document. Nobody&apos;s writing a chunking pipeline.

Automations close the loop. Put an agent on a schedule or a polling interval, dry-run it first so you&apos;re not testing in production, and watch its run history. Then publish it: other people can discover it, subscribe with their own schedule, or clone it into their own. Capability someone built once becomes something the whole org can pick up.

{/* IMAGE: copy agent-hive/screenshots/automations-flow.png → public/blogs/agenthive-automations.webp, then ![AgentHive automations with a generated flow view](/blogs/agenthive-automations.webp) */}

## Agents that talk to other agents

The last piece is interop, and it&apos;s where this stops being a builder and starts being a hive. Two flavors, and they&apos;re different on purpose.

Inside the platform, every agent can see and delegate to its peers. Each one gets a way to list the other agents it&apos;s allowed to use and hand a task to one of them, with a depth cap so a chain of delegations can&apos;t recurse into the weekend. That&apos;s how you avoid the one-giant-agent trap: a generalist routes to a specialist instead of trying to be it.

Across the wire, AgentHive speaks [A2A](https://a2a-protocol.org/), the open agent-to-agent protocol. Every agent publishes an agent card at a well-known URL that lists its skills and how to call it, secured with a bearer key. Your agent can call a remote A2A agent (paste its card URL in the builder), and outside systems can call yours. It&apos;s synchronous and single-shot today, no cross-org multi-turn approvals yet, so I&apos;m not going to oversell it. But the bones are there, and they&apos;re the open-standard ones, not a private protocol I&apos;d have to apologize for later.

## The part no demo shows: the approval gate

Now the unglamorous center of the whole thing. Everything above, the catalog, Slack, shared skills, delegation, is only safe to hand to non-developers because nothing reaches production by accident. Every agent moves through real states: Draft, Pending Review, Approved, Deploying, Deployed, Disabled. You can&apos;t skip a step. An agent reaches production because it cleared a gate, not because someone clicked deploy. Building a state machine for sign-offs is nobody&apos;s idea of exciting AI work, which is probably why it&apos;s the first thing teams skip.

The gate is a dual-team review. The AI team checks the purpose, the model, and the tool configuration. The Security team checks tool permissions and what data the thing can reach. Both have to approve. A rejection comes back with feedback and the agent drops to Draft to be fixed. Around it sits the rest of the boring surface area that makes the fun stuff survivable: an audit log of every action, and identity wired into Okta with SCIM so accounts provision and deprovision themselves. That last one matters more than it sounds, a Cloud Security Alliance survey found only 23% of organizations have a formal strategy for agent identity ([Strata](https://www.strata.io/blog/agentic-identity/the-ai-agent-identity-crisis-new-research-reveals-a-governance-gap/), 2026). Most are improvising.

There&apos;s a subtler way to get this wrong, and Gartner just named it. It expects a large share of enterprises to demote or decommission their autonomous agents by 2027, after governance gaps surface in production incidents, and it pins the blame on uniform governance: the reflex to gate every agent the same way, which throttles the harmless ones and under-watches the dangerous ones ([Gartner](https://www.gartner.com/en/newsroom/press-releases/2026-05-26-gartner-says-applying-uniform-governance-across-ai-agents-will-lead-to-enterprise-ai-agent-failure), 2026). That trap is exactly what the gate is shaped to dodge. Every agent goes through the same lifecycle, but the weight of the review scales with what the agent can actually do. An agent that only reads a knowledge base gives Security very little to weigh. The moment it picks up tools, the review becomes the trust boundary Gartner is talking about: which tools, what permissions, what data it can reach. And an agent that runs on its own, on a schedule or a poll, gets the heavier treatment: a dry-run before it touches anything real, a run history you can watch, and a delegation cap so an autonomous chain can&apos;t wander off. Same gate, different weight, set by how far the agent can go without a human in the loop.

Underneath all of that is the framing that finally made it click, from McKinsey&apos;s read on what the mature teams do differently: they treat governance as a product, not a process. Instead of a policy doc and a quarterly review, they build the controls into the platform itself, the way a sane org built security into its DevSecOps pipeline instead of bolting it on at the end. That&apos;s not an accident at JFrog, where &quot;shift it left and make it part of the pipeline&quot; is the water you swim in. The approval queue is a pipeline stage, not a meeting.

I made a version of this argument about [Claude Code hooks](/blog/claude-code-hooks-the-half-nobody-uses/): guardrails belong somewhere deterministic, because a block has to actually block, not politely suggest. Same instinct here. A policy that says &quot;get security to review your agent&quot; is a request people route around when they&apos;re busy. A lifecycle that refuses to deploy an unapproved agent is not.

This is also why I won&apos;t throw adoption numbers at you. I could tell you how many agents are live or how fast something gets approved, and you&apos;d have no way to check it, which makes it worth roughly nothing in a post like this. The honest claim is narrower: the governance layer is the part that was hard to build and the part I&apos;d defend. The wizard was a couple of good weekends.

## Why we built it instead of buying one

The question I get most is why we built this at all. The products exist. So why not buy?

Because the builder was the commodity, and it&apos;s the only part you can cleanly buy. Gartner just ran its first quadrant for no-code agent builders, Microsoft, Google and AWS out front (Gartner, 2026). Google&apos;s Gemini Enterprise or Salesforce&apos;s Agentforce will spin one up faster than the wizard I described. But the moment you ask for the rest of the platform, the catalog and its permissions, the Slack door, shared skills and tools, the RAG sync, the approval gate, you stop buying a product and start buying a vendor&apos;s gravity. Gemini Enterprise assumes you&apos;re standing in Google&apos;s stack. Agentforce assumes Salesforce.

Governance is where it got personal. The closest thing to what I wanted is AWS, which added an Agent Registry to AgentCore that genuinely reaches across vendors, cataloging agents, tools, and skills behind an approval workflow ([AWS](https://aws.amazon.com/about-aws/whats-new/2026/04/aws-agent-registry-in-agentcore-preview/), 2026). Right idea, real product. It&apos;s also a developer&apos;s tool, reached through an API, a CLI, an IAM policy. That&apos;s a fine fit when the people building your agents are engineers. Ours aren&apos;t. The whole premise of AgentHive is the colleague who has never written a line of Python, and you can&apos;t hand that person a registry they drive from a terminal and call it self-service. The neutral governance exists. It just sits behind a keyboard the people building these agents don&apos;t touch.

And even past the audience problem, that registry still lives in one vendor&apos;s cloud, which is the real disqualifier for a company like JFrog, whose whole job is being the vendor-neutral place your assets stay no matter whose tools you rotate through. We run AgentHive on Google&apos;s Vertex AI and still didn&apos;t buy Google&apos;s agent platform: we wanted the runtime, not the system of record. Buying that from a single agent vendor would undercut the thing we sell. So the math was lopsided: the easy part was buyable, the hard part buyable only in pieces, and the piece I cared about most, governance that survives a vendor swap, wasn&apos;t for sale in a form I could use.

I&apos;m not going to tell you to build. If you live inside one ecosystem, buy into it, just make sure it actually does in production what the keynote promised (I&apos;m looking at you, Gemini Enterprise). But agents are about to be everywhere, and only 21% of companies have a mature way to govern them yet ([Deloitte](https://www.deloitte.com/us/en/about/press-room/state-of-ai-report-2026.html), 2026), so whoever&apos;s control plane all those agents end up living in is a decision you make once and regret slowly. Build when neutrality is the point, not a preference. For us it was the point.

## What I&apos;d tell you before you build one

If you&apos;re about to build an internal agent platform, here&apos;s the part I wish someone had told me. The builder will take a fraction of the time you budget for it. Codegen plus a model picker plus a deploy call is a known quantity. The calendar goes to the surface nobody screenshots: the catalog and its permission model, the Slack front door, the shared skills and tools, the RAG sync, the approval lifecycle, the audit trail, identity. That&apos;s where the work is, and it&apos;s where the platform earns the right to exist inside a real company.

And stay honest about what&apos;s still rough. A2A is synchronous-only for now. Observability is opt-in rather than always-on. The Slack status niceties need the right Slack plan or they quietly degrade. None of that is a crisis, it&apos;s just the gap between a thing that demos and a thing you&apos;d stake a production incident review on. Pretending the gap is closed is how a promising agent platform turns into a postmortem.

## Frequently asked questions

### What is AgentHive?

A self-service platform built at JFrog that lets non-developers create, govern, and deploy production AI agents without code. It generates Google ADK Python, deploys to Vertex AI Agent Engine, and wraps every agent in a catalog, a permission model, Slack access, shared skills and tools, and a dual-team approval gate.

### Isn&apos;t the no-code builder the hard part?

No, and that&apos;s the whole argument. Generating an agent is mostly solved by codegen and a good model. The hard, slow work is everything around it: discovery, permissions, reuse, interop, and governance.

### Why build AgentHive instead of buying an off-the-shelf platform?

Because no vendor bundles the whole shape: a no-code builder plus a catalog, permissions, Slack access, shared skills and tools, RAG, and a dual-team approval gate. The closest cross-vendor governance, AWS&apos;s Agent Registry, is built for developers, not the non-coders AgentHive is for. And buying governance from one agent vendor would undercut the neutral system of record JFrog exists to be.

### Can people across the org use agents other people built?

Yes, if they&apos;re permitted. Agents are shared through an access model (grant to a user, a group, or everyone, as viewer or editor), and a shared agent can be opened and chatted with from the web catalog or from Slack. Restricted agents are invisible, so visibility you control is the point.

### How do you reach an agent from Slack?

Mention the AgentHive app in a channel or send it a DM, and your message routes to a hive agent and gets answered in the thread, with live status while it works. You can reach any deployed agent you have access to, by pinning it to a channel, naming it, or picking from a list. There&apos;s no slash command yet.

### What&apos;s the stack?

React and TypeScript on the front end, FastAPI and PostgreSQL on the back, Google ADK with Vertex AI Agent Engine and RAG Engine for the runtime, Claude and Gemini as the models, MCP for tools, A2A for agent-to-agent, and Okta with SCIM for identity. Observability runs through Langfuse when it&apos;s on.

## Where I landed

I came into this thinking the clever part would be the code generation, the bit that turns a sentence into a running agent. That part was fun, and it was fast. The part I&apos;m actually proud of is the stuff with no screenshot value: the catalog that kills silos, the Slack door that gets agents used, the shared skills, and the approval queue that nobody wants to build.

If you&apos;re evaluating or building one of these, watch where the demo spends its time, then ask the questions it skips. Where do these agents live? Who can reach them? What did they build once and reuse? And who signed off before this touched production? If the answers are a shrug, you&apos;ve been shown the easy part.</content:encoded></item><item><title>Boost compressed 212M tokens from my agent sessions</title><link>https://liranbaba.dev/blog/boost-faster-agents-faster-ci/</link><guid isPermaLink="true">https://liranbaba.dev/blog/boost-faster-agents-faster-ci/</guid><description>Boost wraps every CLI my agents touch. Across 964 sessions it compressed 212M tokens (63.4%) and saved $1,060. The three pillars and what they actually do.</description><pubDate>Wed, 20 May 2026 00:00:00 GMT</pubDate><content:encoded>![](/blogs/boost.webp)

I ran `boost report` this morning, mostly to see whether the thing was actually pulling its weight or whether I&apos;d been carrying it around like a productivity tracker that quietly tells you what you want to hear. Here&apos;s what came back, unedited:

```text
~ boost report
Boost Report
Not in a git repository; showing data from all projects using Boost.

Boost compressed 212.0M tokens (63.4%) before they hit your context window.
I saved my team $1,060 across 964 conversations.
Estimated at $5.00 per 1M tokens.

Conversation Breakdown
30-minute inactivity split · top 5 by savings
┌────────┬───────────────────────────────┬──────────┬──────────────┬────────┐
│ CONVO  │ TITLE                         │ COMMANDS │ TOKENS SAVED │ EST. $ │
├────────┼───────────────────────────────┼──────────┼──────────────┼────────┤
│ #1     │ Agent Builder wizard step...  │ 85       │ 580.4K       │ $3     │
│ #2     │ Tool Builder Python codeg...  │ 67       │ 491.6K       │ $2     │
│ #3     │ Vertex AI Engine deploym...   │ 31       │ 308.8K       │ $2     │
│ #4     │ MCP server integration t...   │ 52       │ 274.0K       │ $1     │
│ #5     │ Langfuse traces for agen...   │ 18       │ 197.2K       │ $1     │
└────────┴───────────────────────────────┴──────────┴──────────────┴────────┘
```

212 million tokens is not a small number. Most of it was log noise, dependency-resolver chatter, ANSI color codes, and the kind of verbose progress output every CLI writes assuming a human is staring at the terminal. The agent doesn&apos;t need any of it. Boost strips it out before it reaches the context window, which is why the percentage is what it is.

That&apos;s one developer. Twelve of us on the JFrog CIO team have been running boost since we rolled it out, and the combined estimated savings sits around $9K (same $5/M assumption).

&gt; **Here&apos;s the Thing**
&gt; - Boost wraps every command your coding agent runs (and every command you run in CI), then compresses the output before the agent or pipeline sees it. My personal report: 212M tokens compressed (63.4%), $1,060 saved, 964 sessions.
&gt; - One Go binary, three surfaces: terminal, agent hooks, CI. Same compressor, same cache, same OTel exporter everywhere.
&gt; - It&apos;s free. Single install line, no signup. I work at JFrog and the FastCI team builds it, so take the cheerleading with the appropriate grain.

## What boost actually is, the short version

Boost is a CLI wrapper. You prefix a command with `boost` (or let it auto-wrap via hooks), it executes the command for you, captures the output, compresses it, caches the result when it&apos;s safe to, and emits an OpenTelemetry span describing what happened. That&apos;s the whole shape. The thing it&apos;s optimizing for is the gap between &quot;what a CLI prints for a human&quot; and &quot;what an LLM agent or a CI log actually needs to understand the result.&quot; That gap is enormous, and almost nobody measures it. Disclosure I should put up front: JFrog is my employer, and the team that builds boost (FastCI) sits two rooms from mine. I am not a neutral reviewer. I am, however, the guy whose own report shows 212M tokens compressed, so I&apos;m at least an honest user.

## What the 63.4% number actually compresses

Here&apos;s the example I keep showing people who ask what compression looks like in practice. Raw `npm ci` on a moderately sized project (about 1,300 packages) emits roughly 9,800 tokens of output: a per-package install line, deprecation notices, peer-dependency warnings repeated three times each, progress bars rendered as horizontal lines of equals signs, a funding pitch, and a vulnerability summary at the end. The agent reads every line, decides nothing useful from 9,400 of them, and you pay for all of it on the next turn when the transcript replays into context.

Boost replaces all of that with one line that looks something like this:

```
[OK] npm ci · 1,285 packages restored from boost cache in 2.4s · 0 vulnerabilities
```

That&apos;s about 640 tokens after counting framing and the agent&apos;s own attention to it. ~15× compression on a command the agent runs dozens of times a session. The compressor is tool-aware: it knows what `npm ci` output looks like, what&apos;s load-bearing, and what&apos;s decorative. There are similar handlers for `pytest`, `docker build`, `gh run view`, `go build`, `terraform plan`, and roughly a hundred other tools at this point.

Took me a few weeks to clock the second-order effect. Tokens are the obvious cost. The less obvious one is that the agent&apos;s attention gets pulled toward whatever happens to be sitting in the noise. Reading 9,800 lines of mostly-identical install output gives a model more places to anchor on something irrelevant, and that shows up later in multi-step plans falling apart for reasons that don&apos;t trace back to anything obvious. Strip the noise and the agent&apos;s choices visibly tighten. I don&apos;t have a benchmark for &quot;tightness&quot; but I can feel it in the failure rate.

The full README documents the before/after for several tools at [github.com/jfrog/boost](https://github.com/jfrog/boost). The pattern is the same: keep the result, the duration, the count, the errors. Drop everything else.

## How CI runs in seconds now, on the same binary

Pillar two is the cache. Boost computes a content-addressed key for each wrapped command based on the input files, lockfile, and relevant environment, then stores the side effects (extracted `node_modules`, compiled artifacts, downloaded layers) keyed on that hash. The next time anything in your fleet runs the same command with the same inputs, the cache restores instead of recomputing.

The honest before/after on the `npm ci` from earlier: cold install on a fresh runner was about 45 seconds. Second run, same lockfile, restored in 2.4 seconds. The cache lives wherever you configure it, locally by default, or in a managed backend if you&apos;re on a paid plan (this is the only place the free/paid line shows up in normal use).

Took me a minute to internalize this: it&apos;s the same binary. The same `boost` that wraps my terminal commands and gets auto-invoked by Claude Code hooks is what runs in CI. One implementation. No drift between your laptop and the pipeline because they&apos;re literally running the same code. The wiring in GitHub Actions is a single step:

```yaml
- uses: jfrog/boost@v0

- name: Install dependencies
  run: boost npm ci

- name: Test
  run: boost npm test
```

That&apos;s it. The action installs the binary, every subsequent `boost &lt;command&gt;` step participates in the same cache and emits the same telemetry. Pinning to `v0` follows the rolling-major convention; pin to a specific semver (e.g., `v0.6.0`) if your supply-chain policy requires it.

GitLab, Jenkins, CircleCI, and Azure Pipelines are listed as coming soon in the README. Today, GitHub Actions is the integration that&apos;s actually shipped.

## OpenTelemetry traces for every wrapped command

Pillar three is the part I find most underrated, because once it&apos;s wired up you stop guessing what your agent is doing.

Every command boost wraps emits an OTLP span. The span carries the command name, duration, exit code, cache hit/miss, the working directory, and a handful of other attributes you&apos;d actually want when debugging &quot;why was that session slow&quot; or &quot;which step in CI is the long pole this week.&quot; Set two environment variables and the spans go wherever you want:

```bash
export BOOST_OTEL_ENDPOINT=&quot;https://otlp.&lt;your-collector&gt;.com&quot;
export BOOST_OTEL_TOKEN=&quot;&lt;token&gt;&quot;
```

Or, if you prefer config files, the same goes in a `[tracing]` block in `~/.boost/config.toml`. Any OTLP-compatible backend works: Datadog, Grafana, Honeycomb, New Relic, or a self-hosted OpenTelemetry collector. The wire format is standard OTLP, so this is not a &quot;supports the three vendors that paid for an integration&quot; situation, it&apos;s just OTel.

A thing I want to flag, because it&apos;s the part I&apos;d want flagged if I were installing this on a work machine: boost ships a three-layer secret-redaction pipeline (env-var scan, Gitleaks regex pass, runtime-registered patterns), and it runs the redactor before anything is written to disk, surfaced to the agent, or pushed to your OTel collector. The mechanism is documented in the repo&apos;s [SECURITY.md](https://github.com/jfrog/boost/blob/main/SECURITY.md). I read it the day I installed boost because the last time I trusted a &quot;totally safe&quot; telemetry pipeline I ended up [finding a database password sitting in a Claude Code session file](/blog/found-database-password-in-claude-code-session/). The redaction layer here looks deliberate. It fails closed at the export boundary, which is the right default.

What I get out of having spans on every command: the `boost report` numbers up top are computed from this telemetry, but I can also query it directly. &quot;Which test command was slowest in the last week&quot; becomes a Honeycomb query, not a guess. &quot;Did the cache hit rate drop after the last lockfile change&quot; becomes a graph in Grafana. None of that exists when your CI logs are just a 50KB text file in S3.

## Why this stopped feeling like a CLI

What flipped boost from &quot;a thing I run sometimes&quot; into &quot;a thing I forget I&apos;m running&quot; was the agent hook integration. You run `boost init`, it scans your machine for installed editors and agents (Cursor, Claude Code, Codex CLI, Gemini CLI, Windsurf, Cline, OpenCode), and it wires hooks into each one so every command your agent runs is silently wrapped.

You don&apos;t change your prompts. You don&apos;t add `boost` to anything. The agent calls `npm ci`, the hook intercepts, boost runs underneath, the agent receives the compressed output. That&apos;s the whole experience.

This is the part where the [hook conversation I had a while back](/blog/claude-code-hooks-the-half-nobody-uses/) becomes relevant. Most hooks people write are guardrails (block a write, scrub a credential, refuse a session-end). Boost uses hooks as a transparent execution layer. Same primitive, different vector. It&apos;s the most useful demonstration I&apos;ve seen of why the hooks surface is undervalued: an entire product fits inside it, and your agent never knows the difference.

Re-run `boost init` whenever you add a new editor or CI provider. The hook registration is idempotent and merges into existing settings without clobbering what you&apos;d already configured, which I confirmed by reading the diff on my own `~/.claude/settings.json` after running it. I&apos;d been bitten before by installers that obliterated my hand-tuned settings (the [Ghostty tab-title rabbit hole](/blog/ghostty-tab-titles-claude-code/) started with one of those), so I check now.

## What I&apos;d flag before you install it

A few honest caveats, because this isn&apos;t a pitch.

**The $1,060 number assumes $5 per 1M tokens.** Your actual cost depends on which model you&apos;re paying for. If you&apos;re on Haiku at $1.25/M output, divide. If you&apos;re burning Opus at $25/M, multiply. The 212M-tokens-compressed number is the load-bearing one; the dollar figure is just an arithmetic layer on top.

**The cache is local by default.** That&apos;s a feature, not a footgun, but it means the cache hit rate on a fresh CI runner is zero until you wire up the managed cache (paid) or roll your own shared backend. Local-only is the right default for security; it&apos;s the wrong default if you expected zero-config &quot;fast CI from minute one.&quot;

**Wrapping happens in your shell.** Boost runs as your user, with your permissions. If you don&apos;t trust the binary, don&apos;t run it. If you do, the redaction and local-first telemetry posture are the parts I&apos;d point at.

None of those are dealbreakers for me. Most of them are the kind of thing I&apos;d want to know on day one, not the kind I&apos;d find out on day thirty.

## Frequently asked questions

### What does boost actually do to my command output?

It captures stdout and stderr, runs a tool-aware compressor that strips noise (progress bars, repeated warnings, ANSI codes, per-item logs) while keeping the load-bearing information (result, duration, error messages, counts), and returns the compressed output to the caller. On `npm ci` the ratio is about 15× (9,800 tokens to ~640). Across my real usage it&apos;s 63.4% reduction on average.

### Is boost free?

Yes. The CLI is free with no signup, the GitHub Action is free, and the local cache and OTel export are free. There&apos;s a managed cache acceleration tier on a paid plan if you want shared cache across a fleet; everything else works out of the box at zero cost.

### Where does my data go?

Locally by default. Token-savings stats, command history, and OTel spans land in `~/.boost/` (or `.boost/` inside CI runners). Nothing leaves your machine unless you set `BOOST_OTEL_ENDPOINT` to push spans to a collector, and even then the three-layer secret-redaction pipeline runs before export. The mechanism is in the [SECURITY.md doc on GitHub](https://github.com/jfrog/boost/blob/main/SECURITY.md).

### Does it work with Cursor and Claude Code, or just one?

Both. `boost init` auto-detects installed editors and agents (Cursor, Claude Code, Codex CLI, Gemini CLI, Windsurf, Cline, OpenCode) and wires hooks into each one it finds. Same binary, same compression, same telemetry across all of them. Re-run `boost init` after installing a new editor.

### What happens if the cache is wrong?

The cache key is content-addressed (input files, lockfile, relevant environment), so &quot;wrong&quot; usually means &quot;you changed an input boost didn&apos;t realize was load-bearing.&quot; You can bypass the cache for any individual command with the appropriate flag, or `boost cache clear` to nuke it entirely and rebuild. I&apos;ve hit one stale-cache moment in three months of daily use and it took about ten seconds to clear.

## Where I landed

The 212M-tokens-compressed number is real, the $1,060 savings is real (with the $5/M caveat), and the 63.4% rate is what I get on a working agent setup that mixes CI runs, agent sessions, and ad-hoc terminal use. None of those numbers required any tuning on my end. I ran `boost init` once, let the hooks wire themselves, and went back to work.

Install line, for the curious:

```bash
curl -sSfL https://boost.jfrog.com/install.sh | bash
```

After that, `boost init` in your project root, and the next agent session is the one where you start seeing the difference. Docs and the rest of the surface area live at [boost.jfrog.com](https://boost.jfrog.com/) and the repo is at [github.com/jfrog/boost](https://github.com/jfrog/boost).

If you&apos;ve been writing your own hooks to scrub agent context (the [post on hooks](/blog/claude-code-hooks-the-half-nobody-uses/) covers the lay of that land), boost is the version of that idea taken to its logical end: don&apos;t scrub after the fact, compress at the boundary, and emit the telemetry while you&apos;re there. The thing that surprised me, after running it for a while, is how much of &quot;agent reliability&quot; is just signal-to-noise.</content:encoded></item><item><title>Ghostty tab titles for Claude Code: the 30-line zsh fix</title><link>https://liranbaba.dev/blog/ghostty-tab-titles-claude-code/</link><guid isPermaLink="true">https://liranbaba.dev/blog/ghostty-tab-titles-claude-code/</guid><description>Every Ghostty tab said &apos;Claude Code&apos;. Two configs and a 30-line zsh hook turned the tab bar back into useful navigation across 4-pane workflows.</description><pubDate>Thu, 07 May 2026 00:00:00 GMT</pubDate><content:encoded>![](/blogs/ghostty-tab-titles-claude-code.webp)

I had four Ghostty tabs open the other morning. Three projects, four tabs, each tab split into two or three panes. Every single tab in the tab bar said `Claude Code`. I cmd-tabbed three times trying to find the one running tests for `claudoscope`. By the time I scrolled the panes inside each tab to read a path or a prompt, I&apos;d forgotten what I was looking for in the first place.

That&apos;s a regression. Tab titles used to mean something. Then everyone started running an AI coding agent in every other pane, and the tab bar quietly turned into visual noise.

&gt; **Here&apos;s the Thing**
&gt; Two layers fight for the tab title every time you open a Ghostty tab. Ghostty&apos;s shell integration sets it to the running process name (`zsh`, `claude`, `node`), and Claude Code emits its own OSC 2 escape sequence to overwrite the title with `Claude Code`. Turn both off, then drive the title from a 30-line zsh hook that shows the git repo name by default and adds a 👾 marker the moment you launch `claude`. Repo name when idle, agent when working, no manual reset.

## Why every tab says &apos;Claude Code&apos;

Two layers of misbehavior, both on by default.

Layer 1 is Ghostty. Its shell integration sets the title to whatever process is currently in the foreground. At a prompt, the tab says `zsh`. Run `claude`, the tab says `claude`. Run `node`, it says `node`. Fine for a single pane. With four panes per tab, every tab settles on whatever its focused pane is running, which is almost never what you&apos;re looking for.

Layer 2 is Claude Code. The agent emits its own OSC 2 escape sequence on startup and during the session, overwriting the title with the literal string `Claude Code`. Even if you&apos;d disabled Ghostty&apos;s integration, Claude would still clobber whatever title you had. Several open Claude Code GitHub issues asked for a way to turn this off, and an env var eventually shipped to do it. It just isn&apos;t advertised anywhere prominent.

Stack the two and you get what&apos;s in your tab bar right now. Ghostty steps on your title, then Claude steps on Ghostty&apos;s. By the time anything reaches the tab bar, all signal is gone.

| Layer | Sets title to | Wins when |
|---|---|---|
| Ghostty shell integration | Foreground process (`zsh`, `claude`, `node`) | Always, unless disabled |
| Claude Code OSC 2 emitter | `Claude Code` | While `claude` is running |
| Your zsh hooks | Whatever you want | When the other two are off |

## What I wanted

Five things, written as a checklist so I&apos;d know when I was done:

1. Tab shows the **git repo name** by default. If I&apos;m not in a repo, the directory basename.
2. Tab updates when I `cd` into a different repo. No manual command.
3. When I launch `claude` in a pane, the tab gets a **visible marker** so I can see at a glance which panes have a session running.
4. When `claude` exits, the tab reverts to the repo name automatically.
5. Works for my `clauded` alias too, the one that adds `--dangerously-skip-permissions` because I trust myself in a worktree (don&apos;t @ me).

## The fix, in three parts

### Part 1: Tell Ghostty to back off

`~/.config/ghostty/config`:

```
shell-integration-features = no-title
```

One macOS gotcha worth flagging. Ghostty might have generated a config at `~/Library/Application Support/com.mitchellh.ghostty/config` instead of the XDG path. The XDG path wins if both exist, but cmd+, in the GUI opens whichever Ghostty thinks is canonical. Easiest fix: keep the file in `~/.config/ghostty/config` so it lives in your dotfiles repo, and symlink the Application Support path to it.

### Part 2: Tell Claude Code to back off

`~/.claude/settings.json`:

```json
{
  &quot;env&quot;: {
    &quot;CLAUDE_CODE_DISABLE_TERMINAL_TITLE&quot;: &quot;1&quot;
  }
}
```

That env var stops Claude from emitting OSC 2 sequences for the rest of the session. It shipped in response to one of those open issues. Nothing in Claude&apos;s startup banner mentions it exists, which is most of why nobody uses it.

### Part 3: Drive the title from zsh

`~/.zshrc`:

```bash
# --- Ghostty tab title ---
autoload -U add-zsh-hook

function _ghostty_context() {
  local ctx
  ctx=$(git rev-parse --show-toplevel 2&gt;/dev/null) &amp;&amp; echo &quot;${ctx:t}&quot; || echo &quot;${PWD:t}&quot;
}

function _ghostty_set_title() {
  printf &apos;\033]2;%s\007&apos; &quot;$(_ghostty_context)&quot;
}

function _ghostty_set_title_for_cmd() {
  local cmd=&quot;$1&quot;
  local ctx=&quot;$(_ghostty_context)&quot;
  case &quot;$cmd&quot; in
    claude|claude\ *|clauded|clauded\ *)
      printf &apos;\033]2;👾 %s\007&apos; &quot;$ctx&quot;
      ;;
  esac
}

add-zsh-hook chpwd   _ghostty_set_title
add-zsh-hook precmd  _ghostty_set_title
add-zsh-hook preexec _ghostty_set_title_for_cmd
# --- end ---
```

`_ghostty_context` returns the git repo name if you&apos;re in one, falling back to the directory basename. `_ghostty_set_title` emits an OSC 2 escape with that name. `_ghostty_set_title_for_cmd` checks the command line you just hit enter on, and if it matches a `claude` invocation, prefixes the repo name with a 👾. Three hooks, one per zsh lifecycle event.

## How it works

The hooks each fire at a different moment in zsh&apos;s prompt loop.

| Hook | Fires when | What this gives you |
|---|---|---|
| `chpwd` | Every directory change | Tab updates the moment you `cd` into a different repo, no command needed |
| `precmd` | Before every prompt redraw | Safety net: when `claude` exits and a new prompt is about to draw, the title resets to the repo name |
| `preexec` | After enter, before the command runs | Intercepts the moment you launch `claude` and writes the marker title before zsh hands off to the child process |

The reason it feels automatic is that the hooks line up with the three things you actually do. `cd` into a repo and `chpwd` paints the repo name. Launch `claude` and `preexec` swaps in `👾 reponame`. When the session ends, `precmd` runs before the next prompt draws and the repo name comes back. You never type anything to manage any of it.

One thing worth knowing: zsh&apos;s `preexec` sees the command line **after** alias expansion. If `clauded` is a plain alias for `claude --dangerously-skip-permissions`, the existing `claude *` pattern in the case statement already catches it. If you&apos;ve defined `clauded` as a function or a script, alias expansion doesn&apos;t apply and you need the explicit `clauded*` pattern, which is why I included both. `type clauded` tells you which case you&apos;re in.

## Edge cases

A few honest limitations.

**Surfaces, not tabs.** Ghostty&apos;s OSC 2 sets the *surface* (split) title, and the tab label follows whichever split has focus. So if a tab has three splits and only one is running `claude`, the 👾 only shows when that split is focused. Worth flagging because no zsh hook can fix it. Ghostty discussion [#7581](https://github.com/ghostty-org/ghostty/discussions/7581) tracks the request for persistent tab-level titles.

**Other AI tools.** The `case` statement is one line away from covering everything else:

```bash
case &quot;$cmd&quot; in
  claude|claude\ *|clauded|clauded\ *) printf &apos;\033]2;👾 %s\007&apos; &quot;$ctx&quot; ;;
  gemini|gemini\ *)                    printf &apos;\033]2;✨ %s\007&apos; &quot;$ctx&quot; ;;
  cursor-agent|cursor-agent\ *)        printf &apos;\033]2;🖱️ %s\007&apos; &quot;$ctx&quot; ;;
esac
```

**Suspend and resume.** `Ctrl-Z` triggers `precmd`, so the title goes back to the repo name even though the agent is still alive in the background. `fg` doesn&apos;t match the `claude` pattern, so the title stays as the repo name through the resumed session. Acceptable to me, but worth knowing.

## What I&apos;d build next

Two things that would make this better, both blocked on Ghostty.

The first is **tab color via OSC sequences**. iTerm2 has supported `OSC 6 ; 1 ; bg ; ...` for years. Ghostty doesn&apos;t yet (open issue [#12235](https://github.com/ghostty-org/ghostty/issues/12235)). The day it lands, the same `case` statement could drive tab color too: red for `claude --dangerously-skip-permissions`, blue for read-only mode. That&apos;s a useful safety signal you can read at a glance, faster than reading text.

The second is the persistent tab-level title mentioned above. With that, a tab could stand for a *project* even when its splits are running mixed-purpose commands. Right now you can pick &quot;repo name&quot; or &quot;agent marker,&quot; but only one at a time per surface. That&apos;s the limitation a lot of multi-pane workflows are bumping into.

## Closing

Three configs. About 30 lines of zsh. Maybe 20 minutes to write. The friction it removes shows up dozens of times a day, and it&apos;s the kind of saved-time you don&apos;t notice until you sit down at a machine that doesn&apos;t have it. Broken signals in a tool you stare at for eight hours a day add up. They just don&apos;t show up on any dashboard.

If you&apos;ve got a different cut of this (better hook patterns, support for more AI agents, tab color tricks), I&apos;d take a look. The snippet&apos;s in [a gist](https://gist.github.com/cordwainersmith/5a3dab2fef1680378117a81b90ece124) if you want to copy it without retyping.

If you&apos;re interested in the broader Claude Code surface area I keep finding things in, the [hooks post](/blog/claude-code-hooks-the-half-nobody-uses/) is the obvious next read. The visibility problem with Claude Code sessions is what got me building [Claudoscope](/blog/found-database-password-in-claude-code-session/) in the first place. Broken tab titles are a tiny version of the same theme.</content:encoded></item><item><title>Claude Code hooks reference: every event and 10 real hooks</title><link>https://liranbaba.dev/blog/claude-code-hooks-the-half-nobody-uses/</link><guid isPermaLink="true">https://liranbaba.dev/blog/claude-code-hooks-the-half-nobody-uses/</guid><description>Every Claude Code hook event, from PreToolUse and PostToolUse to Stop and SubagentStop, plus exit codes, 10 real hooks, and the enterprise patterns nobody writes.</description><pubDate>Thu, 16 Apr 2026 00:00:00 GMT</pubDate><content:encoded>import { HookTokenChart } from &apos;../../components/react/AnimatedCharts&apos;;

![](/blogs/claude-code-hook-enforcement.webp)

I was halfway through writing this post when I decided to fact-check myself. Opened `~/.claude/settings.json`, expecting three or four hooks I&apos;d forgotten about. There was one. A `Stop` hook that plays a ding and says &quot;your turn&quot; when Claude finishes thinking. My hooks-to-skills ratio: 1 to 42.

I&apos;m not picking on myself. This is the median. I checked seven of my own project configs after that: zero hooks each. Skills got the awesome-lists. Hooks got a footnote. And the silence is costing people money in tokens, missed incidents in security, and a control surface that ships in the box and never gets wired up.

&gt; **TL;DR**
&gt; - Claude Code has 25+ hook event types. The average user has configured zero or one. I checked seven of my own project configs: zero hooks. My user-level config: one Stop hook.
&gt; - Skills feel like adding capability, which is fun. Hooks feel like writing policy, which sounds like work. The work is the part that pays.
&gt; - One `PreToolUse` hook that swaps Grep for LSP cuts navigation tokens by 73-91% in the kit&apos;s own benchmarks ([nesaminua/claude-code-lsp-enforcement-kit](https://github.com/nesaminua/claude-code-lsp-enforcement-kit), MIT).
&gt; - The enterprise hook playbook (SOC2 audit, SIEM integration, supply-chain scanning, org-wide token budgets) does not exist publicly yet. If your platform team writes one now, you&apos;re early.

## Why skills get all the attention and hooks get none

Skills fit a familiar mental model: drop a markdown file, write a description, the agent picks it up. They feel like *adding capability*. Hooks are different. You write a script that fires at an execution boundary and returns an exit code or JSON to block, modify, or augment what happens next. They feel like *writing policy*. I saw a [reddit thread](https://reddit.com/r/AI_Agents/comments/1smmjvl/) that nailed this for me: skills change what the model can do, hooks change when it can do it.

That asymmetry shows up in adoption. Skills make Claude more capable; hooks make it more predictable. If you&apos;re a solo dev optimizing for capability, you reach for skills. If you&apos;re a team lead trying to keep five engineers from doing five different unsafe things, you reach for hooks. Most early adopters were solo, so the awesome-lists filled up with skills first.

There&apos;s also a distribution problem. A skill is a markdown file. You can paste it in a Slack message. A hook is a `settings.json` entry (or a bundled file in a plugin or skill) pointing to a shell script that touches your filesystem. Sharing it requires trust, a setup ritual, and someone willing to chmod +x a stranger&apos;s bash. That&apos;s a real barrier.

Look at the curated lists on GitHub. Hook-only repos trail the mixed lists (skills, slash commands, MCP, hooks) by a wide margin, and broader awesome-claude-code lists treat hooks as a footnote. Even the [post on how the creator of Claude Code uses it](https://reddit.com/r/PromptEngineering/comments/1slpy2a/) mentions hooks only in passing, and zero of the 26 comments noticed.

&gt; **My audit:** 42 user-level skills installed. 1 hook (the Stop notification mentioned above). Across 7 project configs: 0 hooks. The one that stings is my reddit-mcp repo, which gives Claude posting and deletion permissions on my Reddit account. Zero hooks there too. If I&apos;m typical, the median ratio is something like 40 skills to 1 hook.

My [deep dive on Claude Code&apos;s leaked source](/blog/claude-code-source-leak/) showed the harness has a `hooks/` directory with 104 files. That&apos;s a lot of internal scaffolding for something most users typically ignore, at least in our org.

## The hook event reference (Anthropic&apos;s official taxonomy)

![](/blogs/claude-code-hook-events-catalog.webp)

There are at least 25 hook events documented in [Anthropic&apos;s hooks documentation](https://code.claude.com/docs/en/hooks). Most third-party tutorials cover four. Here&apos;s the actual catalog, grouped by cadence, so you can see the full surface.

| Cadence | Events | Effect |
|---|---|---|
| Once per session | `SessionStart`, `SessionEnd` | `SessionStart` can inject context |
| Once per turn | `UserPromptSubmit`, `Stop`, `StopFailure` | `UserPromptSubmit` and `Stop` can block or modify |
| Per tool call | `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `PermissionRequest`, `PermissionDenied` | `PreToolUse` can block or modify |
| Async / lifecycle | `WorktreeCreate`, `WorktreeRemove`, `Notification`, `ConfigChange`, `InstructionsLoaded`, `CwdChanged`, `FileChanged` | Observation only |
| Agent team | `SubagentStart`, `SubagentStop`, `TeammateIdle`, `TaskCreated`, `TaskCompleted` | Observation only |
| Compaction | `PreCompact`, `PostCompact` | `PreCompact` can inject context |
| MCP | `Elicitation`, `ElicitationResult` | `Elicitation` can respond |

Configuration sits at four levels: user-wide (`~/.claude/settings.json`), project-shared (`.claude/settings.json`, commit it), project-private (`.claude/settings.local.json`, gitignored), and managed policy (org admin only, individual devs can&apos;t disable). Most public configs use the first two. Managed policy is where org-wide control lives, and almost nobody ships templates for it.

Handler types: `command`, `http`, `prompt`, `agent`. Most public examples use `command`. The `http` handler is the door to centralized policy, where one webhook enforces the same rule across every developer in the org. I haven&apos;t seen it used in any public repo yet.

Exit codes are easy to get wrong. `0` means success. `2` is a blocking error, but behavior depends on the event: `PreToolUse` blocks the tool call, `Stop` prevents session end, other events treat it as non-fatal. Any other code is non-blocking. The model can&apos;t see why a hook fired unless the hook writes to stderr; this is the most common reason hooks feel mysterious in practice.

The hook surface is wide. You can block, modify, observe, or augment almost any event in the agent&apos;s lifecycle. The shape of what&apos;s possible is &quot;almost anything.&quot; The shape of what&apos;s actually configured on most machines is &quot;nothing.&quot;

## 10 hooks people are actually running

These are the hooks I&apos;d put in front of my team. None are &quot;block writes to .env&quot; or &quot;format on save.&quot; Each one is published somewhere (a repo or a Reddit thread) and does something non-obvious. Ranked roughly from most surprising to most foundational.

**1. LSP-over-Grep enforcement.** *PreToolUse on Grep, Glob, Bash, Read.* [nesaminua/claude-code-lsp-enforcement-kit](https://github.com/nesaminua/claude-code-lsp-enforcement-kit) (MIT). Blocks Grep calls containing code symbols and forces the agent to use LSP `find_definition` and `find_references` instead. Documented per-call savings: definition lookup drops from ~6,500 to ~580 tokens. Real workweek aggregate: 320k to 85k navigation tokens, a 73% reduction. Works with cclsp/Serena, supports TypeScript and 13+ other languages. It punishes a default behavior. The agent can still grep, but the cost is paid in friction, not silently in tokens.

**2. Knowledge-graph compile of the project.** *Skill + hook combo.* [safishamsi/graphify](https://github.com/safishamsi/graphify). Karpathy-style: instead of re-reading raw files every session, compile the project into a structured wiki once, then query the wiki via skill. Hook installs the skill and registers `/graphify` as the entry point. Claimed 71.5x token reduction per query on a mixed corpus. Treats context as a build artifact, not a runtime cost.

**3. The 4-hook workflow enforcement stack.** *SessionStart + PreToolUse on Edit + Stop + PostToolUse on git commit.* From `tacit7` in the [hooks vs skills thread](https://reddit.com/r/AI_Agents/comments/1smmjvl/). SessionStart tells the agent to read the workflow skill. PreToolUse on Edit refuses if no task is registered. Stop refuses if the task isn&apos;t annotated. PostToolUse on `git commit` logs the commit to an external app. Four hooks turn a probabilistic agent into a procedurally-compliant teammate, end to end.

**4. &quot;Fail twice, stop and ask.&quot;** *PostToolUseFailure + Notification.* Another one from the same thread. If the same tool fails twice with similar errors, the hook halts the session and pings the human. The most common Claude Code failure mode is the agent looping on a bad call. This rule catches it in maybe 20 lines of code.

**5. Per-file typecheck after every edit.** *PostToolUse on Write/Edit.* From `DevMoses` in the [&quot;5 levels of Claude Code&quot;](https://reddit.com/r/ClaudeAI/comments/1s1ipep/) post. Runs `tsc --noEmit` (or equivalent) on the single file Claude just edited, instead of flooding the agent with 200+ project-wide errors. Inverts the default. The agent gets a tight feedback loop on its own work without drowning in unrelated noise.

**6. Dynamic permission control via hook-managed policy.** *PreToolUse + PermissionRequest.* Also from the same thread. Hooks flip permissions on and off at runtime based on context (project, session source, current task). Claude Code&apos;s permission model is mostly static. This hook makes it conditional, which matters for orgs with role-based access.

**7. Session-conclusion guard.** *Stop + SessionEnd.* [connerohnesorge/conclaude](https://github.com/connerohnesorge/conclaude). Refuses to end a session if there&apos;s uncommitted state, in-progress work, or unmerged checkpoints. Stops the &quot;I closed the terminal and lost work&quot; failure mode at the harness level.

**8. Filesystem offload of large tool outputs.** *PostToolUse on Read/Bash/WebFetch.* [sheeki03/Few-Word](https://github.com/sheeki03/Few-Word). When a tool returns more than N tokens, write the result to disk and return a short summary plus a path. Treats the filesystem as an extension of context. The agent can re-read the slice it actually needs instead of choking on a 50KB file.

**9. Cache-fix patches injected via hook.** *SessionStart.* [Rangizingo/cc-cache-fix](https://github.com/Rangizingo/cc-cache-fix/tree/main). Patches a documented Claude Code bug where the `db8` filter strips `deferred_tools_delta` records, breaking the prompt cache on resumed sessions. The author&apos;s analysis claims it wasted ~250,000 API calls per day globally before being noticed. The hook applies the patch at session start. Hooks as a deployment mechanism for community fixes. No need to wait for Anthropic to ship a release. (I&apos;d qualify the 250k figure as analysis-based, not independently confirmed by Anthropic.)

**10. Lessons-learned hooks (&quot;encode the mistake&quot;).** *Pattern, not a single repo.* From `Aggressive-Sweet828` in the hooks vs skills thread. Every time the agent makes a mistake you don&apos;t want repeated, turn it into a hook. Over time, your hooks become your team&apos;s quality bar, written in code instead of whispered in code review. Reframes hooks as institutional memory, not just guardrails.

Of the ten, six are now sitting in my own `settings.json`: the LSP enforcement kit (#1), the graphify knowledge-graph compile (#2), the fail-twice loop guard (#4), the filesystem offload for large outputs (#8), the cache-fix patch (#9), and the lessons-learned pattern (#10). The LSP kit and the fail-twice guard are the two I have the most to say about so far. The other four are too new for me to have a real story yet, and I&apos;ll update this section as they earn one.

LSP enforcement kit (#1): install was a `git clone` and a single `bash install.sh`. The installer is idempotent and merges into `~/.claude/settings.json` without touching what&apos;s already there. First session into the portfolio repo, the hook fired on the second tool call and refused a Grep for `BlogPostLayout`. The agent reached for `find_definition` instead and landed on the right file. The thing I didn&apos;t expect was how often I write prompts that assume Grep (&quot;find where we use X&quot;). The agent now has to translate those into LSP, which takes a beat. I&apos;m keeping it on this repo and waiting to see what the weekly token total actually does.

Fail-twice loop guard (#4): hand-rolled in about 20 lines of bash because the pattern is small enough I didn&apos;t want a dependency. It hasn&apos;t fired yet, probably because I haven&apos;t kicked off anything ambitious enough since installing it. The version I wrote compares the last two `PostToolUseFailure` events for the same tool name and a similar error substring, and pings me via the same Stop-hook ding I already had. If it ever fires, I&apos;ll update this section with what it caught.

The LSP entry is the most honest data point here. It&apos;s widely cited, and the kit ships its own reproducible benchmarks. Here&apos;s what the per-call savings look like on the operations the agent does dozens of times a day.

&lt;HookTokenChart client:only=&quot;react&quot; /&gt;

The headline 80% savings number on the [original Reddit post](https://reddit.com/r/AI_Agents/comments/1slligv/) is anecdotal. The 91% per-call and 73% workweek-aggregate numbers come from the kit&apos;s own benchmarks, which are reproducible. I&apos;d treat the kit numbers as the reliable ones and the Reddit headline as directionally right.

## Skills vs hooks: a decision table

Skills describe *what to try*. Hooks define *what must happen*. Pair them: a skill describes the workflow, a hook enforces the precondition.

| Dimension | Skills | Hooks |
|---|---|---|
| Mental model | Add capability (request) | Define policy (enforcement) |
| Distribution | Markdown file, frontmatter | `settings.json` entry pointing to script |
| Determinism | Probabilistic (model decides if/when) | Deterministic (fires every event match) |
| Token cost | Loaded on demand, ~free when inactive | Often *saves* tokens (LSP swap, output offload) |
| Observability | Model writes about using it in transcripts | Side effects + exit code; model often can&apos;t see why a hook fired |
| Best for | Reusable workflows, domain expertise | Guardrails, audit, cost control, integration |
| Failure mode | Model forgets to use it | Hook breaks the session if poorly written |
| Sharing friction | Low (a `.md` file) | Higher (script + permission + JSON) |

A concrete pair: a &quot;deploy&quot; skill describes the deployment runbook (build, test, push, monitor). A `PreToolUse` hook on the deploy command verifies the test suite passed in the last 5 minutes and you&apos;re on a release branch, and refuses otherwise. The skill teaches. The hook insists.

The insight that did the most for my own thinking: **guardrails belong in hooks because blocks need to be deterministic, not described.** A skill that says &quot;don&apos;t push to main without tests&quot; is a polite request the model can ignore. A `PreToolUse` hook that returns exit code 2 with `&quot;decision&quot;: &quot;block&quot;` cannot be ignored.

[My comparison of ForgeCode and Claude Code](/blog/forgecode-vs-claude-code/) called out hooks as one of Claude Code&apos;s real differentiators. Re-reading it now, I underweighted them. ForgeCode being faster doesn&apos;t matter if your team needs deterministic policy.

## The enterprise patterns nobody is writing about

Anthropic shipped the primitives this past quarter: `allowManagedHooksOnly`, `allowedHttpHookUrls`, `httpHookAllowedEnvVars`, plus a drop-in `managed-settings.d/` directory for stacking policy from multiple teams. What&apos;s missing is the layer above: published end-to-end SIEM, SOC2, and audit playbooks built on those primitives. I can&apos;t find a single public repo shipping an org-wide audit template I&apos;d actually deploy.

The vendors closest to filling that gap are the ones with skin in the AI-supply-chain game. (Disclosure: JFrog is my employer; not paid to link this.) [Supply Chain Attackers Are Coming for Your Agents](https://jfrog.com/blog/supply-chain-attackers-are-coming-for-your-agents/) walks the Shai-Hulud npm worm, the postmark-mcp exfiltration, and the LiteLLM compromise as cases where a `PreToolUse` hook on the install boundary would have caught the payload. [JFrog AI Catalog Evolves to Detect Shadow AI and Govern MCPs](https://jfrog.com/blog/jfrog-ai-catalog-evolves-to-detect-shadow-ai-govern-mcps/) covers the upstream gateway angle that pairs with client-side hooks. Neither is a hook playbook, but they&apos;re closer than anything else I&apos;ve found.

**Security and policy enforcement.** A `PreToolUse` hook on Write blocks anything outside approved paths (scope to `Write|Edit|MultiEdit`). A `UserPromptSubmit` hook scrubs known credentials (AWS access key prefix, GitHub PAT, JFrog tokens) before the prompt leaves the machine, returning JSON `decision: &quot;block&quot;` on a match. The session file where I found my database password (the one that started [Claudoscope](/)) was created because Claude Code read a `.env` and echoed the contents back. A `PreToolUse` hook on Read with a `.env` matcher would have refused that read. Claudoscope catches the credential after it lands in the JSONL; the hook prevents it from landing. The full story is in [how I found a database password in a session file](/blog/found-database-password-in-claude-code-session/).

**Compliance and audit.** A `PostToolUse` hook with handler type `http` sends a structured event to a SIEM (Splunk, Datadog, Elastic) on every tool call: session ID, user, tool name, sanitized input, timestamp, project. `SessionStart` and `SessionEnd` book-end the audit log. Combine with managed policy and `allowManagedHooksOnly: true` so individual devs can&apos;t disable the audit hook locally. This is the org-wide control surface the docs describe but no one&apos;s shipping templates for.

**Cost control.** Per-developer token budget: a `PreToolUse` hook logs token estimates per tool call, totals them per day in a small SQLite file, and denies expensive calls once the budget is hit. Same pattern for model routing: rewrite the model selection or refuse a dispatch if the request is trivial enough that Opus is overkill.

**DevSecOps and supply chain.** This is where my JFrog day job comes in. `PreToolUse` on Bash intercepts `npm install`, `pip install`, etc., and runs the package through a vulnerability scanner before allowing the install. `PreToolUse` on Write runs the staged change through JFrog Advanced Security and refuses the write if SAST finds an issue.

The conversation that keeps coming up on our side: whether agent-initiated package installs count as a developer action or a CI action under existing supply-chain policy. We don&apos;t have a clean answer yet. A `PreToolUse` hook that routes installs through Xray would collapse the distinction; the same policy applies wherever the install happens.

Swap in your scanner of choice. Supply-chain controls don&apos;t have to live in CI anymore. They can live at the agent&apos;s tool-call boundary, closer to where the risk is introduced.

If you&apos;re a platform team standing up Claude Code at scale, you&apos;re filling that gap yourself, which is fine but probably not what you signed up for.

## The footguns

Hooks are powerful because they run as the user. That&apos;s also the danger. Four real failure modes I&apos;ve watched people hit.

**Infinite loop.** A hook on `PostToolUse` triggers another tool call that triggers the same hook. Fix: add a sentinel (env var or marker file) and short-circuit on repeat invocation. This bites the first time you write a `PostToolUse` that does anything substantive.

**The hook breaks the session and Claude has no idea why.** From the same thread: &quot;if a hook fails the model has no idea why and can&apos;t self-correct.&quot; Mitigation: return useful text on stderr with exit code 2 so the model gets context, even when blocking. The default behavior of a silent block is the worst possible UX.

**Permission deadlock.** Also from the same thread: &quot;I&apos;ve already seen it deadlock a session when the hook permissions were set too tight.&quot; Always test with `--debug` first. Always.

**Shell startup pollution.** Anthropic&apos;s docs explicitly warn: shell profiles printing text on startup interfere with JSON parsing. A single `echo` line in your `.bashrc` will silently break every JSON-output hook on your machine. This one is hilarious until it happens to you.

## Frequently asked questions

### What is a Claude Code hook?

A user-defined command, HTTP endpoint, prompt, or agent invocation that fires at a specific lifecycle point: a tool call, session start, prompt submission, and 20+ other events. Defined in `settings.json` or bundled with a plugin or skill. Returns control via exit codes and structured JSON. Hooks can block tool calls, modify their input, inject context, or just observe. ([Anthropic docs](https://code.claude.com/docs/en/hooks), 2026)

### What&apos;s the difference between Claude Code hooks and skills?

Skills are markdown workflows the model decides whether to use. Hooks are deterministic execution-boundary callbacks: they fire every time the matched event happens, regardless of what the model decides. Use skills to teach a workflow; use hooks when the precondition is non-negotiable. They pair well together, since the skill describes the procedure and the hook makes sure the agent actually followed it.

### Can Claude Code hooks reduce token usage?

Yes, significantly. The most-cited example: a `PreToolUse` hook that swaps Grep for LSP-based code navigation reduces per-call tokens from ~6,500 to ~580 (a 91% drop) for definition lookups, with a documented 73% real-world weekly aggregate reduction ([nesaminua/claude-code-lsp-enforcement-kit](https://github.com/nesaminua/claude-code-lsp-enforcement-kit), MIT). Other patterns (sandboxed tool output, knowledge-graph compilation) report 71.5x to 98% reductions in their respective scopes. On my own machine, [Boost](/blog/boost-faster-agents-faster-ci/) uses hooks to compress CLI output before it reaches the agent: 212M tokens compressed (63.4%) across 964 sessions.

### Do Claude Agent SDK hooks work the same way?

Mostly. The Claude Agent SDK (TypeScript and Python) exposes the same lifecycle events, including `PreToolUse`, `PostToolUse`, `UserPromptSubmit`, `Stop` and `SubagentStop`, but as in-process callbacks instead of shell commands. You pass a `hooks` object in the query options, keyed by event name, each with an optional tool matcher, and the callback returns the same kind of decision a CLI hook would. The SDK supports a subset of the CLI events, so check [Anthropic&apos;s SDK hooks docs](https://code.claude.com/docs/en/agent-sdk/hooks) before porting a `settings.json` hook.

## Where I landed

I came into this thinking I&apos;d find a few clever hooks worth sharing. I came out wanting to spend a weekend writing the org-wide policy template that doesn&apos;t exist.

If you&apos;ve been shipping skills and ignoring hooks, you&apos;ve taken the easier half. Skills are the part Claude can ignore. Hooks are the part it can&apos;t. For a solo dev that distinction is small. For a team it&apos;s most of the value.

Practical first move, if you&apos;re still reading: write the `UserPromptSubmit` hook that scrubs your most likely credentials before they leave the machine. Maybe 30 lines of Python or bash. It will catch a real incident inside a month. I&apos;d bet on it.

After that, audit your own `.claude/settings.json`. If the count is zero or one, you&apos;ve got a lot of room. (And if you also want to see what your sessions are actually doing while you sort out which hooks to write, that&apos;s what I built [Claudoscope](/) for.)</content:encoded></item><item><title>ForgeCode vs Claude Code: which AI coding agent actually wins?</title><link>https://liranbaba.dev/blog/forgecode-vs-claude-code/</link><guid isPermaLink="true">https://liranbaba.dev/blog/forgecode-vs-claude-code/</guid><description>Claude Code&apos;s speed was driving me and my team crazy. I tried ForgeCode. The speed was real. Now I&apos;m running both.</description><pubDate>Tue, 07 Apr 2026 00:00:00 GMT</pubDate><content:encoded>import { LineChart, BarChart } from &apos;../../components/react/AnimatedCharts&apos;;

![ForgeCode vs Claude Code: side-by-side comparison of performance metrics and features](/blogs/forge-vs-claudecode.webp)

I&apos;ve been using Claude Code for months. I like it. I genuinely don&apos;t get the Twitter hate. But there&apos;s one thing that&apos;s been driving me crazy: speed. I&apos;ll ask it to rename a variable across three files and it sits there thinking for 40 seconds. A simple test fix on a small repo, and I&apos;m watching a spinner for two minutes. It&apos;s not a deal-breaker, but it&apos;s the kind of friction that builds up over a day.

We recently rolled out Claude Code across our entire engineering org. We&apos;re not ditching Cursor, just giving devs the option to pick whatever tool works for them. And the feedback I kept hearing from people, unprompted: it&apos;s slow. Not everyone, not every task. But enough devs brought it up that it clearly wasn&apos;t just me being impatient.

So I started looking at alternatives. OpenAI has [Codex CLI](https://github.com/openai/codex) but I haven&apos;t tried the harness yet, just the models. The [TermBench 2.0 leaderboard](https://www.tbench.ai/leaderboard/terminal-bench/2.0) is what caught my eye. ForgeCode at #1 with 81.8%. Claude Code at 58%, ranked #39. I installed ForgeCode that same day.

&gt; **TL;DR**
&gt; - ForgeCode with Opus 4.6 was noticeably faster than Claude Code on the same tasks. Not marginal, real.
&gt; - ForgeCode topped [TermBench 2.0](https://www.tbench.ai/) at 81.8%, but that&apos;s its own benchmark. On the independent [SWE-bench](https://www.swebench.com), the gap shrinks to 2.4 points.
&gt; - GPT 5.4 through ForgeCode was unstable for me. A research task on a small repo took 15 minutes.
&gt; - I&apos;m double-dipping now. Claude Code is still primary, but the latency gains on ForgeCode are too real to ignore.

## What is ForgeCode (and why the benchmark confusion exists)?

ForgeCode is not an AI model. It&apos;s a model-agnostic agent harness, open source under Apache 2.0, written in Rust, that wraps any LLM through OpenRouter or direct API keys. It launched in late January 2025 and hit [v2.8.0 on GitHub](https://github.com/antinomyhq/forgecode) by April 2026 with over 6,000 stars.

ForgeCode ships three built-in agents. `forge` writes and edits code. `sage` does read-only research and can&apos;t modify files. `muse` generates plans and writes them to a `plans/` directory. It&apos;s Zsh-native, using a `:` prefix so you never leave your shell.

Here&apos;s the thing that matters for evaluating the benchmark: TermBench 2.0 is ForgeCode&apos;s own benchmark, hosted at tbench.ai. The organization submitting entries is ForgeCode itself. That doesn&apos;t make the results wrong. But it&apos;s not a neutral third party.

## Does the benchmark actually hold up?

On [SWE-bench Verified](https://www.swebench.com), an independent benchmark from Princeton and UChicago, ForgeCode + Claude 4 scored 72.7% compared to Claude 3.7 Sonnet&apos;s 70.3%. A 2.4-point gap, not the 24-point gap TermBench implies. That context changes the whole picture.

The TermBench 2.0 numbers, self-reported by ForgeCode on tbench.ai:

- ForgeCode + GPT 5.4: 81.8%
- ForgeCode + Claude Opus 4.6: 81.8%
- Claude Code + Claude Opus 4.6: 58.0% (rank #39)

The SWE-bench Verified numbers, independent:

- ForgeCode + Claude 4: 72.7%
- Claude 3.7 Sonnet (extended thinking): 70.3%
- Claude 4.5 Opus: 76.8%

So how did ForgeCode reach 81.8%? Their blog documents four specific harness changes. They reordered JSON schema fields, putting `required` before `properties` to reduce GPT 5.4 tool-call errors. They flattened nested schemas. They added explicit truncation reminders when files are partially read. And they added a mandatory verification pass where a reviewer skill checks task completion before the agent can stop.

These are real engineering improvements. They&apos;re also benchmark-specific optimizations. The r/ClaudeCode community called it &quot;benchmaxxed,&quot; which is both funny and kind of fair.

{/* [PERSONAL EXPERIENCE] */}
I&apos;ve been eyeing this leaderboard for a while. The numbers are what pushed me to actually try ForgeCode. With Opus 4.6, it was noticeably faster than Claude Code. That part wasn&apos;t hype.

[SWE-bench scores](https://www.swebench.com) went from 1.96% in late 2023 to 76.8% by early 2026. Everything&apos;s getting better fast. The question is whether a 2-point edge on an independent benchmark justifies switching your entire workflow.

&lt;LineChart client:only=&quot;react&quot; /&gt;

&lt;BarChart client:only=&quot;react&quot; /&gt;

## What it&apos;s actually like to use ForgeCode

Install is a one-liner: `curl -fsSL https://forgecode.dev/cli | sh`. Then `forge provider login` to set up your API keys and you&apos;re in. About the same friction as Claude Code. The Zsh plugin is a nice touch, you type `:` followed by your prompt and it runs inline without switching contexts.

First thing I tried: pointed it at my portfolio repo (Astro 6, maybe 30 files) with Opus 4.6 as the model. I asked it to add a post counter to the blog index page and wire it into the nav component. Claude Code takes about 90 seconds on that kind of task on this repo. ForgeCode did it in under 30. Correct output, clean diff, no hallucinated imports. The speed difference was immediately obvious.

&lt;div style={{textAlign: &apos;center&apos;}}&gt;&lt;img src=&quot;/blogs/speed-comparison.webp&quot; alt=&quot;ForgeCode vs Claude Code speed comparison: execution time on identical refactoring and restructuring tasks&quot; style={{maxWidth: &apos;100%&apos;}} /&gt;&lt;/div&gt;

I ran the same kind of test a few more times. A multi-file rename, adding an external link tooltip component, restructuring a layout. ForgeCode with Opus 4.6 was consistently faster. Not by a little. I could feel it in my workflow.

Plan mode was the other thing that stood out. ForgeCode&apos;s `muse` agent writes plans to a `plans/` directory, and the output felt more detailed and verbose than Claude Code&apos;s plan mode. Whether that&apos;s good or bad depends on what you want. I kind of liked having the longer breakdown.

Then I tried GPT 5.4 through ForgeCode, and it fell apart. I asked it to research the architecture of a small repo. Fifteen minutes. Kept going unstable, tool calls failing, the agent retrying and spinning. I killed it. So &quot;ForgeCode is fast&quot; needs a qualifier: ForgeCode with Opus 4.6 is fast. ForgeCode with GPT 5.4 was borderline unusable for me.

But I&apos;ll give them this: the ForgeCode team explicitly says they&apos;ve hired zero paid influencers. The low social media presence is intentional. Kind of respect that. In an industry where half the &quot;honest reviews&quot; have affiliate links in the description, that&apos;s almost suspiciously refreshing.

## Why ForgeCode is actually faster

Part of it is just the Rust binary (Claude Code is TypeScript, so startup and memory are heavier). But that&apos;s not the whole story.

ForgeCode has a context engine that indexes function signatures and module boundaries instead of dumping raw files into the context window. The agent pulls only what it needs. Some estimates say this cuts context size by about 90%, which means faster responses and cheaper models that don&apos;t lose the plot halfway through a task. That&apos;s the real reason the same model (Opus 4.6) responds faster through ForgeCode than through Claude Code.

There&apos;s also a `--sandbox` flag that creates an isolated git worktree and branch, so you can try something risky without touching your main tree and only merge back what works.

What Claude Code has built *around* the core loop, parallel agent execution, hooks, scheduled cloud tasks, auto-memory, none of that exists in ForgeCode yet. The harness is fast. Everything around it is thin. ForgeCode is a Lambo with no cup holder. Fast as hell, but you&apos;re holding your coffee between your knees.

## What I missed when I wasn&apos;t using Claude Code

I didn&apos;t appreciate this until I spent a few days away from Claude Code: the stuff around the agent matters more than the agent itself.

With Claude Code, I have a CLAUDE.md in every project. My team shares the same project instructions. I have hooks that fire on file changes, so I can run secret scanning, linting, whatever I want on every edit. Auto-memory means I don&apos;t re-explain my codebase every session. And checkpoints mean every file edit gets snapshotted, so if the agent breaks something three steps back, I hit `/rewind` and roll back without touching git.

ForgeCode has AGENTS.md (similar idea to CLAUDE.md) and MCP support, so the basics are covered. But no hooks, no checkpoints, no auto-memory, no IDE extensions, no JetBrains plugin. The model-agnostic part is great. The ecosystem is still thin.

For reference, here&apos;s the head-to-head:

| Feature | ForgeCode | Claude Code |
|---|---|---|
| Model choice | Any (300+) | Claude only |
| Open source | Yes (Apache 2.0) | No |
| Language | Rust | TypeScript |
| Project config | AGENTS.md | CLAUDE.md (hierarchical) |
| MCP support | Yes | Yes (extensive) |
| Hooks | No | Yes (6 types) |
| Scheduled tasks | No | Yes (cloud + local) |
| Sub-agents | Yes (forge/sage/muse) | Yes (parallel) |
| Plan mode | Yes | Yes (Shift+Tab) |
| VS Code | No extension | Yes |
| JetBrains | No | Yes |
| Auto memory | No | Yes |
| Checkpoints / rewind | No | Yes |

## Where I landed

I&apos;m double-dipping. Claude Code is still my primary tool, but I keep ForgeCode open for tasks where the latency kills me. Sometimes I&apos;ll drop into Cursor for something visual. Three tools is kind of ridiculous, but the latency gains on ForgeCode are real enough that I can&apos;t just ignore them.

Claude Code is where my project config lives, where my hooks fire, where my MCP connections run. That&apos;s my home base and it&apos;s not changing. But when I need something fast and self-contained, a quick refactor, a file rename across a module, something where I don&apos;t need the full ecosystem, I&apos;ll run it through ForgeCode with Opus 4.6 and it&apos;s done before Claude Code would&apos;ve finished reading the context.

As of April 2026, ForgeCode is faster than Claude Code when running the same model (Opus 4.6), but Claude Code has the deeper ecosystem with hooks, MCP, auto-memory, and IDE integrations. Neither wins across the board. Pick the one that matches how you work and be ready to use both.

## Frequently asked questions

### Is ForgeCode&apos;s TermBench #1 score legitimate?

TermBench is ForgeCode&apos;s own benchmark. On [SWE-bench Verified](https://www.swebench.com), an independent benchmark from Princeton, ForgeCode + Claude 4 scored 72.7% compared to Claude 3.7 Sonnet&apos;s 70.3%. Solid, but not the 24-point gap TermBench suggests.

### Can ForgeCode use my existing Claude or ChatGPT subscription?

No. You need API keys, not a subscription login. Separate billing from whatever you pay for Claude Pro or ChatGPT Plus.

### Does ForgeCode burn more tokens than Claude Code?

Nobody&apos;s published hard numbers. ForgeCode&apos;s multi-agent setup (forge/sage/muse spawning sub-agents) almost certainly burns more tokens per session. I noticed it anecdotally but didn&apos;t measure. Track your own spend if you try it.

### Is ForgeCode safe for proprietary code?

The harness is open source, but default telemetry collects git user emails, scans SSH directories, and sends conversation data externally. [GitHub issue #1318](https://github.com/antinomyhq/forgecode/issues/1318) raised data transparency concerns. The team addressed it in March 2025: set `FORGE_TRACKER=false` to disable all tracking.

### Is ForgeCode free?

The code is free and open source (Apache 2.0). The hosted service was [originally unlimited](https://reddit.com/r/cursor/comments/1maq1ex), but switched to a tiered model in mid-2025 with daily request caps on the free tier.

---

ForgeCode&apos;s benchmark lead exists on a test it runs itself. On independent benchmarks, it&apos;s comparable. The speed with Opus 4.6 is real. The GPT 5.4 experience was rough.

I didn&apos;t expect to end up running two coding agents. But here I am. If ForgeCode ships hooks and the ecosystem catches up, that could change. For now, I&apos;m using both, and it&apos;s working.

---

&lt;script type=&quot;application/ld+json&quot;&gt;{JSON.stringify({
  &quot;@context&quot;: &quot;https://schema.org&quot;,
  &quot;@type&quot;: &quot;FAQPage&quot;,
  &quot;mainEntity&quot;: [
    {
      &quot;@type&quot;: &quot;Question&quot;,
      &quot;name&quot;: &quot;Is ForgeCode&apos;s TermBench #1 score legitimate?&quot;,
      &quot;acceptedAnswer&quot;: {
        &quot;@type&quot;: &quot;Answer&quot;,
        &quot;text&quot;: &quot;TermBench is ForgeCode&apos;s own benchmark. On SWE-bench Verified, an independent benchmark from Princeton, ForgeCode + Claude 4 scored 72.7% compared to Claude 3.7 Sonnet&apos;s 70.3%. Solid, but not the 24-point gap TermBench suggests.&quot;
      }
    },
    {
      &quot;@type&quot;: &quot;Question&quot;,
      &quot;name&quot;: &quot;Can ForgeCode use my existing Claude or ChatGPT subscription?&quot;,
      &quot;acceptedAnswer&quot;: {
        &quot;@type&quot;: &quot;Answer&quot;,
        &quot;text&quot;: &quot;No. You need API keys, not a subscription login. Separate billing from whatever you pay for Claude Pro or ChatGPT Plus.&quot;
      }
    },
    {
      &quot;@type&quot;: &quot;Question&quot;,
      &quot;name&quot;: &quot;Does ForgeCode burn more tokens than Claude Code?&quot;,
      &quot;acceptedAnswer&quot;: {
        &quot;@type&quot;: &quot;Answer&quot;,
        &quot;text&quot;: &quot;Nobody&apos;s published hard numbers. ForgeCode&apos;s multi-agent setup (forge/sage/muse spawning sub-agents) almost certainly burns more tokens per session. Track your own spend if you try it.&quot;
      }
    },
    {
      &quot;@type&quot;: &quot;Question&quot;,
      &quot;name&quot;: &quot;Is ForgeCode safe for proprietary code?&quot;,
      &quot;acceptedAnswer&quot;: {
        &quot;@type&quot;: &quot;Answer&quot;,
        &quot;text&quot;: &quot;The harness is open source, but default telemetry collects git user emails, scans SSH directories, and sends conversation data externally. GitHub issue #1318 raised data transparency concerns. The team addressed it: set FORGE_TRACKER=false to disable all tracking.&quot;
      }
    },
    {
      &quot;@type&quot;: &quot;Question&quot;,
      &quot;name&quot;: &quot;Is ForgeCode free?&quot;,
      &quot;acceptedAnswer&quot;: {
        &quot;@type&quot;: &quot;Answer&quot;,
        &quot;text&quot;: &quot;The code is free and open source (Apache 2.0). The hosted service was originally unlimited, but switched to a tiered model in mid-2025 with daily request caps on the free tier.&quot;
      }
    }
  ]
})}&lt;/script&gt;

**Sources:**
- [ForgeCode GitHub Repository](https://github.com/antinomyhq/forgecode) - GitHub, April 2026
- [TermBench 2.0 Leaderboard](https://www.tbench.ai/leaderboard/terminal-bench/2.0) - tbench.ai, 2026
- [SWE-bench Verified Leaderboard](https://www.swebench.com) - Princeton/UChicago, 2026
- [Claude Code Documentation](https://code.claude.com/docs/en/) - Anthropic, 2026
- [Anthropic Claude 3.7 Sonnet Announcement](https://www.anthropic.com/news/claude-3-7-sonnet) - Anthropic, February 2025</content:encoded></item><item><title>Cursor 3 shipped parallel agents, but is any of it new?</title><link>https://liranbaba.dev/blog/cursor-3-parallel-agents/</link><guid isPermaLink="true">https://liranbaba.dev/blog/cursor-3-parallel-agents/</guid><description>How Cursor 3 runs multiple agents and models in parallel, why it already worked in v2, and why users report $2,000 bills in two days.</description><pubDate>Fri, 03 Apr 2026 00:00:00 GMT</pubDate><content:encoded>Cursor 3 shipped on April 2. The demos look great: eight AI agents running in parallel, each in its own Git worktree, building different parts of your project at the same time. The [Hacker News thread](https://news.ycombinator.com/item?id=47618084) lit up. Product Hunt gave it the #3 spot for the day.

Then I read the comments. One user reported spending $2,000 in two days on cloud agents. Another switched from $1,800/month on Cursor to roughly $200/month on Claude Code and Codex. A third said they had &quot;zero interest&quot; in forced agent swarms and were moving to VS Code with Claude Code instead.

The coverage so far has been mostly feature recaps reprinting the press release. Nobody&apos;s asking the obvious questions: is parallel agent execution actually new? What does it really cost? And what happens when your agents need to share context?

&gt; **Here&apos;s the Thing**
&gt; Cursor 2 already supported parallel execution via worktree.json configuration. What Cursor 3 actually shipped is a UI layer (Agents Window sidebar, drag-drop tabs) on top of the same Git worktree primitives. The cost model is the real concern: early testers reported $2,000 bills in two days, and Cursor&apos;s pricing page doesn&apos;t explain why. The unsolved technical problem is context sharing between local and cloud agents, which the docs hand-wave as &quot;summarized and reduced.&quot;

## What Cursor 3 actually shipped

Cursor 3 lets you run up to 8 AI agents in parallel across isolated Git worktrees ([Cursor](https://cursor.com/blog/cursor-3), 2026). Agents run locally via Composer 2 or in cloud isolation VMs. You can watch them all from a new sidebar called the Agents Window.

That&apos;s the pitch, anyway.

Cursor 2 already supported parallel agent execution through worktree.json configuration. The `/worktree` command isn&apos;t new functionality. It&apos;s new UI. The Agents Window gives you visibility into what your agents are doing, and that part is genuinely useful. But calling this an architectural pivot is a stretch.

The other additions: `/best-of-n` runs the same prompt across multiple models side by side (Composer 2 vs. Claude vs. GPT). Design Mode lets you annotate UI elements and describe changes in plain English. The MCP Marketplace adds plugin support for hundreds of tools.

Under the hood, `/worktree` runs `git worktree add` to create an isolated working directory on a new branch, then spawns an agent process scoped to that directory. Each agent gets its own filesystem view, so file edits don&apos;t collide mid-run. When the agent finishes, you review the diff and merge. This is the same thing you&apos;d do manually with `git worktree add` and a second terminal. Cursor 3 wraps it in a sidebar.

## The cost problem nobody is talking about

Early adopters reported spending $2,000+ in two days running Cursor 3&apos;s cloud agents ([Hacker News](https://news.ycombinator.com/item?id=47618084), 2026). That&apos;s not a typo. Two thousand dollars. Two days.

Cursor&apos;s pricing page lists four tiers: Free, Pro at $20, Pro+ at $60, and Ultra at $200 per month ([cursor.com/pricing](https://cursor.com/pricing), 2026). Those numbers look reasonable until you start running cloud agents. The pricing page doesn&apos;t mention per-minute VM charges or explain how cloud agent costs are metered. The resource costs for cloud agents? Absent from the page entirely.

HN user dirtbag\_\_dad reported spending &quot;$2k a week with premium models&quot; before switching to Claude Code Max at &quot;1/10th the price.&quot; Another commenter, verelo, switched from $1,800/month on Cursor to roughly $200/month on Claude and Codex, calling it &quot;WAY better value for money.&quot;

Same story every time. Listed price and actual spend have almost nothing in common. When your pricing page says $200/month but users regularly spend ten times that, the issue isn&apos;t pricing. It&apos;s that nobody can predict what anything costs before the bill shows up.

### Claude Code isn&apos;t immune either

I should be fair here. Anthropic&apos;s flat-rate plans sound predictable, but they have their own version of this.

In late March 2026, Claude Code Max plan users reported exhausting their quotas in under an hour. The same quota that previously lasted eight hours ([The Register](https://www.theregister.com/2026/03/31/anthropic_claude_code_limits/), 2026). The story pulled 324 points on Hacker News. BBC covered it a day later.

Anthropic acknowledged the problem on Reddit: &quot;people are hitting usage limits in Claude Code way faster than expected.&quot; A March promotion that doubled limits ended on March 28. There were reports of prompt cache bugs inflating token usage by 10-20x. And Anthropic doesn&apos;t publicly specify exact usage caps for any plan.

So people started building tools just to figure out their own limits. API proxy interceptors. One developer [tried to reverse-engineer the utilization headers](https://www.claudecodecamp.com/p/i-tried-to-reverse-engineer-claude-code-s-usage-limits) that Anthropic sends on every API response, because Claude Code doesn&apos;t surface them to you.

I [built Claudoscope](/blog/found-database-password-in-claude-code-session/) partly for this reason. If the tool won&apos;t tell you what it costs, build something that will.

Both tools have cost transparency problems. They&apos;re just structured differently. Cursor&apos;s is per-token opacity: you don&apos;t know what cloud agents will cost until the bill arrives. Anthropic&apos;s is undisclosed caps on plans marketed as generous. Neither side has figured this out yet, which is kind of remarkable given how much both charge.

## The context sharing problem

This is the technical gap that nobody&apos;s writing about, and it&apos;s the one that actually matters for how well parallel agents work in practice.

Each worktree agent runs in its own isolated branch. That&apos;s the point: isolation prevents file conflicts. But it also means Agent A doesn&apos;t know what Agent B is doing. If you&apos;re building an API endpoint in one worktree and the frontend that calls it in another, those agents are working from the same base commit. Neither sees the other&apos;s in-progress changes.

Cursor&apos;s docs say local and cloud agent contexts are &quot;summarized and reduced&quot; before sharing. That&apos;s doing a lot of work as a sentence. How much of a 100k-line codebase survives summarization? What&apos;s the token budget for the summary? Is it a full AST-aware summary or just file path lists? The docs don&apos;t say.

There&apos;s also the committed-vs-dirty question. Are cloud agents working from the latest committed state on the branch, or from your local uncommitted edits? If committed: you have to commit before spawning cloud agents, which means half-finished code landing in your Git history. If uncommitted: they need filesystem sync between local and cloud, which introduces latency and consistency issues. The docs are silent on this too.

I&apos;ve hit a version of this problem with Claude Code&apos;s worktree parallelism. Two agents building against the same API contract will sometimes diverge on field names or response shapes because neither agent sees the other&apos;s work until merge time. The fix is manual: define the contract first, commit it, then parallelize. That works, but it means true parallelism requires upfront planning that eats into the time savings.

[The Claude Code source leak](/blog/claude-code-source-leak/) exposed how their agent orchestration handles this internally: spawning sub-agents, tool call cascading through orchestration layers, sessions that retry failed operations in loops. Context sharing between agents is an unsolved problem across the entire category, not just Cursor.

## What parallel agents actually solve (and when they don&apos;t)

Parallel agents deliver real speedups for the right kind of work. Building a full-stack feature with decoupled components? Four agents in parallel (UI, API, database, tests) can cut wall-clock time from eight hours to two ([Cursor docs](https://cursor.com/docs/configuration/worktrees), 2026). That&apos;s a genuine 4x on paper.

I use Claude Code&apos;s worktree-based parallelism for similar workflows. Spin up multiple agents, each in an isolated branch, merge when they&apos;re done. The UX is rougher: no Agents Window, no drag-drop tabs, no visual status at a glance. But the core capability is the same, and the cost is flat.

Here&apos;s where it falls apart. When Agent B depends on Agent A&apos;s output, you can&apos;t parallelize. That&apos;s most real work. For tasks under 30 minutes, the orchestration overhead eats the speedup. Solo devs on small projects get almost nothing from running eight agents simultaneously. And the context sharing gap I described above means agents working on related components will diverge unless you&apos;ve done the upfront contract work.

---

Cursor 3 is a polished UI layer on existing capabilities, positioned as an architectural breakthrough. The parallel agents are real but not new. The cost model is real but not transparent.

If you&apos;re already in Claude Code, I don&apos;t see a reason to switch. If you&apos;re evaluating for the first time, try both. Run each for a week on real work, not demos. Track what you actually spend. Then decide.

Or skip both and try [ForgeCode](https://forgecode.dev/). It&apos;s open source, terminal-based, and topped TermBench 2.0 at 81.8%. You bring your own API keys and pick your model. I haven&apos;t used it yet, but I&apos;m giving it a weekend. Their blog post about hitting #1 is titled &quot;benchmarks don&apos;t matter,&quot; which I kind of respect.

That&apos;s really all I&apos;ve got. Track your costs. The rest will sort itself out.

## Frequently asked questions

### How much does Cursor 3 actually cost per month?

Plans start at $20/month but real-world spend with cloud agents ranges from $200 to $1,800+ per month based on Hacker News community reports ([HN](https://news.ycombinator.com/item?id=47618084), 2026). Cloud agent resource costs aren&apos;t disclosed on the pricing page. Track your actual spend for a full week before committing to a plan.

### Can you run Cursor 3 agents locally without cloud costs?

Yes, local agents run Composer 2 on-device with no per-use charges. Cloud agents are where the parallel execution actually matters, though, and those costs aren&apos;t disclosed anywhere.

### Is Cursor 3 better than Claude Code for parallel tasks?

Claude Code supports parallel execution via worktrees at a flat $100-$200/month rate. Cursor 3 offers better visual orchestration through the Agents Window but with unpredictable costs. Pick based on what matters more to you: UI visibility or cost predictability.

---

**Sources:**
- [Cursor 3 Announcement](https://cursor.com/blog/cursor-3) - Cursor, April 2, 2026
- [Cursor Pricing](https://cursor.com/pricing) - cursor.com, April 2026
- [Cursor Parallel Agents Docs](https://cursor.com/docs/configuration/worktrees) - Cursor docs
- [HN: Cursor 3 Discussion](https://news.ycombinator.com/item?id=47618084) - Hacker News, April 2026
- [Claude Code users hitting usage limits](https://www.theregister.com/2026/03/31/anthropic_claude_code_limits/) - The Register, March 31, 2026
- [Reverse Engineering Claude Code Limits](https://www.claudecodecamp.com/p/i-tried-to-reverse-engineer-claude-code-s-usage-limits) - Claude Code Camp, April 1, 2026</content:encoded></item><item><title>Claude Code source leak: undercover mode and decoy tools</title><link>https://liranbaba.dev/blog/claude-code-source-leak/</link><guid isPermaLink="true">https://liranbaba.dev/blog/claude-code-source-leak/</guid><description>A source map in Claude Code v2.1.88 exposed about 1,700 files, undercover mode, decoy tools, and a 3,167-line function. Anthropic then DMCA&apos;d 8,100 repos.</description><pubDate>Thu, 02 Apr 2026 00:00:00 GMT</pubDate><content:encoded>On March 31, a single `.map` file shipped inside an npm package and exposed the complete internals of Claude Code. The [Hacker News thread](https://news.ycombinator.com/item?id=47584540) hit 2,060 points. Anthropic filed DMCA takedowns against 8,100+ GitHub repos. And I spent most of the afternoon reading TypeScript I wasn&apos;t supposed to see.

I use Claude Code every day. I built [Claudoscope](https://claudoscope.com/) because I wanted to understand what it was actually doing in my terminal. So when the source dropped, I went through it. Some of it confirmed things I&apos;d suspected. Some of it genuinely surprised me.

&gt; **Key Takeaways**
&gt; - A JavaScript source map in Claude Code v2.1.88 exposed ~1,700 TypeScript source files ([alex000kim](https://alex000kim.com/posts/2026-03-31-claude-code-source-leak/), 2026)
&gt; - Unreleased features include KAIROS autonomous mode, anti-distillation decoy tools, and &quot;undercover mode&quot; that hides AI authorship
&gt; - Anthropic&apos;s DMCA takedown hit 8,100+ repos, many containing no leaked code
&gt; - A clean-room rewrite called Claw Code gained 146,000 GitHub stars in under 48 hours

## What happened

Security researcher Chaofan Shou [disclosed on X](https://x.com/shoucccc/status/2038894956459290963) that Anthropic had shipped a JavaScript source map file inside Claude Code version 2.1.88 on npm. Source maps are debugging artifacts. They contain the original, readable TypeScript source before minification. They&apos;re not supposed to ship to production. This one did.

Early speculation blamed a known Bun bug ([oven-sh/bun#28001](https://github.com/oven-sh/bun/issues/28001)) where `bun serve` sometimes exposes source maps in production. But that bug affects web apps hosted by Bun, not packages bundled with Bun and run locally. Claude Code uses Bun as a bundler and local runtime, not as a web server. Jared Sumner, Bun&apos;s creator and now an Anthropic employee, confirmed Claude Code doesn&apos;t use `bun serve`, ruling this out. His comment was, as far as anyone can tell, the only public response from an Anthropic employee about the leak. The actual cause of the source map shipping in the npm package remains unexplained.

About 1,700 source files were exposed, spread across utils (564 files), components (389), commands (189), tools (184), services (130), hooks (104), ink (96), and bridge (31) directories. The `.map` file sat on the npm CDN for anyone to download. When Anthropic responded, they deprecated the package version rather than unpublishing it, so the file stayed somewhat accessible even after the response.

The HN thread generated 1,013 comments. Two follow-up analysis posts scored 1,354 and 1,078 points. People were interested.

## What was inside the code?

35+ tools across six categories, 73+ slash commands, and over 200 server-side feature gates ([ccunpacked.dev](https://ccunpacked.dev/), 2026). The community built a [visual guide](https://ccunpacked.dev/) mapping out an 11-step agent loop from keypress to response.

The main `print.ts` file is 5,594 lines long. Inside it, a single function spans 3,167 lines at 12 levels of nesting ([alex000kim](https://alex000kim.com/posts/2026-03-31-claude-code-source-leak/), 2026). Not great.

There&apos;s an operational bug affecting 1,279 sessions that hit 50+ consecutive failures, wasting roughly 250,000 API calls per day globally. HN commenters said it was fixable with three lines.

The tool taxonomy is more interesting than the code quality issues. File operations, bash execution, web browsing, agent orchestration, task management, cron jobs, worktree isolation. What looks like a coding assistant in the terminal is actually a full agent framework. Daemon mode. Unix domain socket communication between sessions. Remote control via mobile and browser.

I&apos;ve been watching Claude Code&apos;s behavior through Claudoscope session logs for months. The leaked architecture confirms patterns I&apos;d noticed in the wild: tool calls cascading through orchestration layers, sessions spawning sub-agents, loops where it burns through tokens retrying failed operations over and over. Reading the source was like finally seeing the schematic for a machine I&apos;d only heard running.

## The features nobody was supposed to see

The most discussed findings weren&apos;t about code quality. They were about where Anthropic is heading.

**KAIROS** is a persistent autonomous agent mode. It runs on periodic `&lt;tick&gt;` prompts, maintains daily append-only logs, subscribes to GitHub webhooks, and spawns background daemon workers. The source states it &quot;becomes more autonomous when terminal unfocused.&quot; It includes a `/dream` skill and five-minute cron refreshes. Claude Code that doesn&apos;t wait for you to type. That&apos;s what this is.

**Undercover mode** drew the sharpest reaction. The file `undercover.ts` suppresses all signs of AI authorship when contributing to public or open-source repos. The instructions are blunt: &quot;NEVER include the phrase &apos;Claude Code&apos; or any mention that you are an AI&quot; and remove &quot;Co-Authored-By lines or any other attribution.&quot; It only runs for Anthropic employees (`USER_TYPE === &apos;ant&apos;`). The code says: &quot;There is NO force-OFF.&quot;

I keep coming back to this one. A company that&apos;s built its identity on AI safety and transparency had a mode specifically designed to hide AI involvement in open-source contributions. The file also prevents mention of internal model codenames like &quot;Capybara&quot; and &quot;Tengu,&quot; which suggests unreleased models Anthropic hasn&apos;t publicly acknowledged.

**Anti-distillation** sends decoy tool definitions to poison training data if competitors scrape API traffic. A secondary mechanism uses server-side text summarization with cryptographic signatures between tool calls to obscure reasoning chains. As multiple HN commenters pointed out, the strategic value of this system &quot;evaporated the moment the .map file hit the CDN.&quot;

Other exposed systems: native client attestation (DRM-like cryptographic verification of legitimate Claude Code binaries), frustration detection via regex (pattern-matching profanity like &quot;wtf&quot; and &quot;dumbass&quot; instead of using the LLM itself, which is kind of funny), and Buddy, a virtual terminal pet that turned out to be the 2026 April Fools&apos; feature.

## The DMCA overreaction

Anthropic&apos;s response to the leak may end up being the bigger story. On March 31 they filed DMCA takedown notices targeting an entire fork network of [8,100+ repositories](https://github.com/github/dmca/blob/master/2026/03/2026-03-31-anthropic.md) on GitHub. The notice said: &quot;The entire repository is infringing.&quot;

Many of those repos had nothing to do with the leak. One developer [noted on HN](https://news.ycombinator.com/item?id=47584540) that their fork &quot;had not been modified since May&quot; and &quot;did not contain a copy of the leaked code.&quot; Others called it &quot;misguided&quot; and &quot;ridiculous.&quot; I mean, yeah.

The legal questions get weird fast. If Claude Code was partly written by Claude itself (Anthropic says they use their own tools internally), does the AI-generated portion qualify for copyright protection? One commenter raised a sharper point: `undercover.ts` explicitly hides AI authorship, which could undermine Anthropic&apos;s own copyright claims. False DMCA claims constitute perjury.

Anthropic executives later said the mass takedowns were accidental and retracted most of the notices ([TechCrunch](https://techcrunch.com/2026/04/01/anthropic-took-down-thousands-of-github-repos-trying-to-yank-its-leaked-source-code-a-move-the-company-says-was-an-accident/), 2026). But by then the Streisand effect had done its work. Every takedown drew more attention to the code they were trying to hide.

## What are the actual security risks?

No user data was exposed. But the leak did expose systems Anthropic relies on to protect its product.

| System exposed | Risk | Severity |
|---------------|------|----------|
| Anti-distillation decoy tools | Anyone scraping API traffic can now filter for fakes | High |
| Native client attestation | Cryptographic hash mechanism publicly documented | High |
| Security header feature flags | Remote disabling of security headers revealed | High |
| Unreleased product roadmap | KAIROS, UltraPlan, Coordinator Mode visible to competitors | Medium-High |
| Internal model codenames | &quot;Capybara,&quot; &quot;Tengu&quot; disclosed | Medium |
| Operational bugs | 250K wasted API calls/day, trivially fixable | Medium |

The anti-distillation system is the clearest loss. Its entire value depended on competitors not knowing it existed.

This connects to something I&apos;ve written about before. When I [found my database password sitting in a Claude Code session file](/blog/found-database-password-in-claude-code-session/), the issue wasn&apos;t that Claude Code was doing something malicious. The issue was that it operates with deep filesystem access and stores everything in unencrypted JSONL files that nobody checks. The source leak confirms what I suspected: there&apos;s limited internal safeguarding around what gets stored and transmitted.

## Claw Code: 146K stars in 48 hours

Within hours of the leak, a developer ported Claude Code&apos;s core architecture to Python and Rust from scratch. [Claw Code](https://github.com/ultraworkers/claw-code) hit 146,000 GitHub stars and 101,000 forks in under 48 hours.

It&apos;s a clean-room rewrite, not a fork of the leaked code. The repo disclaims any affiliation with Anthropic and says the exposed snapshot &quot;is no longer part of the tracked repository state.&quot; The developer was later featured in a Wall Street Journal article as a power user who consumed &quot;25 billion tokens&quot; of AI coding tools per year.

The project includes an interactive CLI, plugin system, MCP orchestration, streaming API support, and LSP integration. Rust (92.9%), Python (7.1%).

We&apos;ve seen this before. When Meta&apos;s LLaMA model weights leaked in 2023, they chased takedowns for a while, then gave up and went open. The community built derivatives no matter what legal said. 146K stars on Claw Code tells you what developers actually want. Whether Anthropic decides to offer an open alternative is almost beside the point now.

## The bigger picture

This didn&apos;t happen in isolation. It capped a rough month for Anthropic:

- Feb 16: Pentagon threatened Anthropic with punitive action
- Mar 5: Pentagon formally labeled Anthropic a &quot;supply chain risk&quot; ([WSJ](https://www.wsj.com/politics/national-security/pentagon-formally-labels-anthropic-supply-chain-risk-escalating-conflict-ebdf0523), 2026)
- Mar 9: Anthropic sued the Pentagon ([Axios](https://www.axios.com/2026/03/09/anthropic-sues-pentagon-supply-chain-risk-label), 2026)
- Mar 26: Federal judge blocked the Pentagon&apos;s effort ([CNN](https://www.cnn.com/2026/03/26/business/anthropic-pentagon-injunction-supply-chain-risk), 2026)
- Mar 31: Source code leaked via npm. DMCA takedowns hit 8,100+ repos
- Apr 1: TechCrunch runs [&quot;Anthropic is having a month&quot;](https://techcrunch.com/2026/03/31/anthropic-is-having-a-month/)

Anthropic built its brand on responsible development and safety-first engineering. Then a source map shipped in an npm package and nobody caught it. The DMCA response hit thousands of uninvolved developers. And `undercover.ts` was hiding AI authorship while the company publicly advocated for transparency.

I still use Claude Code. I don&apos;t think it&apos;s a bad product. But the gap between the safety messaging and the operational reality is now documented in 1,700 TypeScript files. Anyone can read them.

## What to do now

If you use Claude Code, there&apos;s nothing you need to patch or update. The leak was Anthropic&apos;s source code, not your data.

What&apos;s worth paying attention to is how Anthropic responds. As of this writing, there&apos;s been no official statement on their newsroom, blog, or developer channels. The only Anthropic employee who commented publicly was Jared Sumner, and only to clarify the Bun bug wasn&apos;t the cause. Whether they address undercover mode, the DMCA overreach, or the anti-distillation system will say a lot about how they handle things going forward.

And if you&apos;re eyeing Claw Code as an alternative, know what you&apos;re getting into. It&apos;s a clean-room rewrite with different internals, not a fork.

Or maybe this is the push to try something else entirely. [ForgeCode](https://forgecode.dev/) currently tops TermBench 2.0 and has been getting a lot of attention. I haven&apos;t switched yet, but I&apos;d be lying if I said I wasn&apos;t curious.

## Frequently asked questions

### What exactly was leaked in the Claude Code source code?

The full TypeScript source, exposed via a JavaScript source map in npm package v2.1.88. It included 35+ tools, 73+ slash commands, 200+ feature gates, and unreleased features like KAIROS autonomous mode and undercover mode ([ccunpacked.dev](https://ccunpacked.dev/), 2026).

### Why did Anthropic take down 8,100 GitHub repositories?

They filed DMCA takedown notices targeting the entire fork network of the repo hosting the leaked code. Many repos contained no leaked material. Anthropic later called the mass takedown accidental and retracted most notices ([TechCrunch](https://techcrunch.com/2026/04/01/anthropic-took-down-thousands-of-github-repos-trying-to-yank-its-leaked-source-code-a-move-the-company-says-was-an-accident/), 2026).

### Is my data at risk from the Claude Code leak?

No. This was source code, not user data. That said, the source did reveal how session data is handled and that feature flags exist to disable security headers remotely.

### What is Claw Code?

Someone ported Claude Code&apos;s core architecture to Python and Rust from scratch within hours of the leak. It&apos;s a clean-room rewrite, not a fork. 146,000 stars and 101,000 forks in under 48 hours. Not affiliated with Anthropic ([GitHub](https://github.com/ultraworkers/claw-code)).

---

**Sources:**
- [Claude Code Source Leak Analysis](https://alex000kim.com/posts/2026-03-31-claude-code-source-leak/) - alex000kim, March 31, 2026
- [Claude Code Unpacked Visual Guide](https://ccunpacked.dev/) - ccunpacked.dev, April 1, 2026
- [Anthropic DMCA Notice](https://github.com/github/dmca/blob/master/2026/03/2026-03-31-anthropic.md) - GitHub DMCA Archive, March 31, 2026
- [HN Thread: Source Leak Disclosure](https://news.ycombinator.com/item?id=47584540) - Hacker News, March 31, 2026
- [Anthropic took down thousands of GitHub repos](https://techcrunch.com/2026/04/01/anthropic-took-down-thousands-of-github-repos-trying-to-yank-its-leaked-source-code-a-move-the-company-says-was-an-accident/) - TechCrunch, April 1, 2026
- [Anthropic is having a month](https://techcrunch.com/2026/03/31/anthropic-is-having-a-month/) - TechCrunch, March 31, 2026
- [Claw Code Repository](https://github.com/ultraworkers/claw-code) - GitHub</content:encoded></item><item><title>I found my database password in a Claude Code session file</title><link>https://liranbaba.dev/blog/found-database-password-in-claude-code-session/</link><guid isPermaLink="true">https://liranbaba.dev/blog/found-database-password-in-claude-code-session/</guid><description>A leaked credential in a Claude Code session file led me to build Claudoscope, a macOS menu bar app for session analytics, cost tracking, and secret scanning.</description><pubDate>Mon, 30 Mar 2026 00:00:00 GMT</pubDate><content:encoded>I found my database password in a Claude Code session file

I use Claude Code for most of my programming work, and I have very little idea what it&apos;s actually doing under the hood.

A few months ago I was poking around `~/.claude/projects/` and opened a session JSONL file. Buried in the conversation, Claude Code had read a `.env` file and echoed its contents back as a tool result. My database password, sitting in plaintext, in a file I never look at.

That was the afternoon I stopped what I was working on and started building Claudoscope.

## The problem isn&apos;t Claude Code. It&apos;s visibility.

Claude Code doesn&apos;t have a cost breakdown per session. The Enterprise API doesn&apos;t surface spend data at all; only the admin dashboard does, and it&apos;s not granular enough. When we rolled it out across the org, nobody could answer basic questions: which sessions are expensive? Is the agent stuck in a loop somewhere? Is our CLAUDE.md actually doing anything useful or just eating context window?

And the security angle was worse. Session files contain the full conversation, including anything the agent reads from disk. If it touches a file with credentials, those credentials now live in an unencrypted JSONL file indefinitely. Nobody was checking for that.


So I built a flashlight.

Claudoscope is a native macOS menu bar app. It watches your Claude Code session files locally, parses them, and gives you a dashboard. Nothing leaves your machine.

The menu bar widget gives you a glance: today&apos;s sessions, tokens, cost, and any sessions that are currently running with a live cost number next to them. Click through to the full dashboard when you want the details.

### &quot;Why did Tuesday cost $47?&quot;

That was the question I kept asking and couldn&apos;t answer. The analytics view breaks it down: cost by project, cost by model, daily trends. The cache tab shows whether your prompt cache is stable or busting on every request (cache busting is expensive and invisible without tracking). There&apos;s a what-if calculator that shows what your bill would look like if you moved Opus sessions to Sonnet.


### &quot;Is my CLAUDE.md any good?&quot;

I didn&apos;t plan on building a config linter. It started as a quick check for obvious problems in my own setup. Then I ran it on a colleague&apos;s CLAUDE.md and found it was over 4,000 tokens, roughly 10% of the context window eaten by instructions before the agent even started working. So I made it a rule.

The linter now has 19 rules. It checks CLAUDE.md structure, skill metadata, deprecated commands, token budget estimates. It groups findings by rule rather than by file, so you see patterns. One rule (subprocess env scrub) has a one-click auto-fix.

The first time I ran it on our team&apos;s configs, it flagged raw XML brackets in a skill&apos;s frontmatter that would break the system prompt parser. Nobody had noticed because the failure was silent.


### Secret scanning

This is probably the most useful feature and also the hardest one to get people excited about. Did the agent just leak your credentials? You&apos;d never know unless something was watching.

Claudoscope scans session files for leaked credentials: private keys, AWS access keys, auth headers, API tokens, passwords in connection strings. It uses regex matching, Shannon entropy analysis, and allowlists for placeholder values. The entropy check matters because without it you get a wall of false positives from example code and docs.

When it finds something, a panel pops up on screen. Doesn&apos;t matter if the dashboard is open. It watches the tail of active session files and alerts you immediately.

## What I learned from my own data

Building this meant spending a lot of time inside Claude Code&apos;s JSONL format. A few things I didn&apos;t expect:

Prompt cache reads are cheap ($0.30/MTok on Sonnet vs $3.00 uncached), so I assumed most of my input was cached. On some projects, 30-40% wasn&apos;t. The cache busts when session context shifts after compaction, and before I had a hit rate chart staring me in the face, I had no idea.

I also figured my expensive sessions would be the big multi-hour ones. They weren&apos;t. The cost was in dozens of short sessions where Claude Code loaded context, did one thing, and exited. Each one paid full input with no cache. Fifty quick questions cost me more than the three-hour refactor.

Most CLAUDE.md files across our team were 2,000-5,000 tokens. Context window you pay for on every message. A few people trimmed theirs after seeing the linter&apos;s token estimate.

And one gotcha for anyone parsing these files themselves: the JSONL contains intermediate records with null `stop_reason`, in-progress streaming responses. Sum all records naively and you double-count tokens. I shipped this bug and didn&apos;t catch it until cost estimates were 1.5-2x the actual Vertex bill. Not documented anywhere, as far as I can tell.

## Under the hood

It watches `~/.claude/projects/` with macOS FSEvents (not polling). Session parsing runs on a Swift actor for thread safety. Cost estimation runs per-message, not per-session, because different messages in the same session can use different models. There&apos;s an LRU cache (20 sessions) so navigating between recent sessions feels instant.

I built it in SwiftUI, macOS 14+, Apple Silicon only. I wanted it to feel like a Mac app. That means no Linux or Windows, and I&apos;m fine with that tradeoff.

## Install

Free, open source, macOS only (Apple Silicon). Homebrew:

```
brew tap cordwainersmith/claudoscope
brew install --cask claudoscope
```

Or grab the DMG from [GitHub](https://github.com/cordwainersmith/Claudoscope). It auto-updates. The cost estimation is most useful on Enterprise plans where per-session data isn&apos;t available, but session analytics and config linting work regardless of your plan.

Go check your session files. You might not like what you find.</content:encoded></item></channel></rss>