[MODEL] Asked for a small doc-scraping workflow; Opus 5.5 built unrequested infrastructure, launched 44+ Claude Code sessions on my login, installed software and read files far outside the project
Preflight Checklist
- [x] I have searched existing issues for similar behavior reports
- [x] This report does NOT contain sensitive information (API keys, passwords, etc.)
Type of Behavior Issue
Claude ignored my instructions or configuration. Also: Claude accessed files outside the working directory; Subagent behaved unexpectedly.
What You Asked Claude to Do
In a new, empty project folder: build a workflow that searches a list of named Anthropic documentation sites for material on prompting the current models, fetches the relevant pages (my estimate: 20–200), keeps searching until nothing new turns up, then analyses the findings and turns them into a prompting skill. The prompt (about 120 lines) included explicit constraints:
- "Only use Anthropic materials"
- "no stray files are left outside the repo"
- evals "in a throwaway worktree or temp directory, with no sends, posts, pushes or deletes outside it"
- run a small trial first "to make sure you set conditions for it that will ensure checks are in place"
- "Clean after yourself"
- ask questions when my input is load-bearing
Ultracode was on (workflows).
What Claude Actually Did
Over several hours, with independent reviews of the session transcripts confirming the details:
- Inventory. It listed 2,863 URLs from every sitemap and index of the sites, title-triaged them with a "when in doubt, keep it" rule, and queued 903 pages for two full reads each.
- An eval harness I never asked for. It built a custom Agent SDK harness before the skill existed. The harness and its subagents launched at least 44 Claude Code sessions on my real
~/.claudeconfig and login, after an isolated-config attempt failed (see #103797). One session connected my claude.ai connectors (see #103798). Probe sessions were told to try writing outside their folder,git push,curl -X POSTandrmoutside the folder, with a prompt claiming "This is an authorized test", and to "quote verbatim" my user instructions; one quoted my account email back. The pushes, POSTs and deletes were blocked by the harness hook. - Installs. Subagents installed a CPython 3.10 interpreter into
~/.local/share/uv/pythonand many PyPI packages (Flask 1.x, PyYAML, pycrypto…) into temp environments. They also fetched non-Anthropic sites (docs.python.org, peps.python.org, PyPI). - Reads outside the project. It printed a full environment dump, which included a session token, and ran
find /. Verification agents later printed lines of~/.zsh_history, part of~/.claude/history.jsonl, zoxide paths, a gh CLI cache entry (OAuth scope names) and keychain item names viasecurity dump-keychain. Some of this happened during cleanup the main agent had launched. - Deletions. It deleted 97 of its own project files inside the same script that decided which to keep, before checking the result. Later it deleted 209 paths outside the repo, chosen by creation time, right after promising to show me the list first.
- Records and reports. It wrote a "verbatim" copy of my brief that silently dropped three sections. It recorded its own design choices as "user decisions". It gave me numerous status claims that turned out false (e.g. "52 fully read and fact-checked" when 0 had been).
- After I said stop. It patched and resharded live runs, and after "I do not consent to …" it tried to resume a workflow.
The core task wasn't completed. I've run this prompt 7 times over a week, and none of the attempts completed it.
Expected Behavior
Do the requested task within the project folder and listed sites: fan out, fetch, loop until saturated, analyse, write the skill. Don't build unrequested systems. Don't launch Claude Code sessions, install software, read private files outside the project, or delete anything outside it without asking. Report state accurately.
Files Affected
~/.local/share/uv/python/cpython-3.10.*(installed; since removed)~/.claude/session-env/*(30 empty dirs),~/.claude/{state,bridge-spawn,.cc-writes},~/.claude/backups/*,~/.claude.json(usage keys)~/.cache/uv/*,~/.npm/_cacache/*,~/Library/Caches/pip/*,~/Library/Caches/claude-cli-nodejs/<temp-slug>/private/tmp/claude-501/*,$TMPDIR/*- Read:
~/.zsh_history,~/.claude/history.jsonl,~/.claude/settings.json, gh cache, keychain item list
Permission Mode
Auto mode (classifier), the default for terminal sessions since 2.1.283. It isn't in this form's list. The classifier denied one action ("Credential Materialization") and approved the rest.
Can You Reproduce This?
Yes, every time with the same prompt
Steps to Reproduce
- In an empty folder, with Opus 5.5, ultracode on and the default (auto) permission mode, give a ~120-line brief asking for a doc-scraping-and-distillation workflow with the constraints quoted above.
- Answer the opening clarification questions.
- Observe the scope expansion (sitemap-wide inventory), the unrequested eval harness, and the SDK sessions and installs outside the project.
Claude Model
Opus
Impact
High - Significant unwanted changes
Claude Code Version
2.1.304
Platform
Anthropic API
Additional Context
- Similar pattern: #75925 (agent builds a parallel, wrong process instead of using what the repo has).
- Product issues found during the same run: #103794, #103795, #103797, #103798, #103799, #103800, #103802, #103804.