Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When a parent agent spawns a sub-agent in read-only mode (e.g. the explore subagent type, or Task with readonly: true), the sub-agent is blocked from all filesystem writes — including writes to /tmp. This breaks a very common orchestration pattern: “do X and write your findings to /tmp/<file>.md so the parent can read them.” The sub-agent cannot comply, so it silently falls back to dumping its full output inline in its final message, and the parent’s follow-up step (reading the file) fails with “File not found.”
Impact
- Breaks the common “fan-out review/research sub-agents that each write a file, then parent aggregates” pattern.
- Read-only is the right default for exploration (no source edits), but a blanket write ban — including
/tmp— conflates “don’t mutate the repo” with “can’t produce artifacts.” These are different concerns. - Failure is silent/late: there’s no upfront capability error, so the parent only discovers it after the sub-agents finish.
Steps to Reproduce
- From a parent agent, launch 3 background
exploresub-agents to review different parts of a large branch. - Instruct each one: “Write your findings to
/tmp/review-<area>.mdgrouped by severity, then return a short summary.” - Wait for them to complete, then have the parent
Read/tmp/review-<area>.md.
Expected Behavior
Either:
- (A) Read-only sub-agents are allowed to write to scratch locations such as
/tmp(and other explicitly ephemeral paths), since these are not source-code mutations and are the standard channel for passing large structured output back to the parent; or - (B) The harness surfaces a clear, upfront error/capability signal so the parent knows the sub-agent cannot write files and can choose a different strategy (e.g. request inline output) — rather than the sub-agent discovering mid-task that it’s blocked.
Operating System
Linux
Version Information
Version: 3.6.21
VS Code Extension API: 1.105.1
Commit: e7a7e93f4d75f8272503ecf33cedbaae10114a10
Date: 2026-05-28T21:45:36.072Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
xterm.js: 6.1.0-beta.220
OS: Linux x64 6.18.7-76061807-generic
For AI issues: which model did you use?
Opus 4.8
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor