anthropics / anthropics/claude-code
[FEATURE] Request: Require user confirmation before spawning expensive agents
- Dominant language
- Python
- Stars
- 145k
- Forks
- 23.1k
- PR merge metrics
- PR metrics pending
Description
### Preflight Checklist
- [x] I have searched [existing requests](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20label%3Aenhancement) and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
### Problem Statement
Problem
There is currently no gate between a model deciding to spawn agents and actually doing it. The model picks the agent count, the agent model, and fires — no confirmation, no budget estimate, no limit.
This has real cost consequences:
• My case: Fable 5.1 in a Claude Code Remote session created a send_later loop checking a draft PR every hour for 3.5 days — 84 wake-ups, 6 tool calls each, zero useful output. The weekly Fable limit was burned to 100%. The user did not request monitoring. The PR had no CI and no reviewers — every cycle was guaranteed empty.
• Reddit report: A user asked Fable to do research. Fable spawned 75 Fable-tier agents in under a minute. The account was locked.
In both cases the user did not ask for this behavior and had no opportunity to stop it before the damage was done.
### Proposed Solution
Proposed solution
Before any agent spawn that uses a premium-tier model (Fable, Opus), require an explicit confirmation step showing:
1. How many agents will be created
2. Which model each agent will run on (and its relative cost tier)
3. Estimated budget impact — approximate % of the user's weekly plan limit this will consume
The user confirms or cancels before anything runs. This is the same pattern as in-app purchase confirmation — you don't charge without asking.
For send_later loops specifically: a visible cap on total iterations (or total cost) before the chain self-terminates, even if no one is watching.
### Alternative Solutions
_No response_
### Priority
High - Significant impact on productivity
### Feature Category
Performance and speed
### Use Case Example
1. User opens a Claude Code Remote session and asks a simple setup question about Apple Watch data collection.
2. Claude (Fable 5.1) answers the question, then autonomously decides to "monitor" a draft PR the user never asked it to watch.
3. Fable creates a send_later wake-up for 1 hour later. That wake-up fires, runs 6 tool calls (check PR status, check CI, check reviewers — all empty), finds nothing, and schedules another send_later for 1 hour later.
4. This chain runs every hour for 3.5 days — approximately 84 cycles, ~500 tool calls total. The user is asleep or away and has no idea.
5. The PR has no CI pipeline and no reviewers. Every single cycle is guaranteed to find nothing. The model never stops.
6. By the time the user notices, their entire weekly Fable limit is at 100%. Had usage credits been enabled, this would have been real charges at Fable's $10/$50 per MTok rate — with no confirmation and no receipt.
7. The user has to manually switch the session to a cheaper model (Opus) to break the loop, because there is no kill switch, no iteration cap, and no budget gate.
With the proposed feature: At step 3, the user would see: "I'd like to monitor this PR hourly. This will use Fable 5.1 (~X% of your weekly limit per cycle). Approve?" The user says no. Done.
### Additional Context
Why this matters now
Fable at $10/$50 per MTok is 2x–5x other models. An uncontrolled agent swarm or monitoring loop on Fable burns weekly limits (or real money via usage credits) at a rate that makes the subscription model untenable. Users who have usage credits enabled would face actual billing with no confirmation step — that is not a bug, that is a liability.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue names no implementation files, tests, or entry points; start by locating agent spawning and send_later handling in the Claude Code codebase. Done means premium-tier agent creation requests show count, model, estimated budget impact, and a confirmation or cancellation step, with a cap for send_later loops.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- ai, cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100