Skip to main content
Glama

Hill Climb for Antigravity

Honest, verifier-backed hill climbing for coding agents.

Hill Climb is an Antigravity plugin (MCP server + interactive MCP App UI + skill + rules + standalone CLI) that pairs two loops:

  1. Inner loop — Locked Repo Climbs (climb.py): Define a locked scoring script, regression guards, and an unseen holdout check. Every candidate edit is measured and automatically committed only on genuine improvement (or reverted cleanly).

  2. Outer loop — Ranked Outcomes & Contracts: Organize work into ranked Goals, Outcomes, and Given/When/Then criteria backed by verifier evidence, human-confirmed contract changes, release roadmaps, and live score charts.

Active climbs in your repository and Antigravity swarm worktrees are automatically tracked into Outcomes by default (with an on/off toggle in the Climbs tab), keeping live trajectories, claims, and verifier evidence in sync without manual bookkeeping.


Features

  • Interactive MCP App UI (hillclimb_open) — available in the Antigravity sidebar, side pane, and inline in chat:

    • Outcomes: Pan-and-zoom tree map, ranked outline, signal filters (verified, unverified, broken, stale, recheck), coverage bar, and 24h / 7d / 30d activity replay.

    • Climbs: Live view of .hill-climb/ runs across the main checkout and linked Antigravity worktrees, with plain-English status banners, progress bars, kept-vs-discarded score charts, holdout scores, event timelines, and a default-on Auto-track Outcomes toggle.

    • Outcome Drawer: Full contract + criteria, ancestor goal briefs, field-by-field change proposal diffs, live score trajectory + candidate lineage DAG + MAP-Elites island grid, verifier evidence ledger (with copy-for-PR export), plans, and comment threads.

    • Verifier Rig Editor: Guided 5-kit configurator (correctness, latency-cost, retrieval, agent-outcomes, tuning), manual repo climb rigs, and optional evolutionary search (hillclimb.sh: greedy, openevolve, gepa, random/optuna) with 4-currency budget previews.

    • Inbox, Roadmap & Flows: Human-confirmed contract approvals, release readiness & scenario comparisons, track promotion previews, and criterion-linked HTML flows with pins.

  • 28 Agent-Facing MCP Tools (hillclimb_*): Repo climbs (hillclimb_setup, hillclimb_status, hillclimb_card, hillclimb_list, hillclimb_log), contract trees (hillclimb_projects, hillclimb_tree, hillclimb_next_outcomes, hillclimb_outcome, hillclimb_act, hillclimb_propose_change, hillclimb_lint_tree, hillclimb_claim, hillclimb_release, hillclimb_plan_write, hillclimb_comment, hillclimb_inbox, hillclimb_add_evidence, hillclimb_set_status, hillclimb_sync), verifier rigs & dispatch (hillclimb_rig, hillclimb_search_start, hillclimb_search_status, hillclimb_search_summit), CI JUnit evidence ingestion (hillclimb_ingest_junit, hillclimb_post_test_evidence), and equal-budget studies (hillclimb_study_preview, hillclimb_study_report).

  • 22-Rule Contract Linter: Catches vague, untestable, or circular outcome contracts before work begins.

  • Standalone CLI (bin/hillclimb): Zero-dependency shell CLI for scripts and CI pipelines.

  • Skill & Always-On Rules (skills/hill-climb/, rules/AGENTS.md): Methodology guides and guardrails enforcing locked checks, human contract ownership, and evidence-backed status.


Related MCP server: relay

Requirements

  • Node.js 22.5+ (uses built-in node:sqlite; unflagged on Node 24+)

  • Python 3 (runs the vendored .hill-climb/engine/climb.py)

  • Git


Installation

dist/mcp-server.mjs, dist/cli.mjs, and dist/app.html are prebuilt and self-contained — no npm install is required to run the plugin.

Option 1: Install into Antigravity directly

git clone https://github.com/MarkLernReBar/antigravity-plugin-hillclimb.git ~/.gemini/config/plugins/hillclimb

Then open Customizations → Plugins in Antigravity (or refresh MCP servers) and enable Hill Climb.

Option 2: Build from source

git clone https://github.com/MarkLernReBar/antigravity-plugin-hillclimb.git ~/.gemini/config/plugins/hillclimb
cd ~/.gemini/config/plugins/hillclimb
npm install
npm run build
npm run typecheck
npm test

Quick Start

1. Open the workspace UI

Open Hill Climb from the Antigravity sidebar (or ask your agent: "Open Hill Climb"). Projects registered in Antigravity are discovered automatically; click + Project to add any local git repository.

2. Start a locked climb in any repository

Ask your agent:

"Set up Hill Climb in this repo and help me build a locked check and climb card for <metric>."

Or run directly from the terminal:

# Install .hill-climb/engine/ and benchmark kits (ignored via .git/info/exclude)
~/.gemini/config/plugins/hillclimb/bin/hillclimb setup --dir /path/to/repo

# Initialize a locked climb
python3 .hill-climb/engine/climb.py init my-climb \
  --goal "Reduce test failures to zero" \
  --check "pytest -q" \
  --direction min \
  --target 0 \
  --lock tests/

# Try edits, keep only improvements
python3 .hill-climb/engine/climb.py try "Fix edge case in parser"

# Read status without re-running checks
~/.gemini/config/plugins/hillclimb/bin/hillclimb status --dir /path/to/repo

Every active climb automatically appears in both Climbs and Outcomes in the Hill Climb UI.

3. Ingest CI test evidence (optional)

~/.gemini/config/plugins/hillclimb/bin/hillclimb ingest-junit \
  --report junit.xml \
  --project <project-id> \
  --dir /path/to/repo \
  --source "https://ci.example.com/runs/123" \
  --apply

Data & Storage

All contract trees, verifier rigs, receipts, and climb links are stored locally in SQLite (node:sqlite, WAL mode) at:

${PLUGIN_DATA}/hillclimb.db
# Default: ~/.gemini/antigravity/plugin_data/hillclimb/hillclimb.db

Nothing is sent to any external server.


Credits & Licenses

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Turns a build or audit target into a graph of claims that a coding agent must decompose and verify bottom-up against evidence, with judgments pinned to git commits and file hashes and findings recorded as issues on the claims they refute. It keeps an append-only, replayable record of every operation, exposes the standing and frontier of the work, and flags stale judgments when cited code changes.
      16 npm
      4
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables any coding model or session to pick up where a previous one left off by keeping handoff state (START / SPEC / DECISIONS / TASKS / LOG) in the repository and projecting each harness's entry files from a single source. It also blocks commits until structural checks and the project's own executable acceptance tests actually pass, providing init, onboarding, session briefing/exit, verification, sync, and task-claim tools.
      1
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to scaffold, verify, audit, and safely modify software projects across 11 technology stacks, with rollback checkpoints, session continuity, and an evidence-based learning loop.
      64 npm
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables coding agents to claim scoped tasks, record test evidence, commit only owned files, and close work only when proof matches the code, while giving humans a console for approvals and unblocking.
      MIT