// readme

Confidence-gated model routing, doctrine-driven sessions, and BYOK economics β€” frontier-tier output at metered cost.

npm install -g grist-ai

Grist is a coding-agent harness built on OpenCode v2 (MIT). The agent loop is the upstream codebase β€” Grist ships as a first-class OpenCode plugin (@grist-ai/plugin) baked into the grist binary, so every session loads the Jev confidence gate, the doctrine injector, and the control-plane hooks with zero user config.

What makes it different is what’s wrapped around that loop: a Jev confidence gate that routes every task to the cheapest capable model rung; doctrine injected into session context; escalate-only model switching mid-run; SoL-Pi token cuts (packed tool output, fused edit+verify); a verified memory and code map that brief every session on your codebase; and BYOK economics β€” inference bills to your provider account (OpenRouter, Vercel AI Gateway, or any OpenAI-compatible endpoint) with zero markup. Grist never holds your inference budget.

Docs: grist.lol/docs β€” every concept explained: the…