2026-11-26 15:47 UTC

Rig bundles shared state and tools for local agent workflows

state: seedheat: mediumuncertainty: mediumrelevance: mediumagent-harnesses local-inference agent-memory long-running-orchestrationmrsirg97-rgb

What is this?

Rig is an MIT-licensed, Go-based agent runtime by creator mrsirg97-rgb, presented as a lightweight way to run agents against an OpenAI-compatible model endpoint, including local models. Its GitHub documentation describes built-in tools, persistent project-scoped tasks and memory, scheduling, delegation, plugins, and shared stores across terminal, piped CLI, headless-worker, and dashboard interfaces. The developer’s September 13, 2026 Hacker News comment said only CLI and TUI frontends were then built; the repository documentation fetched later describes a dashboard and headless worker, but the supplied sources do not establish when those became available. A September 27 Show HN post links to tryrig.ai, with no further details supplied.

Why it matters

Rig is an open-source, local-first agent runtime that aims to put model calls, tool use, persistent memory, task queues and scheduling in one small system, with multiple interfaces sharing the same stores. If the documented pieces work together as described, it could reduce the custom state and orchestration plumbing needed to run persistent agents against local models. This is infrastructure and workflow integration, not a new model capability; the supplied evidence does not establish adoption or independent performance.

Current assessment

The project’s GitHub documentation describes a Go runtime for an OpenAI-compatible SSE endpoint, with no model bundled or selected by default. It lists 18 built-in tools, including file and shell operations, project-scoped todos and cross-session memory, scheduling, one-shot delegation, a persistent Python kernel, and Python plugins. The documentation says TUI, piped CLI, headless worker, and dashboard interfaces use shared session, task, memory, and scheduler stores; it also describes a loopback-only dashboard with token-based access. These are creator-provided product descriptions, not independently verified performance or security findings. In a September 13, 2026 Hacker News comment, the developer said CLI and TUI were the only built frontends at that time and reported using Rig daily for local agents; the later-fetched repository documents a dashboard and headless worker, but the supplied evidence does not date their release. A September 27 Show HN post links to tryrig.ai but supplies no further product details. The practical significance is a possible lower-friction path to persistent, locally hosted agent workflows across terminal and background use; actual reliability, adoption, and the extent to which it replaces bespoke orchestration remain unverified.

Measured heat

now 0 pts/hpeak 0 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 1795h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

09-12 20:22 (minted)⭐ origin echo-reconstructedRig is described as a minimum agent runtime whose TUI, piped CLI, headless worker, and dashboard share session, task, memory, and scheduler
mrsirg97-rgb on github (echo) · attributed from hn.story.49676764 · published time unknown
—
09-12 20:18first on hacker news · published · lag ?I built a harness and now it is my daily driver for local agents
mrsirg
—
09-12 20:18amplified on hacker news 👑hn.story.49676764
mrsirg
peak 1 · 1 comments · 69% of case engagement
09-26 18:44amplified on hacker newshn.story.49859320
mrsirg
peak 1 · 0 comments · 34% of case engagement
09-12 20:20our radar first saw it · lag ?discovery anchor: hn.story.49676764—

Evidence (3) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnI built a harness and now it is my daily driver for local agents
Retrieved article excerpt

Open article · Retrieved 2026-09-12T20:21:52.962643+00:00

# rig

A minimum runtime for your agents.

One binary. One model endpoint. One terminal.

rig assembles context, streams the model, executes tool calls, returns results, and repeats. The TUI, piped CLI, headless worker, and dashboard share the same session, task, memory, and scheduler stores.

## install

Choose one:

**Installer** (POSIX sh, no Go, no sudo; installs to `~/.local/bin`):

```
curl -fsSL https://mrsirg97-rgb.github.io/rig/install.sh | sh
```

**Release binary** from `releases/latest`. Choose your `<os>_<arch>`:

```
curl -fsSL https://github.com/mrsirg97-rgb/rig/releases/latest/download/rig_linux_amd64 -o rig
chmod +x rig
```

**go install** (needs Go ≥ 1.26.6; the core is stdlib-only):

```
go install github.com/mrsirg97-rgb/rig/cmd/rig@latest
```

`rig -update` fetches, verifies, and atomically installs the latest release. The running process keeps the old binary until restart.

## first run

```
./rig --base-url $ENDPOINT --model $NAME
```

rig needs an OpenAI-compatible SSE endpoint and a model ID. The endpoint defaults to `http://127.0.0.1:8090/v1`; there is no model default — a run without one refuses at start, naming the three ways to set it (`--model`, `RIG_MODEL`, the `model` key in `settings.json`). The TUI is the frontend when stdout is a terminal, the piped CLI otherwise. For scripts, run `./rig -p "the task"`. See `docs/SETUP.md` for configuration.

## the tools

rig ships 18 built-in tools. Restrict them with `--allow`:

| tool | what it does |
| --- | --- |
| `bash` | run shell commands; output bounded |
| `read` / `write` / `edit` | files; edits are exact-match, provenance-checked |
| `ls` / `find` / `grep` | the filesystem, by name and by content |
| `diff` | the working tree against HEAD, or a tool's two latest observations |
| `python` | a persistent IPython kernel; variables and imports survive |
| `web_search` | a local SearXNG instance |
| `web_fetch` | a URL as readable text; private addresses refused |
| `todo` | the task queue, scoped to the project (a repo's worktrees share one) |
| `rem` | memory across sessions: learn, recall, reflect, prune; scoped to the project |
| `scheduler` | background jobs on your crontab, run in a bubblewrap jail |
| `delegate` | a one-shot headless worker for a bounded subtask |
| `sessions` | read-only vitals of the session store |
| `plugin` / `plugins` | the door into your python plugins, and their ecosystem |

Every tool result is capped. Repeated identical failures are bounded. An
optional round cap limits calls per turn. A failed call executes once.

## plugins

A Python plugin is one file and one tool. It provides `run` and `schema`.
There is no build step. Model-authored plugins land in `~/.rig/plugins/pending/`. Approve, disable, and reload them with `/plugins` or the dashboard. See `docs/PLUGINS.md`.

## configuration

Configuration lives in `~/.rig/`. Set `$RIG_HOME` to move it. Every file is optional. Invalid files fail startup and name the file and field.

| file | what it holds |
| --- | --- |
| `settings.json` | the knobs: endpoint, model, the allow-list, the retry bound, the approval dial, the worker sandbox |
| `models.json` | the per-model table: context window, max tokens, the compaction reserve, the role (`worker`/`interactive`), the effort levels |
| `AGENTS.md` | global instructions, read before the project's `<cwd>/AGENTS.md` |
| `theme.json` | the terminal theme: base, slot colors, glyph set |
| `plugins/` | your python plugins (top-level files are live) |

Each key resolves in this order: flag, environment, file, built-in default. `/models` lists and switches models. `/effort` changes reasoning effort. See `docs/SETUP.md` for configuration and sandbox settings.

## the dashboard

```
rig serve
```

The dashboard serves the rig stores on loopback only. On first run it prints an access token, stores it with mode `0600`, and includes it in the URL. The page exchanges the token for a cookie. Mobile friendly.

- **sessions**: list them per workspace, and resume one mid-work
- **todo**: the queue, with create, start, complete, and retry
- **scheduler**: the jobs, with create, pause, resume, remove, an in-place update form that opens with the job's current fields, and each job's run audit trail
- **models**: the table, with the effort dial
- **plugins**: approved, pending, disabled; the forge reads and saves a plugin's source into the pending zone

## docs

| doc | what it is |
| --- | --- |
| `docs/DESIGN.md` | architecture, the seams, turn semantics, extension guide |
| `docs/SETUP.md` | build, configuration, verification |
| `docs/USAGE.md` | running a session; session and failure semantics |
| `docs/PLUGINS.md` | the python plugins: the contract, the zones, creating and consuming |
| `SECURITY.md` | the trust model and how to report a vulnerability |
| `CONTRIBUTING.md` | the process: spec first, tests before code, the freeze |

## layout

```
cmd/rig      composition root; wires every seam once; flags and env only
core            the seams, wire types, and the streaming-event vocabulary
loop            the concrete turn runtime (fault/cancel-aware)
evt             the event loop (SPEC_EVT): one consumer, many producers; the
                turn runtime's engine
kernel.go       the composition kernel
command/        the user commands (/compact, /models, /sessions, /effort, ...)
config/         the four-layer config resolution (flag > env > file > embedded)
models/         the per-model table (window, compaction numbers, role, effort)
policy/         ContextPolicy implementations: compact (per-model trigger),
                effort (the reasoning dial's provider decorator)
middleware/     ToolMiddleware: toolset (the live table), approve (the gate),
                paths (the ~ boundary), perm (deny by default + plugin
                provenance), guard (the bound, the round cap, the result cap)
provider/       Provider implementations (the openai-compatible SSE adapter)
plugins/        python plugin discovery (one file, one tool) and the plugin
                door (run/schema) and the ecosystem (list/create/delete/reload)
store/          the SQLite stores (state, todo, rem, scheduler), the sqlx
                transaction seam, the project scope identity (store/scope);
                -resume projects a session back from the state rows
tool/           Tool implementations: bash(1); file read/write/edit; fs
                ls/find/grep; todo the job queue; rem memory; scheduler
                background jobs; delegate the one-shot worker; python the
                persistent IPython kernel; web search and fetch; diff the
                observation diff; sessions the soak's vitals
frontend/       Frontend implementations: cli (the piped reference), tui (the
                terminal default), oneshot (-p worker), web (the serve
                dashboard)
specs/          the specs, written and agreed before the code (SPEC_CORE first)
docs/           DESIGN (architecture), SETUP (build/config), USAGE (running),
                PLUGINS (the python plugins)
```

## extending

The structural test is simple: add one file and one registration line. The loop never names a concrete tool, provider, policy, frontend, or middleware. A Python plugin needs no Go. See `docs/DESIGN.md`, `docs/PLUGINS.md`, and `CONTRIBUTING.md` for the process.

## under the hood

`core/` and `loop/` use only the standard library. Stores use the pure-Go `modernc.org/sqlite` driver.
mrsirg11
🟧 echo.github ⭐Rig is described as a minimum agent runtime whose TUI, piped CLI, headless worker, and dashboard share session, task, memory, and scheduler mrsirg97-rgb——
🟧 hnShow HN: Rig, a small operating system for your agentmrsirg10

Interpretation history

Decision trace