openai / openai/codex-plugin-cc

feat: promote codex-rescue to ~/.claude/agents/ at setup time to support permissionMode

Open
#101 0 comments 0 reactions 0 assignees View on GitHub

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
  1. scripts/codex-companion.mjs — setup command copies the agent file to ~/.claude/agents/codex-rescue.md with
    permissionMode: bypassPermissions injected
  2. Add a version/hash check so re-running /codex:setup after a plugin update refreshes the copied file
    automatically
  3. /codex:setup output 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.