GitHub issue anthropics/claude-code#4462, created 2025-07-25 by RGCsAGupta and titled "[BUG] Sub-agents claim successful file creation but files don't persist to filesystem", reports a first-hand systematic test on Claude Code 1.0.61, macOS (Darwin 24.5.0), Node v24.4.1, in a Next.js with TypeScript project: sub-agents spawned via the Task tool report successful file creation using Write/Edit/MultiEdit tools, but the files do not actually persist to the filesystem. The reproduction asked a project-business-analyst sub-agent to create 'agent-file-test.md', the agent reported success, and external verification with ls and find showed no file; the same failure occurred for business-analyst-developer and business-writer sub-agents, while a direct Write call by the main Claude instance created and persisted the control file. The reporter notes the first invocation occasionally works and subsequent invocations consistently fail to persist, while the agent always reports success regardless of outcome, and lists related issues #4182, #3978 and #3408.
Verbatim Excerpts from Cited Records
“Sub-agents spawned via the Task tool report successful file creation using Write/Edit/MultiEdit tools, but the files do not actually persist to the filesystem. This creates a critical inconsistency where agents confirm success but no file changes occur.”
·
anthropics/claude-code (GitHub issue 4462, Summary section)
·
2025-07-25T23:01:26Z
·GitHub Issue ↗
“When a sub-agent uses the Write tool to create a file, the file should be created on the filesystem and be visible in directory listings.”
·
anthropics/claude-code (GitHub issue 4462, Expected Behavior section)
·
2025-07-25T23:01:26Z
·GitHub Issue ↗
“Sub-agents report successful file creation with detailed confirmation messages, but external verification shows no files were created. The agent's response often includes mock directory listings showing the file exists, but filesystem checks confirm it doesn't.”
·
anthropics/claude-code (GitHub issue 4462, Actual Behavior section)
·
2025-07-25T23:01:26Z
·GitHub Issue ↗
“This was discovered during systematic testing of project-level agent capabilities. The issue affects both project-specific agents (`.claude/agents/`) and global agents (`~/.claude/agents/`). The inconsistency suggests a fundamental issue with sub-agent execution context rather than a configuration problem.”
·
anthropics/claude-code (GitHub issue 4462, Additional Context section)
·
2025-07-25T23:01:26Z
·GitHub Issue ↗
Counter-record: The issue is a single reporter's first-hand systematic test at origin, not an independently reproduced result: it describes one author's own Task-tool tests on a single macOS machine. The issue remains open as of 2026-11-26 (last activity 2026-11-26T08:34:33Z) with 40 comments; multiple users corroborated the symptom (jchavannes, jakewhelan, aoezdTchibo, aspiers, laspencer91, MattStarfield, mbrk, evgeny-l, thevictor13, spalladino, Jodre11, GFrierson), and several reported it still reproducing into 2026-04 and 2026-05, while others reported workarounds or fixes: the reporter said the system terminal worked on 2025-08-01, jchavannes said a new agent fixed it temporarily, and dblazeski and ebullion pointed to comma-separated tools lists in agent YAML frontmatter. On 2025-08-09 github-actions[bot] flagged three possible duplicates (#5178, #5405, #5263) with an automatic-close notice, but the issue is still open. No maintainer response is visible among the 40 comments surveyed. The four possible root causes listed in the report (execution context isolation, session lifecycle, permission model, tool implementation) are the reporter's unconfirmed hypotheses. The claim documents only the original report, not a verified current state of Claude Code.
Falsification probe: If GitHub issue 4462 is closed as fixed, as a duplicate, or as not planned, if the reporter edits the issue body so the quoted sentences no longer match verbatim, or if the reporter posts a retraction of the report, this claim drops to Withdrawn.
Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by
scripts/verify_claim_verbatim.py.