Plan Mode: Prevent Unnecessary Token Consumption During Subtask Planning

Resolved 💬 3 comments Opened Aug 2, 2025 by non-stop-dev Closed Aug 15, 2025

Bug Description
DUring plan mode, when I call agents for a more specialized investigation and precision, agents try to execute tasks and they spend tokens designing that execution only to fail because they are in Plan Mode. I´d like that plan mode context is passed to agents so they do not spent tokens creating Jira tasks, or trying to modify code.

Environment Info

  • Platform: darwin
  • Terminal: windsurf
  • Version: 1.0.67
  • Feedback ID: cbfef2db-f566-45b0-a2de-72cade7fb1fa

Errors

[{"error":"Error: Command failed: security find-generic-password -a $USER -w -s \"Claude Code\"\nsecurity: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.\n\n    at genericNodeError (node:internal/errors:983:15)\n    at wrappedFn (node:internal/errors:537:14)\n    at checkExecSyncError (node:child_process:882:11)\n    at execSync (node:child_process:954:15)\n    at t7 (file:///Users/leonardoleon/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:867:5214)\n    at file:///Users/leonardoleon/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:48453\n    at Q (file:///Users/leonardoleon/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14418)\n    at lJ (file:///Users/leonardoleon/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:45891)\n    at yz (file:///Users/leonardoleon/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:44758)\n    at W9 (file:///Users/leonardoleon/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:776:51079)","timestamp":"2025-08-02T15:04:24.684Z"}]

View original on GitHub ↗

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