Wink Pings

Dozens of Claude Code Sessions Run at Once, So the Team Starts by Slimming Down CLAUDE.md

Anthropic’s Claude Code team runs dozens of sessions at the same time, and a single session can run for hours. Lydia Hallie described five changes: slim down CLAUDE.md, add deny rules to auto-approval, sandbox test processes, turn acceptance criteria into tests, and schedule PR reviews by risk.

Anthropic’s Claude Code team now runs dozens of sessions at the same time, and a single session can run for hours. In a talk, Lydia Hallie broke down how the team changes configuration, manages permissions, and validates code. The video has Chinese subtitles, so you can also watch it directly.

These five points come from the talk and may not fit every repository. First, some background: Claude Code reads files and runs commands in the repository. What is written in the project instruction file CLAUDE.md, what permission rules block, and how tests are validated all affect whether it can work with a free hand.

  1. Slim down CLAUDE.md

Let Claude inspect the repository itself for the tech stack and directory structure. Only constraints that it cannot discover by looking are worth writing down, such as which piece of code an older version of the app still depends on. Some users mentioned that after CLAUDE.md grows to hundreds of lines, the model starts ignoring instructions, and having the model inspect the repository is actually more accurate. This point was repeatedly noted in the comments.

  1. Let auto-approval handle everyday commands

Running tests and installing dependencies are decided by Auto mode. Operations such as discarding uncommitted changes or directly reading secrets are blocked with deny rules. One user added: with dozens of sessions running for hours, once permissions are opened up, bills and mishaps are measured in hours.

  1. Sandbox test processes

npm test executes dependency code, so it also needs limits on which files it can read and which domains it can access. User C_C_WU offered a validation method: use a fake secrets file and a test domain to confirm that the test command really cannot read them or connect to it. What the rules say and what they actually block need to be checked separately.

  1. Turn acceptance criteria into tests

When migrating a login endpoint, use a session from before the migration to visit a page that requires login once. Before the task ends, a hook runs the tests; if they fail, Claude is sent back to fix them. Acceptance criteria land on executable tests instead of relying on a person to watch the output.

  1. All PRs go through the same CI, and human review is scheduled by risk

On Lydia’s team, small copy changes can be merged after passing automated checks, ordinary product changes may require one person to review, and high-risk changes may require two. The same CI is the foundation, and human review is increased according to risk.

This set of changes points to one fact: to get an Agent to do more work, configuration should be short, permissions should be clear, and acceptance should be runnable. Slimming down CLAUDE.md and sandboxing tests are especially worth trying first. The former saves context, while the latter prevents npm test from incidentally executing dependency code too. The video is at the beginning; turn on subtitles to see Lydia’s exact words.

发布时间: 2026-11-29 13:26