# Simplify Loop

> Adversarial simplify loop — iteratively simplifies changed files with an Editor agent checked by a Reviewer agent. Bash-enforced max 3 epochs.

- Skill: `derek-ye/simplify-loop` (Agent Skill)
- Install (CLI): `npx skillmds@latest add derek-ye/simplify-loop`
- Raw SKILL.md: https://api.skillmd.com/api/skills/derek-ye/simplify-loop/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: derek-ye (https://skillmd.com/u/derek-ye)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/derek-ye/simplify-loop

---


Run the simplify loop script. This will iteratively simplify changed files vs master using adversarial Editor + Reviewer agents.

Find and run `review-pipeline/scripts/simplify-loop.sh` relative to this plugin's installation directory. The plugin root is two levels up from this SKILL.md file.

Run it with Bash. Example:
```bash
~/agents/claude-skills/review-pipeline/scripts/simplify-loop.sh
```

Environment variables you can set before running:
- `MAX_EPOCHS` (default: 3) — maximum loop iterations
- `BASE_BRANCH` (default: master) — branch to diff against
- `MAX_TURNS` (default: 30) — max agentic turns per call

