> ## Content Index
> Fetch the complete content index at: https://www.stirup.si/llms.txt
> Use this file to discover other available public pages before exploring further.

# Claude Code Background Agent Behavior and Computational Impact
- URL: https://www.stirup.si/claude-code-background-agent-behavior-and-computational-impact-94430cea/
- Published: 2026-10-29T06:39:30.000Z
- Updated: 2026-10-29T06:39:30.000Z
- Description: Claude Code transmits background agent transcripts to its model every 30 seconds, accounting for 16.4% of computational spend and 19.7% of API requests, with 96% directed to the Opus model.
- Author: Satish Das
- Tags: Community, News, Stirup Research

## Background Agent Behavior and Frequency

Claude Code regularly sends each background agent’s transcript to its model at intervals of approximately every 30 seconds. This process involves transmitting the full transcript of the agent’s interactions to its associated model, typically Opus, and requesting a concise summary of the agent’s most recent action in 3-5 words. According to internal data, this behavior accounts for 16.4% of Claude Code’s overall computational spend and represents about 19.7% of all API requests, with 96% of that spend directed toward the Opus model. The input-to-output token ratio in this context is approximately 9,000:1\. These figures are based on Claude Code’s internal cost estimation metrics, not actual invoicing data. Specific instances of this behavior have been observed in versions such as 2.1.257 and 2.1.280, with some variations in how the process is handled depending on the context, such as when an agent is at a permission prompt.

## Mitigation and Fix Implementation

Implementing a mitigation strategy for Claude Code involves modifying its behavior to prevent the transmission of background agent transcripts to the model. A script named `no-agent-summary.js` can be preloaded using Bun, a JavaScript runtime, to achieve this. The script is approximately 80 lines long and is designed to skip the summary fork process, which is responsible for sending transcripts to the model. This change ensures that subagents, background agents, forked skills, and background sessions continue to operate normally, while the summary fork is effectively bypassed. To apply this fix permanently, users are directed to follow installation instructions provided in the source. This approach does not interfere with the core functionality of Claude Code but prevents the unintended sharing of agent transcripts with the model.

## Impact and Performance Metrics

Claude Code regularly sends each background agent’s transcript to its model, with significant implications for performance and resource allocation. According to internal metrics, background agents account for approximately 16.4% of Claude Code’s total spend, with 19.7% of all API requests attributed to these processes. Notably, 96% of this spend involves the Opus model, highlighting its central role in handling background tasks. The input-to-output token ratio is approximately 9,000:1, indicating a high computational demand relative to output size. These requests are not recorded in session logs on disk, as noted in internal documentation (#104358), but are visible via OpenTelemetry exports. A recent update (2.1.310) introduces a short mode, reducing the transcript size to about 2,000 tokens, optionally generated by a smaller model. This change may help mitigate performance impacts while maintaining essential functionality.

## Timeline of Feature Rollout and Changes

According to the timeline of feature rollout, Claude Code's background agent transcript summarization was first introduced in version 2.1.32 (Feb 5, 2026), but was not available in public builds. By March 9, it became reachable as an SDK opt-in feature. In April 21, it was available in the interactive CLI, but only behind a fork gate or through a server rollout. Starting with version 2.1.220 (Jul 24), forked skills were always summarized. On August 13, the feature was enabled by default for interactive background agents. By October 14, the summarization interval became server-tunable, ranging from 30 to 240 seconds. The use of the short mode, which is cheaper, was introduced in version 2.1.310 (Oct 23), but it was switched off by default. According to telemetry data, the weekly share of spend for this feature increased from 3.5–7% in July to about 16% by mid-October. The default remains the full transcript, and only server flags can change it. Specific environment variables can disable the feature, but they also disable fork subagents or background agents entirely.

## Verification and Testing Details

Verification of Claude Code’s behavior involves testing specific versions of the software, such as the Linux x64 binary from npm @anthropic-ai/claude-code-linux-x64, which was confirmed to have a sha256 checksum matching the native installer's manifest.json. During live testing with the command `claude -p --model haiku` and the environment variable `CLAUDE_CODE_AGENT_PROGRESS_SUMMARIES=1`, one subagent was observed performing eight steps, each taking approximately 20 seconds, with logging enabled via `--debug-file`. Independent measurements, as noted in reference #86879, report four separate observations of background agent activity ranging from 18–26 %, indicating that this behavior has been measured by multiple parties.

## Sources and reporting notes

- [Hacker News](https://gist.github.com/flamerix-ai/c3905705cc4205e5de3011fa2e74efce?ref=stirup.si)

Based on published source material. No independent hands-on testing is claimed.