openai / openai/codex-plugin-cc
feat: promote codex-rescue to ~/.claude/agents/ at setup time to support permissionMode
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 33.3k
- Forks
- 2.3k
- PR merge metrics
- No merged PRs in 30d
Description
Problem
Plugin subagents cannot use permissionMode — Claude Code intentionally ignores it for security reasons. This
means codex:codex-rescue cannot get Bash permission in background mode, where permission prompts are impossible
and auto-denied.
Related bug: #94
Proposed Solution
Update /codex:setup to copy plugins/codex/agents/codex-rescue.md into ~/.claude/agents/ with permissionMode: bypassPermissions added.
Regular agents in ~/.claude/agents/ fully support permissionMode, so the subagent would work correctly in background mode after setup.
Changes needed
scripts/codex-companion.mjs— setup command copies the agent file to~/.claude/agents/codex-rescue.mdwith
permissionMode: bypassPermissionsinjected- Add a version/hash check so re-running
/codex:setupafter a plugin update refreshes the copied file
automatically /codex:setupoutput informs the user the agent was installed to~/.claude/agents/
Tradeoff
Requires the user to run /codex:setup once to get the fix. Anyone who skips setup still has the broken plugin subagent.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in scripts/codex-companion.mjs at the /codex:setup command and inspect plugins/codex/agents/codex-rescue.md as the source file. Implement the setup copy with the requested permissionMode, refresh it when the plugin version or hash changes, and update setup output to report the installation path. Done means rerunning setup installs or refreshes ~/.claude/agents/codex-rescue.md correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- cli, devtools
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 66/100