Glitchy — the Grainulator mascot

Grainulator

Evidence and verification for the model you already use.

Keep the evidence. Challenge the answer. Know what to do next.
A shared workflow for research, engineering, and model-assisted work.

See the Grainulator homepage

CI on main Node.js 24 or later MIT license Docs on DeepWiki

Quick start · Installation · Upgrading · Tools · Agent setup · Changelog

--- ## What it adds Good models still need a way to keep track of evidence, revisit assumptions, and verify their work. Grainulator gives them that process, with a local ledger that stays with the task as it moves between models and sessions. | Capability | What it gives you | | --- | --- | | **Evidence that stays with the work** | Typed claims, sources, evidence tiers, and provenance that survive edits and exports. | | **A check on the answer** | Conflict detection, weak-support signals, and explicit gaps to investigate. | | **Clear next actions** | Two lists: what the agent can continue automatically, and what needs your input. | | **Sessions you can carry forward** | Configurable research, stop/resume, reusable context, and credential-free exports. | | **Verification for your task** | A managed command loop that can use a verifier you provide. | Grainulator works with Claude Code and Codex through plugins. It also provides a command-line tool and an MCP connection for other agents. You do not need to install its components separately. ## Quick start Install the CLI and matching native runtime through the shared Homebrew tap: ```sh brew tap grainulation/homebrew https://github.com/grainulation/homebrew brew install grainulation/homebrew/grainulator grainulator doctor grainulator demo ``` Homebrew provides Node 24 and the matching native assets. The offline demo needs no credentials. For agent integration, follow [agent setup](docs/AGENT-SETUP.md). ### From source Requires **Node.js 24 or later**; Node 24 and 26 LTS are the tested release lines. Node 24 is the development default. **Upgrading from an earlier version?** Follow the [migration checklist](docs/UPGRADING.md) to update the plugin and keep your existing research data. ```sh git clone --branch v3.0.1 https://github.com/grainulation/grainulator.git cd grainulator npm ci --ignore-scripts node bin/grainulator.js doctor ``` To use Grainulator inside your agent, follow the **[Claude Code or Codex setup guide](docs/AGENT-SETUP.md)**. Start a portable research session without making provider calls: ```sh grainulator research --question "What evidence answers this question?" --dir ./research-session --prepare-only ``` See [CLI research](docs/RESEARCH.md) for provider configuration and checkpoint continuation. > **Grainulator 3:** one CLI/plugin with a unified configuration and separately verified native runtime assets. Follow [installation](docs/INSTALLATION.md), [upgrading](docs/UPGRADING.md), [configuration](docs/CONFIGURATION.md) and [data retention](docs/UNINSTALL.md). The [shared Homebrew tap](https://github.com/grainulation/homebrew#available-formulae) lists available stable formulas. ### Other agents: connect through MCP Add an MCP server that runs this command, with your project's absolute path: ```sh node /absolute/path/to/grainulator/bin/grainulator.js mcp --dir /absolute/path/to/project ``` Antigravity installs the full plugin. See the [agent setup guide](docs/AGENT-SETUP.md) for Antigravity, Cursor and other MCP agents. For the full Claude Code or Codex plugin, use the **[agent setup guide](docs/AGENT-SETUP.md)**. Codex needs a project folder; the guide shows how to set it. CLI and direct MCP access remain available to other hosts. Or point your coding agent (Claude Code, Codex, or Antigravity) at this checkout: ```text Read README.md and AGENTS.md in the Grainulator repository. Run node bin/grainulator.js doctor and node bin/grainulator.js demo, and report the exit codes and final status lines. Then tell me which routes below this machine can run, and ask me before starting any model-backed or paid run. ``` | Route | What it does | Needs | Time / Cost | | --- | --- | --- | --- | | **1. Local ledger & offline demo** | Runs `doctor`, `demo`, `init`, `add`, and `compile` | Node.js ≥24; no credentials | ~2 s · $0 (no model calls) | | **2. Managed command verifier** | Runs `grainulator run --adapter ... --verify ...` with soundness-break (`exit 3`) enforcement | Route 1 + local verifier script | Per-round timeout & round cap | | **3. Host plugin or MCP server** | Connects `add_claim`, `compile`, `resolve`, `memory`, and `exports` to Claude Code, Codex, Antigravity, or MCP hosts | Route 1 + host agent | Host session · $0 Grainulator overhead | | **4. Semantic & adversarial evals** | Runs `evals/rejected-claims` (offline) or `scripts/evaluate-semantic.mjs` (model-backed) | Route 1 (+ API credentials for live model matrix) | Offline $0 · live matrix requires explicit budget | ## Put it to work For necessary-premise links, current source checks, recorded verification runs, audit findings and missing acceptance criteria, see [evidence maintenance](docs/EVIDENCE-MAINTENANCE.md). Start with `node bin/grainulator.js maintain --help`; all operations use an explicit sprint. With Grainulator connected, give your agent the outcome you need: > Use Grainulator to investigate whether we should migrate this service. Record the evidence, challenge the assumptions, implement the agreed changes, and verify them. Keep the remaining next steps split into Auto and Manual. The work follows a simple cycle: 1. **Record** findings with their sources and evidence tiers. 2. **Check** for conflicts, weak support, and missing perspectives. 3. **Act** on the gaps that matter, then verify the requested result. 4. **Continue** from the saved ledger or export the session to another workflow. There are no fixed claim-count or research-pass quotas. **Auto** lists work the agent can continue within your authorization. **Manual** lists decisions, access, or actions that need you. When you ask only for next steps, those two lists are the entire response.
Example: record a claim from the terminal ```sh node bin/grainulator.js init --dir ./sprints/migration \ --question 'Should we migrate this service?' \ --audience engineers --constraints 'Preserve existing user data' \ --done 'A verified plan with remaining risks documented' node bin/grainulator.js add --dir ./sprints/migration \ --id r001 --type constraint --topic migration \ --content 'Existing user data must remain readable.' --evidence stated node bin/grainulator.js compile --dir ./sprints/migration ``` The equivalent MCP tool is **`add_claim`** on the **`grainulator`** server. See the [tool reference](docs/TOOLS.md) for evidence, memory, export, analytics, and orchestration operations.
## Explore the docs | Guide | Start here for… | | --- | --- | | [Installation](docs/INSTALLATION.md) | Tagged source, isolated archives, and verified build identity. | | [Upgrading](docs/UPGRADING.md) | Host updates, renamed tools, existing data, and retired setup instructions. | | [Agent setup](docs/AGENT-SETUP.md) | Use Grainulator with Claude Code, Codex, or another agent. | | [Research sessions](docs/RESEARCH.md) | Models, feature controls, credentials, export, and resume. | | [Tools](docs/TOOLS.md) | The canonical CLI and MCP interface. | | [Execution adapters](docs/ADAPTERS.md) | Attaching a model command and a task-specific verifier. | | [Architecture](docs/STRUCTURE.md) | The workspace layout and internal modules. | | [Evaluation](docs/EVALUATION.md) | What has been measured and what remains unproven. | | [Contributing](CONTRIBUTING.md) | Development setup, tests, and changes to the project. | ## Verification and limits CI checks Node 24 and 26, isolated package installation, plugin contracts, Rust runtime conformance, lint, and credential-free CLI/MCP research and export workflows. Native host and live-provider acceptance have separate [verification guides](docs/READINESS.md). The compiler checks the structure and support recorded in the ledger; it does not establish that a source is true. Evaluations do not establish a general accuracy or efficiency gain, and per-pass limits are not a whole-session spending cap. Keep those distinctions when interpreting results.
Run the development checks ```sh npm test npm run test:install npm run lint ``` Browser and runtime prerequisites are in [CONTRIBUTING.md](CONTRIBUTING.md). The offline `node bin/grainulator.js demo` exercises the adapter/verifier protocol without a provider account.
---

Built by Grainulation · MIT licensed · Issues & ideas