From the Inside Claude Code: The Claude Code Ecosystem architecture map

Spend and run length are bounded at the transport

strength · low · verified

max_budget_usd, task_budget and max_turns are passed to the CLI as flags, and Control Protocol Query bounds how long stdin stays open between turns with a 10-minute ceiling (CLAUDE_CODE_PRINT_BG_WAIT_CEILING_MS), so a background agent that never reports idle cannot hold a session open indefinitely.

These limits are enforced by the CLI, so they hold even when the embedding code forgets to stop iterating. The SDK does not check them itself.

The trail

  1. Subprocess CLI Transport
  2. Control Protocol Query
Open on the map

More from this board

© 2026 Syntaxia App Platform Ltd.

Syntaxia App Platform Ltd. Registered in England and Wales, company no. 15272701 Registered office: 3rd Floor, 86–90 Paul Street, London EC2A 4NE, United Kingdom contact@provenmap.com