Ultragoal

Autonomous goal loops for coding agents

Ultragoal

June 2026

View on GitHub

Tell Claude what you want once. It works until the job is verifiably done, and it gets smarter every time.

The problem

Raw agent sessions make you the quality control. Long tasks drift, every new session starts from zero, and an unattended loop without a budget can run forever.

The blind spot

Ask a model if it's done and it says yes while the tests fail. It isn't lying; a model grading its own work has the same blind spot every author has. The fix is structural, not a better prompt: maker and checker must be different minds.

How it works

Brief to rubric to work to verify, looping until the rubric passes.

Consult. Reads memory and scans your repo before asking anything.

Interview. Asks only the decisions that actually steer the outcome.

Spec. Turns the brief into a rubric of exact, checkable commands.

Arm. Gates the loop to a goal file that survives restarts.

Work. The rubric comes back every turn, so the agent can't stop early.

Verify. A fresh-context agent re-runs every check and tries to refute the claims.

What's inside

Rubric-gated loop. Progress is blocked until every item is checked with evidence from a real command, never vibes.

Fresh-context verifier. An independent subagent that never saw the worker's reasoning re-runs the checks and tries to prove the work wrong.

Persistent goals. State lives in a git-committed file, so a goal survives sessions, /clear, and days away.

Memory that compounds. Verified facts, working patterns, and dead ends are distilled after every goal. Every run starts smarter.

Use it for

Optimization that can't regress. Baselines the metric, keeps only real improvements, and reverts anything that makes it worse.

Migrations, end to end. Survives /clear and restarts, and won't call it done until every call site is gone.

Bugs fixed for real. The fix has to survive a fresh-context verifier trying to refute it.

Backlogs while you sleep. Works turn after turn unattended within a set budget, gated so it can't fake progress.

Get started

npx ultragoal

One-time install. Works with Claude Code and Codex today.

/ultragoal:goal <your messy brief>

Start a goal inside the editor. A ramble is fine.

View on GitHub

this site is a work in progress