-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Summary
When running opencode from inside the pai-opencode repository directory, after each prompt it spawns a large number of claude processes, quickly saturating CPU and making macOS unresponsive (often requiring a reboot). This does not happen when running opencode from other directories on the same machine.
This looks like something in this repo’s configuration / integration triggers repeated Claude CLI invocations.
Environment
- OS: macOS
- CPU arch (Apple Silicon / Intel): ARM
- macOS version: 26.2
pai-opencodeversion/commit: 1.2.1opencodeversion: 1.1.53- Installation method for
opencode: brew - Related repo:
Steps to reproduce
- Clone and setup this repo:
git clone https://github.com/Steffen025/pai-opencode cd pai-opencode bun run .opencode/PAIOpenCodeWizard.ts - Start
opencodefrom the repo root:opencode
- Enter any prompt (even a short one like “hi”) and submit.
- Repeat with 1–2 more prompts.
Expected behavior
opencodehandles each prompt normally without spawning an unbounded number ofclaudeprocesses.- CPU usage remains stable/usable.
Actual behavior
- After each prompt submission, many
claudeprocesses appear and accumulate. - CPU quickly spikes toward 100% across cores, the system becomes sluggish/unresponsive, and recovery sometimes requires a reboot.
Frequency
- 100% reproducible when launched inside
pai-opencoderepo root. - 0% reproducible when launched from other directories on the same machine.
What I already tried / additional observations
- Setting
export OPENCODE_DISABLE_CLAUDE_CODE=1does not help. - Renaming
~/.claudedoes not help. - After renaming
~/.claude,opencoderecreates a.claudefolder and adds a project named:-Users-Wojtek-repos-pai-opencode
Notes / suspicion
Because the behavior depends on the working directory, it may be triggered by something in this repo (e.g., config files, hooks, or integration that causes repeated Claude CLI invocations). Any idea what might happen?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels