Skip to content
86% off$349 $48.86code BF2026

Guides

Claude Code agent_summary background agent cost: the fix

Claude Code background agents reportedly resend their full transcript about every 30 seconds for a status line. Update to 2.1.311, then measure your real spend.

GuideUpdated 5 min read

On this page

Your Anthropic bill looks higher than your session logs explain, and you run several Claude Code background agents at once. The cause may be agent_summary calls: status requests that never show up in transcripts.

Everything below about Claude Code's behavior comes from one user's report on Reddit and Anthropic's reply on Hacker News, not from our own testing. Details are as reported as of November 2026.

Why it happens

The behavior is on by default. As reported, each working background agent sends its entire transcript about every 30 seconds to produce a short status line. Anthropic's fix shipped in 2.1.311.

Reported numbers disagree, and it is worth seeing why:

  • One user split their OpenTelemetry (OTel) cost data by query_source and found agent_summary at 16.4% of spend.
  • Anthropic told Hacker News the share is about 2% overall and about 6% in the terminal.

The gap is plausible. Each call carries the transcript so far, so it costs more as a session grows, and the number of calls grows with the number of agents working at once. One working agent at a 30-second interval makes about 120 of these calls an hour.

We don't know exactly what the 2.1.311 change does, and the report doesn't say what share to expect afterward. Don't assume the cost is gone. Verify it.

Fix 1: check your version and update

  1. In Terminal, run:

    bash
    claude --version

    This prints the installed Claude Code version.

  2. If it is lower than 2.1.311, update the same way you installed it. Our guide to installing Claude Code on a Mac covers the common routes.

  3. Run claude --version again. If it still shows the old number, you may have two installs. Run which claude to see which one your shell finds, and update that one.

  4. Restart any Claude Code session that was already running. A session started before the update keeps running the old version.

If you run agents in Sledbot, quitting the app does not stop them. Use Restart in the agent session header for each agent that was already running, or Stop it and start a new one.

Fix 2: measure it with OpenTelemetry

This is the method that found the problem. Claude Code can export OTel telemetry, and the reported split used the query_source value on cost data. Set up the export as Anthropic's Claude Code documentation describes, then group cost by query_source and look at the agent_summary row.

  • Compare the share before and after updating, using similar workloads.
  • Treat Anthropic's 2% and 6% as reference points only. If agent_summary is still a large slice after 2.1.311, count how many background agents run at once, and consider reporting it to Anthropic.
  • Watch it over several days. A short test with one agent tells you little.

Fix 3: count requests with a proxy

If you don't run an OTel stack, point Claude Code at a local proxy that forwards to Anthropic and logs each request. Claude Code reads the base URL from an environment variable:

bash
export ANTHROPIC_BASE_URL=http://localhost:8080

This applies to that shell session only. The port is an example; use whatever your proxy listens on. To undo it, run unset ANTHROPIC_BASE_URL or close the terminal.

With the proxy logging, look for requests that arrive about every 30 seconds from sessions with working background agents, and whose input is as large as the whole conversation. If that pattern is still there after updating, you have something concrete to send Anthropic.

Why tools that read session logs miss these calls

These status calls never appear in Claude Code's session logs. Any tool that estimates cost from those logs cannot count them, however accurate it is for everything else.

That includes ours. Sledbot's Insights view reads local Claude Code logs, read-only, and reports cost as exact or as an estimate from list prices. It breaks tokens down by model, provider, agent and machine over a range you choose (see Insights, Resources and Cleanup). So it covers the logged sessions and does not see agent_summary calls.

If Insights shows a total well below your Anthropic bill, these unlogged calls are one possible reason. List-price estimates can differ from a bill for other reasons too, and Insights can't confirm the cause. For that, use OTel or a proxy.

MethodSees agent_summary calls?SetupGood for
Update to 2.1.311+n/a (fix shipped)Update Claude CodeEveryone
OTel split by query_sourceYesTelemetry export and a place to query itOngoing cost tracking
Proxy via ANTHROPIC_BASE_URLYes (every request)A local proxy that logsChecking request rhythm and size
Transcript-based tools, including Sledbot InsightsNoNoneSession-level cost and activity

Checklist before you decide it's fixed

  • claude --version shows 2.1.311 or later, and which claude points at the install you updated.
  • Every session that was running before the update has been restarted.
  • You compared agent_summary share (OTel) or request rhythm (proxy) over several days, not one run.
  • You know how many background agents typically work at once.

If nothing works

  • Version didn't change. Check which claude, update the install your shell uses, and open a new terminal.
  • No query_source in your data. Check that your exporter sends cost data and that telemetry is enabled in the shell that launches Claude Code. Anthropic's documentation is the reference for the exact setup.
  • The proxy shows no traffic. The variable was probably set in a different shell than the one that launched Claude Code. If you start agents from Sledbot, add ANTHROPIC_BASE_URL=... in the New task page under Advanced ▸ Environment (one KEY=value per line), or export it in ~/.zshrc. Sledbot's Load ~/.zshrc when starting agents setting is on by default.
  • Cost is still higher than expected. We have no confirmed setting that turns the status calls off, so we won't name one. Fewer concurrent working agents means fewer calls.

If the pattern persists on 2.1.311 or later, contact Anthropic support with evidence. Include your Claude Code version, the agent_summary share from OTel or the proxy's request timestamps and sizes, and how many agents were working. A starting message:

text
Subject: agent_summary calls still high on Claude Code 2.1.311+

Claude Code version: (output of claude --version)
Setup: (number of background agents working at once)
Observed: agent_summary is (X)% of spend by query_source over (period),
or requests of about (size) arriving roughly every 30 seconds per working agent.
Already tried: updated, restarted all sessions, checked which claude.
Expected: share close to the ~2% overall figure Anthropic described.

Common questions

Is the 16% figure typical?

Not according to Anthropic, who quoted about 2% overall and 6% in the terminal. The 16.4% came from one user's OTel split.

Does this affect me if I only use one agent?

The report is about background agents that are working, and the call count scales with how many there are. We can't say more about other setups. Measure it with Fix 2 or 3.

Can I see these calls in my session logs?

No. They don't appear there, which is why OTel or a proxy is needed. For other ways to check usage, see how to check Claude Code usage and limits.

Every app.
One purchase.