[ agent harness · daemon-first ]
infaiw is an agent harness that works with you, not around you. It runs as a background service: hand off a task, close the terminal, and come back to a durable timeline of everything it did, with every consequential step waiting for your approval.
sidecar loops · MCP · skills · evals · one Go binary + one user service
[ watch it in action ]
A 17-minute tour of the daemon-first agent harness: acceptance checks that gate every sidecar, approvals that wait for you, and timelines you can branch.
[ 01 / the sidecar loop ]
Agents love to say "done". A sidecar is a delegated subagent whose "done" doesn't count until a script written by its parent exits 0, within a turn budget the parent picked.
The parent delegates over ISAC, the engine creates the sidecar, the sidecar works and runs its own acceptance script until it passes or the turn budget runs out, and the engine relays the result back to the parent's mailbox.
The parent hands off a task, a bash acceptance script that defines "done", and a budget of 20, 40 or 100 turns. You see all three before you approve the delegation.
Each time the sidecar claims it's finished, its own loop runs the script. If it fails, the script's output goes back into its conversation and the work continues.
The parent gets the answer marked pass or fail, or "max iterations reached" if the budget ran out. Every attempt stays on the timeline.
The parent decides what "done" means, not the sidecar. The verdict is a script's exit status, not the model grading its own work.
Every sidecar has a budget. When it runs out, the sidecar stops and reports "max iterations reached" instead of looping forever on your tokens.
The gate is bash, so it doesn't care which model you use. DeepSeek, OpenAI Codex or Claude Code: a sidecar runs on its parent's model, and the gate works the same way on all of them.
A billing integration review was handed to a sidecar. When its answer reached the parent session, it was already marked [acceptance_script success]: the script had passed before the result was delivered. The parent reads findings, not promises.
sidecar_loop · completed · 96 probes · report written · production files untouched
Inside the sidecar. Its last answer, then the verdict from its own acceptance check. Only after that does the session flip to completed and report back to its parent.
The script, on the record. ctrl+d on the sidecar shows the exact acceptance script it was created with. Every check echoes why it failed, so a failure tells the sidecar what to fix.
A real session: one parent reviewing a change through six sidecar loops, three of them paused on approvals.
[ 02 / the daemon ]
infaiw runs as a user service. The TUI is just a client: attach from as many as you like, leave, and come back to the same session. Sessions talk to each other through mailboxes, routed by the engine (ISAC).
clients
infaiw daemon
engine
routes messages
holds approvals
writes the timeline
sessions · mailboxes
One screen lists every session the daemon holds: what kind it is, which model it runs, its working directory, and whether it's busy, idle or done. Sidecars sit under the parent that started them, so you can see which ones completed and which ran out of budget. Search by name and jump into any of them.
ctrl+o sessions · / search · n new session
[ 03 / footprint ]
A coding agent should not cost more memory than your editor. infaiw is one Go binary: a small server that holds every session, and a thin TUI you open only when you want to look.
less memory than an idle Claude Code, while infaiw was mid-task.
less memory than an idle opencode, same conditions.
extra windows per sidecar. Sidecars are sessions inside the daemon, not more terminals.
and you stay in control of the modes
Measured by the author on 14 Nov 2026, Linux 7.3 (Fedora 44): RSS from ps, core process only. infaiw 0.33.0 was running a live task with about an hour of transcript; Claude Code 2.1.325 and opencode were freshly opened and idle. Claude Code's tree included two Grafana MCP servers and a Docker MCP; infaiw had none. The claude-cli provider runs the Claude Code CLI per turn, capped at 512 MiB, so these numbers apply to the DeepSeek and Codex providers.
[ 04 / on board ]
The things you will notice first, then everything else.
Forty minutes in, the agent took a wrong turn. Open the timeline, pick any event and branch from there. The first attempt stays on its own branch; nothing is thrown away, and you can search the whole history.
/timeline · ↑/↓ move · / search · ⏎ branch · ⎇ marks a fork
Every tool is allow, human or deny. Reads just run. A write, an edit or a bash script stops and shows you exactly what it will do, then waits, even if you closed the window hours ago. One mcp_* line covers every MCP tool. Save a named policy and pick one per session; the badge shows which one is active.
Approve · Deny · Deny With Reason · ←/→ choose · ⏎ answer · ctrl+g collapse
default policyallow read · list · glob · grep · git_status · skills · checklist human write · edit · bash · web · sidecars · mcp_*
One key shows the session's tree of sidecars and how each one ended, how full the context is, and what the last turn spent. In this session 99% of a 297k prompt came from cache. It also lists every tool, skill and MCP server that's loaded. No guessing about cost.
ctrl+d session stats · ctrl+o all sessions
One command turns a session into a single HTML file: every sidecar, every branch and every tool call, filterable and collapsible, with acceptance results marked. Send it to a reviewer, attach it to the PR, or keep it as the record of how a change was made. No account and no server needed.
/report export the full timeline as HTML
Every checklist item has a title and a description of what you actually asked for. After compaction, or hours into a task, the agent re-reads the goal and not just its last step. A sidecar's checklist comes back with its answer, and the session tree shows which sidecars finished and which ran out of budget.
ctrl+d checklist · sidecar tree · context · last turn
Plan with Claude Code, implement with OpenAI Codex, review with DeepSeek, or use a model you host yourself on any OpenAI-compatible endpoint. The session, its timeline and its approvals stay the same; only the model changes. One system prompt works for all of them, and provider catalogs refresh hourly without a restart.
ctrl+m switch model · ctrl+t thinking level
A short form: remote URL or local command, a name, and whether it needs OAuth. If it does, infaiw opens the browser login for you. Its prompts show up as slash commands, its questions come to you, and one mcp_* policy line covers every tool it adds.
infaiw mcp add · edit · refresh · remove, or from the TUI
Policies, MCP servers and provider logins are subcommands too, so you can set up a new machine from a script. The TUI attaches to any daemon by host and port, and resumes any saved session by its id.
hitl_policy · mcp · provider · server · --session <uuid> · --host --port
Every session is an append-only timeline of events, each pointing to its parent. HEAD marks the active branch, an index records where each event lives, history is split into chunks, and large records sit in content-addressed blobs that load only when needed. Opening, listing or branching a session reads only what it has to.
Compaction builds on the same timeline. At 80% of the context window, the last four messages stay word for word. Everything older is summarised together with the previous summary and the task checklist, and the summary is saved on the timeline as its own event with the originals kept. You can stop worrying about the context going bad.
Only the part of the transcript on screen, plus a buffer above and below, is drawn, in blocks cached for each terminal width. A session with thousands of events opens, scrolls and resizes in constant time. A resize keeps you on the block you were reading, and live output only follows along when you're already at the bottom.
Paste a screenshot with ctrl+v and the model sees it. Models that can generate images, such as OpenAI's through Codex, return them into the same chat: click [Gen Image 1] and the image is saved to the session's working directory.
A small Chrome extension connects the daemon to the browser you already use. Ask it to open a page and it drives a normal tab in your own profile: nothing to sign into again, and the tab stays yours to use.
It reads the page before it looks at it — the accessibility tree, or the text — and takes a screenshot only when the outline is not enough to decide. Clicks, typing and scrolling are real input, and the cursor moving on the page is the agent's. Chrome, Brave, several profiles at once: each connection has a name, and when it is not clear which one you meant, it asks instead of guessing.
browser_clients · browser_navigate · browser_read · browser_act · browser_scroll — reads and scrolling run, acting waits for your approval
[ 05 / install ]
Homebrew recommended
macOS & Linux · runs as a background service
Linux package manager recommended
Install infaiw from the package repository, then start its user service:
[ 06 / shipped & next ]
The harness is in place. Next, the same daemon runs multi-step pipelines and many cooperating agents, with the same human checkpoints.
Sessions as compact event timelines: cheaper to store, faster to load, and branchable.
Delegated subagents that must pass an acceptance check before they report back, recorded on the timeline.
Connect MCP servers, with OAuth authorization, elicitation, and reusable prompts.
Evals that check whether the agent actually did what it was asked.
Multi-step pipelines that run unattended on the same daemon, with the same human checkpoints.
Many cooperating agents, coordinated through the same inter-session mailboxes.
[ 07 / building in public ]
Every day of building infaiw, posted on X as it happened: plans, dead ends, work in progress and releases. Start from the first post or jump to the latest.
Hover or focus a day to see what shipped.