Isolated Agent Eval
Test agents with auto-approval in isolated containers to evaluate skill behavior and cloud publishing.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/isolated-agent-eval-innei/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Works for every skill.What this command does
- Makes a new, empty temporary folder.
- Downloads the skill's folder,
.claude/skills/isolated-agent-eval, fromgithub.com/Innei/artideck(branchmain), the GitHub repository it's listed from. You get the version that is there now, not a copy we keep. - Copies that folder to
~/.claude/skills/isolated-agent-eval-innei/. - Deletes the temporary folder.
Installing runs none of the skill's files; it only downloads and copies them. When you later use the skill, Claude follows its SKILL.md and may run scripts that come with it. Read them first.
Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Use when an unattended agent session in a test could act on Ryugi Cloud — publish, auto-publish, or use a Cloud sign-in — including writing-skills baseline and with-skill runs and pressure scenarios that use artifacts with `--auto-approve`.
What this skill does
Isolated Agent Eval
An agent with auto-approve runs whatever it decides to. When the run can see a Ryugi Cloud sign-in, that includes publishing to your account: a host-side baseline run once published its artboard publicly. Such runs happen in a throwaway container with no sign-in, writable only to its own output directory.
A run whose Cloud sign-in is already hidden, as tests/skill-bootstrap-eval does with a private XDG_CONFIG_HOME per session, may stay on the host. The recipe below runs the OMP CLI; there is no container recipe for Claude Code, Codex or other harnesses, and none is planned.
Setup, once per session
S=.claude/skills/isolated-agent-eval
docker build --build-arg OMP_VERSION="$(omp --version | cut -d/ -f2)" -t ryugi-agent-eval:local "$S/docker"
python3 -I "$S/provider-config.py" deepseek "$SCRATCH/secrets/models.yml"
$SCRATCH is your session scratchpad, outside the repository. The container gets that one provider and its key, never ~/.omp.
Then smoke-test before the first real run, and read the output:
mkdir -p "$SCRATCH/empty"
bash "$S/run.sh" --fixture "$SCRATCH/empty" --out "$SCRATCH/runs/smoke" --models-yml "$SCRATCH/secrets/models.yml" \
--prompt "Start the ryugi artifacts server for artboard/smoke and reply with the Open link it printed."
Pass when status ends done, env.txt names the model, and the last message of turn1.jsonl carries an Open: http://localhost:… link. Anything else is an infrastructure failure; fix it before running scenarios.
A run
bash "$S/run.sh" --fixture "$SCRATCH/runs/<arm>-<case>-<rep>" --models-yml "$SCRATCH/secrets/models.yml" \
--prompt "<task>" --turns 3 [--next "按推荐,继续"] [--plugin < dir > --out < checkout > ]
- Each run gets its own
--out. Run several in parallel as background jobs, at most Docker's memory divided by--memory(3g). --outholdsstatus,env.txt,turnN.jsonl,turnN.err,after-turnN.txt(git statusafter each turn),repo/(the fixture after the run, with.ryugi/),sessions/andcontainer.log.--resume <run dir>instead of--fixturecontinues that run's session and repo in a new--out;--promptis the next turn's message. To test one turn many times, run the turns before it once with--turns 1and replay from that run. The source run is mounted read-only and never changed.--pluginis the checkout whose skills are under test; default this repository. It is mounted read-only but live: edits to it change what running agents read. Give each arm its own worktree (git worktree add .worktrees/eval-baseline <rev>) so baseline and candidate can run at once. A worktree has no gitignored local artifacts build, so its runs use the npm release.- Symlinks in the checkout pointing outside it (a local
ryugi-cloudbuild) are mounted read-only at their own paths automatically. - The container has no Ryugi Cloud sign-in, so nothing is published.
Rules
- A session that could act on Ryugi Cloud does not run on the host with your sign-in visible. Not for "just one quick check".
- Never mount a home directory,
~/.omp,~/.claude,~/.ryugior a credentials file other than the provider config. run.shruns from a private copy, so editing it mid-run is safe. Anything else a run executes from the host (your own batch script, a scorer it calls) is not: never edit or format it while runs are in flight. The Dockerfile andentrypoint.share baked into the image at build; rebuild before the next run, not during one.- Never
exportvariables in a persistent shell to isolate something; they leak into every later command. - When done: delete
$SCRATCH/secrets, and checkdocker ps --filter name=agent-evalis empty. - In the eval record, name the image (
env.txt) and say the runs were containerized.
Red Flags
| Thought | Reality |
|---|---|
| "I'll give each run its own server home and port on the host" | One host run still published its artboard publicly to Cloud; another deleted ~/.ryugi/server/start.lock. |
| "I'll fix the runner script now; the runs already started" | The running scripts read the new file and broke mid-run. Wait, or copy to a new name. |
| "Formatting the skill folder doesn't change behaviour" | prettier --write rewrote a running script and five runs hit unexpected EOF. A formatter is an edit. |
"Mounting ~/.omp is simpler than extracting the provider" | It hands every key and session on the machine to an agent with auto-approve. |
| "The checkout is read-only in the container, so I can edit it" | Read-only to the container, live to it too. Agents read your edits mid-run. |
Related skills
Documentation Co-Authoring
anthropics
Guide structured workflows for writing docs, proposals, and technical specs collaboratively.
MCP Server Builder
anthropics
Build protocol servers that connect language models to external APIs and services.
Skill Builder & Optimizer
anthropics
Create, edit, and optimize Claude skills with performance testing and benchmarking.
Multi-Component Web Artifacts
anthropics
Build complex React artifacts with Tailwind CSS and shadcn/ui components.