Repository navigation
docs: the 5-file PR cap is for headless agents only; headed agents have no cap - #8899
Merged
Merged
Conversation
…ve no cap Owner ruling 2026-11-21. A new rule, .claude/rules/pr-file-cap.md, says which agent follows which: headless (churn workers, unattended sessions, anything launched with no person in the loop) keeps a PR to at most 5 hand-written files, as before and data-driven from squid-bot's PR-size dashboard; headed (a person is working with the agent) has no file cap and should structure the PR for clarity. The worker brief now opens its cap bullet by saying it binds headless workers (the pinned wording of #8422 is unchanged), and CLAUDE.md and AGENTS.md carry the same one-paragraph statement and the pointer. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018srRvejJbzNR67xR3D2VxV
Contributor
|
No description provided. |
Contributor
Contributor
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this does
Makes the file-cap rule unmistakable for every agent that works in this repo. The owner's ruling (2026-11-21): the "at most 5 hand-written files per PR" cap is for headless agents only; headed agents (a person working with them) have no cap.
.claude/rules/pr-file-cap.md: a two-row table (headed / headless), how to tell which you are (no human has written to you in the session means headless; unsure means ask), why the cap exists (data-driven from squid-bot's PR-size dashboard: the share of PRs needing a fix run climbs past five files, about 50-58% at 6, 7 and 8+ against about 36% at five), what still applies to headed agents (one coherent change, lint and ratchets, draft PRs, no merging without the owner), what still applies to headless agents, and a note for agents that launch other agents (an agent you start with no human channel is headless: put the cap in its brief)..claude/agents/gitgalaxy-pr-worker.md: the cap bullet now opens by saying it binds headless workers and points to the rule. The wording pinned bytests/tools/test_file_cap_grant_wording_8422.pyis unchanged.CLAUDE.mdandAGENTS.md: the same short statement and the pointer.Checks run
test_file_cap_grant_wording_8422, doc-refs audit (0 findings),test_change_classifier,test_generated_branch,audit_check.py: all pass.Agent-config change: the owner asked for it, but a maintainer should read it before it merges.
🤖 Generated with Claude Code