Rye supervision workbench
Wrap agents
Launch Claude Code, Codex CLI, and other coding assistants through Rye so traffic, policy, and audit events are connected.
Why wrapping matters
AI coding agents read environment variables, load local configuration, open files, run commands, and call model APIs. Wrapping starts the agent under Rye supervision from process launch time, when proxy variables and trust settings matter most.
Wrap common CLIs
Start Claude Code through Rye:
rye wrap claude
Start Codex CLI through Rye:
rye wrap codex
You can also install app shims for repeated use:
rye app wrap claude
rye app wrap codex
The install script already creates these shims when the tools are present. If you install an agent later, run rye app wrap for it.
Shims live in ~/.rye/shims. That directory must precede the real agent executable on PATH. Open a new terminal after installation, or update the current shell:
export PATH="$HOME/.rye/shims:$PATH"
After PATH is updated, the normal claude or codex command starts under Rye supervision. Proxy and CA environment variables are injected into the wrapped process and inherited by its children.
Inspect or disable shims
rye app list
rye app doctor
Remove wrapping for an app:
rye app unwrap claude codex
To skip shims during installation:
curl -fsSL https://barn.rye.ai/install.sh | sh -s -- --no-wrap-agents
Unwrapping removes the shim; it does not uninstall the agent or stop the Rye daemon.
Verify traffic
Use:
rye history --last 1h
rye status
You should see recent model traffic, process attribution, device identity, and policy decisions.
What wrapping does not do
Wrapping does not replace the agent's own permission model. Claude Code, Codex, Cursor, and other tools may still ask for local approvals. Rye sits outside those controls and gives the organization a separate enforcement and audit path.