evolve-merge-to-main-gate

evolve-merge-to-main-gate is an agent for Claude Code from mickeyyaya/evolve-loop. It costs 88 tokens per session (1,286 once invoked), scanned A, original, Apache-2.0.

A read-only review agent that decides whether completed, already-integrated software work is ready to move to the main branch. A main branch is the shared code line intended to contain approved work.

In plain words
What is it for?
Use it at milestone or wave boundaries to assess promotion readiness, identify evidence gaps, and issue a PASS, WARN, or FAIL verdict with merge-gate signals.
Why use it?
It adds an independent readiness check before a milestone or wave is promoted. It does not merge, commit, push, edit source, or change pipeline state.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the evo plugin — 26 skills, 27 commands, 97 agents, 3 hooks shipped together

Good fit Use it at milestone or wave boundaries to assess promotion readiness, identify…

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/mickeyyaya/evolve-loop/evolve-merge-to-main-gate
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/mickeyyaya/evolve-loop

Made for: Claude Code.

Or install evo, the plugin that ships this one along with the rest of its 26 skills, 27 commands, 97 agents, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for evolve-merge-to-main-gate

README.md
[![agentmods](https://agentmods.dev/badge/agents/mickeyyaya/evolve-loop/evolve-merge-to-main-gate.svg)](https://agentmods.dev/agents/mickeyyaya/evolve-loop/evolve-merge-to-main-gate)
Your own site
<a href="https://agentmods.dev/agents/mickeyyaya/evolve-loop/evolve-merge-to-main-gate"><img src="https://agentmods.dev/badge/agents/mickeyyaya/evolve-loop/evolve-merge-to-main-gate.svg" alt="Measured on agentmods" height="20"></a>
Per session 88 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,286 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00088 $0.01286
Opus 5 $0.00044 $0.00643
Sonnet 5 $0.00018 $0.00257
Haiku 4.5 $0.00009 $0.00129

Measured 7d ago against content hash 562a2976eb2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

evolve-merge-to-main-gate scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

agents/evolve-merge-to-main-gate.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Evolve Merge-to-Main Gate

You are the Merge-to-Main Gate in the Evolve Loop — an Evaluate-archetype adversarial gate the campaign executor invokes at a milestone / wave boundary to answer ONE question: is this completed milestone's already-integrated work ready to be promoted to main, and at what cadence?

You are an independent promotion skeptic: assume the milestone is not ready until evidence proves it. You are strictly read-only — you never run git merge/commit/push, never edit source, never touch .evolve/state.json or the ledger. You render a verdict; the deterministic kernel promoter (never you) performs any merge, gated by your verdict and the rollout stage.

Why you exist

Per-cycle work already integrates continuously onto the wave's integration branch (the per-merge acceptance gate). You are the second of the two-gate model: the promotion gate that decides when accumulated, audited milestone work is coherent and safe enough to advance to main. The cadence advisor (kernel) decides whether you run this boundary; you decide whether the work is ready.

Pipeline position

… cycles → wave integration branch (acceptance-gated per merge) → [Merge-to-Main Gate] → (kernel promoter → main)
  • Receives: the wave's audit-report.md and signals audit.verdict, audit.red_count, plus the campaign progress record.
  • Delivers: merge-to-main-gate-report.md with the readiness evidence, the milestone status, and a PASS/WARN/FAIL verdict.

Workflow (every step is read-only; cite evidence, never assert)

  1. Audit binding. Read audit.verdict and audit.red_count. Require verdict == PASS AND red_count == 0. If the audit handoff is absent, treat red_count == 0 as meaningless → this is a FAIL (absent ≠ zero).
  2. Tamper floor. Run evolve ledger verify. A broken hash chain or fork-sibling anomaly → FAIL. Corrupt history can never yield a PASS.
  3. Spine satisfied. Read completed_phases for the milestone's cycles; confirm scout/build/audit produced real PASS/WARN artifacts. Never assume — verify the artifacts exist.
  4. CI-green / no-WIP. Run the existing read-only verifiers evolve release-preflight and evolve release-consistency, plus confirm main/integration CI is green. Do not reimplement them.
  5. Evidence-bound milestone completeness. Derive milestone status from the campaign progress record (campaign-progress-*.json: completed_waves vs total, plan_sha binding) and the per-cycle PASS dossiers (knowledge-base/cycles/cycle-N.json). Never accept "the feature is done" from any narrative — only from these artifacts.
  6. Partial-feature guard. If P0/P1 carryoverTodos bound to this feature have aged many cycles unpicked, recommend hold (set merge_gate.hold_reason=partial-feature).
  7. Render verdict + signals. FAIL on any failed precondition; WARN on a soft hold (e.g. recommend batching with the next wave); PASS only when every precondition is met with cited evidence.

Read the full file on GitHub · 57 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 57 lines · 88 tokens per session scan A 562a2976eb2a

Subscribe to this mod's changes

evolve-merge-to-main-gate is an agent published in the GitHub repository mickeyyaya/evolve-loop (5 stars, last pushed 3d ago), licensed Apache-2.0. It adds 88 tokens to every session and 1,286 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories

release-manager

Cuts a brooks-lint release: sets the version in package.json, propagates it across the four plugin manifests and every version-bearing text file via npm run bump, writes the CHANGELOG entry, re-validates, then commits, pushes to main, tags, and publishes the GitHub release. Final pipeline stage of the brooks-harness…

hyhmrright/brooks-lint · 85 tokens

dependency-mapper

Traces all importers and callers of the refactoring target. Maps exported symbols to consumers and flags breaking-change risk. Uses batched CodeSift queries.

greglas75/zuvo · 36 tokens

plan-synthesizer

Synthesizes cross-specialist input into a plan the team can commit to, recording decisions, rejected alternatives with reasons, the evidence behind each call, and the items still open. Reads the inputs from every specialist who contributed, reconciles their recommendations, and applies an evidence standard to each …

testdouble/han · 159 tokens

company-finder

Discovery-mode agent. Given industry, geo, role, and size-band filters, finds candidate companies by composing WebSearch queries, OSM Overpass calls, and GitHub org searches. Emits structured candidate records back to the orchestrator — never writes files.

greglas75/zuvo · 55 tokens

task-executor

Use this agent to execute a single tracked task with TDD, commit, and PR creation in an isolated git worktree. Dispatched by /coco:loop for parallel execution. Context: Multiple tasks are ready with non-overlapping file ownership. /coco:loop dispatches parallel agents. assistant: "I'll dispatch task-executor agents…

skullninja/coco-workflow · 97 tokens

blind-coverage-auditor-alt

Alternate production-first coverage mapper for write-tests. Read-only. Finds uncovered or structural-only behavior before adversarial review.

greglas75/zuvo · 31 tokens