Minimise

Deterministic control flow around non-deterministic workers.
Minimise is a CLI that runs your coding agent unattended. You describe the work as a
file in your repo; minimise executes it step by step, each step in a fresh session,
with hooks that can block or retry. It brings no agent of its own — it shells out to
an agent CLI you already have (Claude Code
by default, pi, or
OpenAI Codex).
There are two ways to leave an agent alone: give it a plan, or give it a rubric.
Two modes
| Job | Loop |
|---|
| You know | the steps | what "good" looks like |
| You supply | a plan (ordered tasks) | a goal + evaluation rubrics |
| It prevents | drift, skipped steps, premature "done" | wandering, stopping early, no standard |
| It ends when | the last task commits | the planner judges the goal met |
| Think of it as | a CI pipeline | eval-driven search |
Know the steps? Use a Job. Only know what good looks like? Use a Loop.
The Problem
When delegating complex implementation tasks to AI agents, you face three key challenges:
-
Non-deterministic execution — No guarantee that implementation plans will be completed 100% as specified. Context bloat in long sessions degrades quality.
-
Context rot — Long-running sessions accumulate context junk (previous trials, irrelevant history, noise). This degrades agent performance over time.
-
Scattered job visibility — Running multiple jobs across terminals makes it impossible to see status, monitor progress, or estimate completion. The human stays in the loop manually babysitting.
What It Actually Guarantees
Not identical output — these are language models, and nothing makes them
deterministic. The guarantee is procedural:
- Every task in the plan runs, in the order written.
- Each task starts from a clean session with the same bounded plan context
(name plus non-blank briefing) and the previous task's persisted handoff.
The full plan YAML and the other task definitions are withheld from task agents.
- Gates you define run when you say they run, and a failing gate blocks or
retries rather than being talked past.
- The pipeline is a file in your repo. You diff it, review it, and roll it back
like code, instead of it evaporating in a chat transcript.
The plan executes as written, every time. What the model writes inside a step is
still the model's business — which is what the hooks are for.
When to Use It
Minimise earns its keep when a task is too big for one agent session, or when you need to walk away and trust the result:
- Long multi-step builds — a feature that spans tests → implementation → verification, where a single session would rot before finishing. Each step gets fresh context and the previous step's diff.
- Overnight / unattended runs — kick off a job, review the diffs later. Retries plus an idempotent, reconcile-on-read start mean a mid-flight crash doesn't lose the work: re-running
mini job start picks up from the first incomplete task.
- Several jobs at once — refactoring three services in parallel without juggling three terminals.
mini job list is the one place to see status and progress.
- Enforced quality gates — a review-plan hook that blocks a bad plan before any code runs, or a post-task review that re-runs a task with the findings fed back in (a bounded fix-loop).
- Specialized steps — pin a stricter reviewer model or a focused system prompt to just the review task via personas, while the rest of the plan uses the default.
- Version-controlled pipelines — the plan is a YAML file you commit, diff, and review like code. Your agentic pipeline lives in the repo with a history, instead of evaporating in a chat transcript.
- A/B testing pipelines — run two variants of a plan (different task breakdown, models, or personas) over the same starting point and compare the resulting diffs and logs to see which approach wins.
If you just need a quick one-off edit, use your agent directly — Minimise is for work that's large, unattended, parallel, or gated.
Install
Prerequisites