Mole: Enforced-Budget Deep Research Agent

2026-08-22 · source · source ↗ · raw capture · wiki page

Mole is a deep-research agent written in Go (~82,600 lines across 254 files) that decomposes a question, searches the web and academic databases, mines claims, verifies each against its source, builds a claim graph, and writes a cited answer — all under a hard cost ceiling enforced in the SQLite schema itself. It runs as two static binaries (mole, mole-mcp) on your own machine with your own API keys, and speaks MCP.

What it does

Ask a question; mole decomposes it, searches, reads sources, extracts claims, checks each claim against the text it came from, looks for contradictions between them, and writes an answer with citations. Every model call is reserved against a budget before it happens and settled after, so the ceiling you set is the ceiling it hits.

Three differentiators

Modes

Architecture in one line

Planner (decompose, replan) → executor (one lead per worker, reserved and settled) → actor (search → fetch → extract → chunk → mine → quote-check) → verifier (pair related claims, adjudicate contradictions, derive confidence from the graph) → output (synthesize from surviving claims, with citations assigned mechanically).