# Code Review & Merge Approval for Coding Agents

> Code review and merge approval for coding agents. Each change gets an issue with criteria, a git worktree, a separate subagent review where supported, and a run of your tests. The agent is told to merge into main only after your clear approval. Written instructions, not enforced code.

Code Review & Merge Approval for Coding Agents is a free AI agent skill on Agensi by why2on, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [why2on](https://www.agensi.io/creators/creator-1472)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/code-review-merge-approval-for-coding-agents
- Tags: ai-agents, code-review, automation, git, workflow-automation, subagents, git-worktree, merge-gate

## About this skill

Ask for several changes at once and you lose track of what was done. An hour later you cannot tell what your coding agent actually did, what was checked, or why main changed. Or you reply "Looks good." and the work is merged before you meant it to be.

With this skill, your agent writes each change down as an issue with criteria you can check, hands it to a worker on its own git worktree, gets a code review (by a separate subagent where supported), runs your tests, and is told to merge into main only after you approve clearly. Instead of scrolling back through a chat, you open the record and decide.

Free until December 15, 2026 as a launch promotion. The regular price is USD 9.98; after the promotion, continued use requires buying it.

### Problems it addresses

A casual reply can be read as approval. In our tests, replying "Looks good." led to a merge in 2 of 3 runs without this skill and in 0 of 3 with it.

A rejected task can keep being retried. Starting after three rejections, work stopped in 3 of 3 runs with the skill and continued in 3 of 3 without it.

It is hard to check afterwards what happened. Without the skill there were no issue, verdict or status files in our runs.

### What you get

- Issue files under docs/issues/, each with a "criterion / how to check" table, and a status file.
- A branch and working tree per issue, with dependent issues stacked in order.
- A verdict file per review, tied to one commit hash.
- Your test command run on the combined result, then a final report with the decisions left to you.
- Light mode for one small change, full mode for several dependent ones.

### Who should use it

Developers who let a coding agent work on a git repository and want a written record and a clear merge step. You need git, a main branch, and a command that runs your tests. Parallel workers and independent review need subagent support.

### Read before using

- Everything is written instructions: no hooks, scripts or enforcement code. A model can skip a step.
- It costs more than working without a skill. A two-issue job took about 3.8 minutes against 2.1, at a list-price estimate of USD 0.57 against USD 0.37.
- We do not claim it finds more bad work than a capable agent does on its own.
- Tested on Claude Code 2.1.332 with claude-sonnet-5-5 on Windows 11, using small Node.js sample projects. Run counts are 3 per check and 5 for speed and cost. Other agents and systems are not tested.

### Where it comes from

This skill, Terrarium_IF, is the issue-flow part of the open-source Terrarium project on GitHub, rewritten as one portable text file. If you want enforcement by code and the full desktop app, use that project.

## Requires

- Git
- A command that runs your project's tests
- A git repository with a main branch
- Optional: Subagent support

Subagent support enables parallel workers and independent review; without it one agent does every role and marks the review "not independent". Creates a sibling folder ending in -worktrees, and records in docs/issues/. Tested on Windows 11 only.

## Known limitations

Instructions only: no hooks, sandbox or enforcement code, including the rework stop and merge approval rules; a model can skip or misread a step. The reviewer is also a model and can be wrong. Costs more time and tokens than working without a skill. Secret redaction relies on the model, so check docs/issues/ before sharing. "CI" means your own test command; no GitHub Actions or pull requests. Resuming a half-finished flow had mixed test results. Long sessions with context compression were not tested.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Code Review & Merge Approval for Coding Agents skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How is this different from just asking an agent to write code?

It gives the agent a written process: issue files with completion criteria, a worker per issue, a separate review, your test command on the combined result, and a merge only after clear approval. In our tests the same model without the skill was already good at catching failed checks, so we do not claim it finds more bugs. The difference is the fixed rules and the paper trail. It takes more time and tokens.

### Which agents are supported?

Tested only on Claude Code with claude-sonnet-5-5 on Windows 11, with some checks on claude-haiku-5-5. It is plain text, so other agents that can run git and read and write files may work, but we have not tested them.

### What do I get?

One text file (SKILL.md) with the instructions, file formats, and worker and reviewer briefs. No app, hooks or scripts.

### Can I use my own test setup?

Yes. The agent runs the test command your project uses. Our tests used small Node.js projects only; other test tools were not tested.

### Does it open pull requests or use hosted CI?

No. It works with local git branches and worktrees. "CI" here means your own test command run on the combined result. No GitHub Actions or pull requests.

### Can it resume an interrupted session?

It keeps a status file you and the agent can use as a guide, but resuming is not promised: results in our resume test were mixed. Check the status file and branches yourself.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
