A Git-native multi-agent pipeline that builds, reviews, fixes, verifies, and optionally arbitrates code changes before delivery.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install adversarial-code-loop
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install adversarial-code-loop using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Adversarial Code Loop orchestrates a sequential BUILD → REVIEW → (FIX → VERIFY)^N → ARBITER workflow for code that needs independent model review. A developer agent writes and commits the implementation, a separate reviewer inspects the real Git diff, and fixer and verifier roles iterate until findings are resolved or the loop is rejected.
Each run uses an isolated loop/
The skill supports Linux and macOS and requires the adversarial-common sibling repository, which provides the shared subprocess, provider, JSON, and Git engine.
Install the skill and its dependency with:
curl -fsSL https://raw.githubusercontent.com/chpomob/adversarial-code-loop/main/scripts/install.sh | bash
Or install from an existing checkout:
bash scripts/install.sh
Both methods place adversarial-code-loop and adversarial-common side by side under ~/.hermes/skills. Set a custom target with the installer argument or HERMES_HOME.
Run a basic loop with a required specification and project directory:
python3 ~/.hermes/skills/adversarial-code-loop/scripts/adversarial_loop.py \
--spec /tmp/spec.md \
--workdir /path/to/project
Configure model commands with flags or the supported environment variables:
export ACL_DEV_CMD='codex exec --skip-git-repo-check --sandbox workspace-write'
export ACL_REVIEW_CMD='pi --provider zai --model glm-5.2'
export ACL_ARBITER_CMD='pi -p --provider gemini --model gemini-3-pro'
Add build and test gates, bounded retries, and a longer timeout when needed:
python3 ~/.hermes/skills/adversarial-code-loop/scripts/adversarial_loop.py \
--spec /tmp/spec.md \
--workdir /path/to/project \
--feature secure-auth \
--build-cmd 'cargo build' \
--test-cmd 'cargo test' \
--max-loops 3 \
--timeout 1800
Use --no-merge when reviewing the branch manually, and --resume to continue a run from its artifact state. Only ACL_DEV_CMD, ACL_REVIEW_CMD, and ACL_ARBITER_CMD are currently read from the environment; workdir, timeout, loop count, and output directory must be passed as flags. Do not run concurrent loops against the same worktree.
Artifacts are written below
| File | Lifecycle stage | Purpose |
|---|---|---|
| state.json | Git setup | Stores completed phases, loop number, branch, branch-point SHA, stash ID, and findings for resume support. |
| 00_spec.txt | Build | Verbatim copy of the implementation specification. |
| 01_build.json | Build | Build result and commit SHA. |
| 01_build_gate.json | Build gate | Result of the optional --build-cmd command. |
| 02_review.json | Review | Findings array and REQUEST_CHANGES, APPROVE, or REJECT verdict. |
| 03_fix_ |
Fix | Result metadata for each fix round. |
| 04_verdict_ |
Verify | Per-finding resolved, rejected, or disputed statuses and verdict. |
| 05_arbiter.json | Arbitration | Arbiter decision and any recorded conditions. |
| 06_test_gate.json | Test gate | Result of the optional --test-cmd command. |
| final.md | Completion | Human-readable summary and evidence-tag annotation. |
| final.json | Completion | Machine-readable contract containing verdict, reason, loops, branch, merged state, conditions, arbitration status, and artifact directory. |
Review findings use a structured schema with an id, severity of blocker, major, minor, or nit, file, integer line, summary, and evidence. Missing IDs receive deterministic auto_
Git metadata follows a predictable taxonomy: loop/
Loading
Analyzes livestock and poultry images or continuous barn videos to identify aggressive behavior, rate its intensity, and generate alert reports.

Openclaw Skills multi-research delivers multi-dimensional A-share analysis, risk debate, and weighted scoring for faster, more stable investment decisions.

Openclaw Skills provides a free REST API reference for fast, secure integration across AI/ML, payments, and communication services.

Openclaw Skills for fast, enterprise-grade API scaffolding across multiple stacks, DDD, microservices, OpenAPI, and deployment automation.

Session Management gives Claude Code a durable, structured memory system for resuming work, checkpointing progress, closing sessions, and reviewing daily project health.

SocQ SEO Research gives AI agents a reliable workflow for collecting public keyword, ranking, intent, and organic search data.








































