[BUG] Subagent plan mode conflict
Environment
- Platform (select one):
- [x] Anthropic API
- [ ] AWS Bedrock
- [ ] Google Vertex AI
- [ ] Other: <!-- specify -->
- Claude CLI version: 1.0.61 (Claude Code)
- Operating System: macOS Darwin 24.5.0
- Terminal: <!-- Please specify your terminal app -->
## Bug Description
Subagents does not save any files to its designated storage directories when running in plan mode, despite creating the directory structure and completing its task.
## Steps to Reproduce
- Enable plan mode in Claude Code
- Run subagent to with instructions to save to file
- Let the subagent complete its task
- Check the created directory
- Observe that the directory is empty with no saved files
## Expected Behavior
Would expect it to save file
## Actual Behavior
- The agent completes its task successfully
- No files are saved to any directories
## Additional Context
This appears to be a conflict between plan mode restrictions and the subagent's file-saving functionality. Plan mode prevents all write/ update operations, but the subagent is designed to persist its findings for future reference and to prevent redundant work. This creates a situation where the agent cannot
fulfill its documented purpose of caching findings when operating in plan mode.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗