/magic-codex:modefrom magic-codex
View or set the magic-codex delegation level (minimal/balance/max). Supports user-global and --project scoped settings.
Ships in magic-codex. Installing the plugin adds it to Claude Code.
What the command file sets; muted values are Claude Code's defaults
If $ARGUMENTS is empty, call the magic-codex MCP tool get_delegation_policy and show the current level, its source (env/project/user/default), and a one-line summary of each level.
Otherwise parse $ARGUMENTS. The first token must be one of minimal, balance, max. Optional flag --project writes the setting to the project repo instead of user-global.
Default behavior — user-global (affects every project for this user):
~/.magic-codex/ directory exists (create it if missing).~/.magic-codex/config.toml with:
[delegation]
level = "<value>"
If the file already exists, preserve any other sections and only update the [delegation] block.<value> (user-global at ~/.magic-codex/config.toml). Affects every project for this user."With --project flag — project-scoped (affects only this repo, team-wide when committed):
git rev-parse --show-toplevel. If not inside a git repo, abort and tell the user to drop the flag to use the user-global form instead.<repo-root>/magic-codex.toml with the same [delegation] block.<value> (project-scoped at <repo-root>/magic-codex.toml). Commit this file to share with your team."Precedence when the MCP server resolves the active level: MAGIC_CODEX_DELEGATION_LEVEL env var > project magic-codex.toml > user-global ~/.magic-codex/config.toml > built-in default (balance).
7-day visitors to each command page
9 commands in this plugin
/cancelCancel a running Codex agent (optionally --force to also remove its worktree)/discardDiscard a terminal Codex agent's worktree and delete its branch/fan-outFan OutFan out multiple Codex implementer agents in parallel, one per subtask or per Linear epic child/mergeMerge a completed Codex implementer's worktree back into its base_ref/resumeContinue a completed/failed/cancelled Codex agent with a new prompt/review-prReview PrSpawn a Codex reviewer agent against a specific PR2 plugins ship this exact command · first indexed Apr 24, 2026
npx claudepluginhub davepoon/buildwithclaude --plugin magic-cc-codex-workerOther plugins' commands for the same job