Local-first · persistent · verifiable

Give your local model
a real instrument.

MODAI turns Ollama into a coding harness that reads the project, edits real files, runs quality gates, repairs failures, and stays with the work until the evidence says done.

Runs on your MacNo local token ceilingCloud only by consent
project — modai

modai "Build the landing page and verify it"

ROUTE solo · software task

Code Virtuoso · persistent session started

ARTIFACTS3 / 3
GATES4 / 4
NOW
Playwright · desktop
PASS

✓ edit styles.css · 2 precise replacements

✓ browser_quality mobile · landscape · tablet · desktop

Objective completed and verified.

LOCAL 18,420 TOKENS   CLOUD 0   3 FILES CHANGED

Less rehearsal.
More working software.

Normal coding no longer needs a committee. One Code Virtuoso holds the context from first inspection through final repair. Deterministic gates—not agent applause—decide when the work is finished.

  1. 01InspectTargeted reads and project instructions
  2. 02PerformAtomic writes and precise edits
  3. 03VerifyTests, builds, and real browser checks
  4. 04RepairExact current failure, same session

Tools made for
changing code.

01

Persistent by design

Messages, tool results, events, usage, and verification evidence survive interruption in an append-only JSONL session.

02

Precise edit

Exact matches validate together before one byte changes. Ambiguous or overlapping edits fail atomically.

03

Browser truth

Playwright renders mobile, landscape, tablet, and desktop while checking overflow, navigation, console errors, and visible content.

04

Bounded evidence

Long command output stays in a run log. The model receives the useful signal instead of losing context to noise.

05

One writer

The main coder integrates. Optional orchestra delegates are read-only, bounded, and invited only when independent evidence helps.

06

Safe control

Steer, follow up, abort, resume, and compact at stable turn boundaries without interrupting a filesystem mutation.

Your repository stays
in the room.

The coding session talks to localhost Ollama. Workspace paths are confined, shell interpolation is absent, destructive Git commands are blocked, and write tools disappear entirely in read-only mode.

Cloud models are optional, separately configured, and used only with per-task consent. Local token usage is visible—and unlimited.

modai --mode solo "Fix, test, and verify this project"

Start in the directory.
Finish with evidence.

Get MODAI on GitHub