[BUG] Subagent plan mode conflict

Resolved 💬 3 comments Opened Jul 27, 2025 by nikolaidk Closed Aug 15, 2025

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

  1. Enable plan mode in Claude Code
  2. Run subagent to with instructions to save to file
  3. Let the subagent complete its task
  4. Check the created directory
  5. 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.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗