Skip to content

Commit 72d41f1

Browse files
BryanBorckclaude
andcommitted
feat: add /codex:auto-calling toggle for model invocation (#167)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 60b6f27 commit 72d41f1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
description: Toggle whether Claude can invoke Codex commands programmatically (e.g. from /loop or automated workflows)
3+
argument-hint: '[enable|disable]'
4+
allowed-tools: Bash, Glob, Grep, Read
5+
---
6+
7+
Toggle `disable-model-invocation` on Codex plugin commands.
8+
9+
The argument is `$ARGUMENTS`. If empty, check current state and report it.
10+
11+
Target files: all `.md` files in `${CLAUDE_PLUGIN_ROOT}/commands/` that have `disable-model-invocation: true`: `review.md`, `adversarial-review.md`, `cancel.md`, `result.md`, `status.md`.
12+
13+
## Rules
14+
15+
- **`enable`**: Remove the line `disable-model-invocation: true` from the YAML frontmatter of each target file. This allows Claude to invoke these commands programmatically.
16+
- **`disable`**: Add `disable-model-invocation: true` back to the YAML frontmatter (after the `description:` line) of each target file. This restores the default behavior.
17+
- **No argument**: Read the target files and report whether auto-calling is currently enabled or disabled.
18+
19+
After making changes, report which files were modified.

0 commit comments

Comments
 (0)