BUILDING IN PUBLIC · DAY 44 LOCAL FIRST · APACHE-2.0 MACOS + LINUX

[ agent harness · daemon-first ]

Delegate the work. Keep the wheel.

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 ]

See infaiw take
the wheel.

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 ]

Subagents that can't
just declare victory.

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.

caller
outcome

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.

1

Delegate

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.

2

Gate

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.

3

Report

The parent gets the answer marked pass or fail, or "max iterations reached" if the budget ran out. Every attempt stays on the timeline.

exit 0

The parent decides what "done" means, not the sidecar. The verdict is a script's exit status, not the model grading its own work.

20·40·100

Every sidecar has a budget. When it runs out, the sidecar stops and reports "max iterations reached" instead of looping forever on your tokens.

any model

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 real run

The parent gets
a checked answer.

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

The parent infaiw session receiving a sidecar_loop answer marked completed and acceptance_script success, followed by the sidecar's report
Inside the sidecar session: its final answer ends with an acceptance check section and the acceptance_script success verdict, and the session shows completed

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 sidecar's session stats showing the 16-line acceptance script it was created with: the report must exist and contain findings, the build and vet must pass, no deprecated SDK references and no leftover temporary tests

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.

Four infaiw sessions side by side: a parent session tracking six sidecar loops that are busy, waiting for approval, completed, or stopped at max iterations, next to three sidecar sessions with pending bash approvals

A real session: one parent reviewing a change through six sidecar loops, three of them paused on approvals.

[ 02 / the daemon ]

Close the terminal.
The work keeps going.

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).

every session, one place

See everything
the daemon is running.

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

infaiw session workspace: a searchable list of 129 sessions, each with its model, date, directory, kind and status, and sidecar_loop sessions nested under their parent

[ 03 / footprint ]

One daemon. Every session.
Under 100 MiB.

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.

3.3×

less memory than an idle Claude Code, while infaiw was mid-task.

8.7×

less memory than an idle opencode, same conditions.

0

extra windows per sidecar. Sidecars are sessions inside the daemon, not more terminals.

and you stay in control of the modes

agent kindinteractivesidecar_looploop
thinking ctrl+toffminimallowmediumhighxhighmax
per toolallowhumandenynamed policies, one per session
model ctrl+mDeepSeekOpenAI CodexClaude Codeswitch mid-session

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 ]

Built for long-running work.

The things you will notice first, then everything else.

01

Branch,
don't restart.

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

infaiw branch timeline: tool calls, results and thinking events in order, with a fork where the user branched and the current event marked
02

Approvals
on your terms.

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_*

infaiw paused on a bash tool call: the full script is shown with Approve, Deny and Deny With Reason buttons, the session is waiting for approval under the default HITL policy
03

Know where
the tokens went.

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

infaiw session stats: session identity, a tree of two sidecars, context at 29 percent of one million tokens, and a last turn with 297k prompt tokens 99 percent cached
04

Share the
whole story.

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

An infaiw HTML session report in the browser: the session tree with its sidecar_loop offspring on the left, and a filterable event timeline with a marked branch on the right
05

It remembers
why.

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

infaiw session stats: a tree of seven sidecars, some completed and some stopped at max iterations, a six-item task checklist where each item has a title and a description, and context usage
06

Switch models
mid-session.

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

07

Add an MCP server
without editing JSON.

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

infaiw MCP server form: transport set to streamable-http, a name, a URL, OAuth set to browser login, and a timeout
08

Scriptable
from the shell.

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

infaiw --help listing the completion, hitl_policy, mcp, provider and server subcommands and the host, port, session and version flags
09

Stored like git,
not like a chat log.

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.

how it got here, in eight iterations ↗

Diagram of an infaiw session on disk: events in chunk files linked to their parents, a HEAD pointer, session.json, an index mapping events to chunks, content-addressed blobs, and a compaction agent whose summary is appended to the timeline
10

Hours of history,
still instant.

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.

day 32 on the build log ↗

Sketch of the transcript renderer: only blocks inside the active screen plus a buffer above and below are rendered
11

Beyond
text.

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.

day 43 on the build log ↗

infaiw on gpt-5.5 through openai-codex generating an image of a tabby cat hugging an otter, with the saved PNG open beside it in an image viewer and in the session's working directory
12

Your browser,
your tab.

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

infaiw driving a Chrome tab through its browser extension: the page it is working on beside the agent's browser activity and approval
also on board @ file picker$EDITOR drafts ctrl+xgit_statusregex grep & globguarded web fetch & searchqueued promptssession searchcopy from the transcriptbrew services & systemd

[ 05 / install ]

Install it. Start the service.
Hand it something.

Homebrew recommended

macOS & Linux · runs as a background service

Linux package manager recommended

Install infaiw from the package repository, then start its user service:

Debian Ubuntu Fedora openSUSE

[ 06 / shipped & next ]

From interactive sessions
to unattended workflows.

The harness is in place. Next, the same daemon runs multi-step pipelines and many cooperating agents, with the same human checkpoints.

shipped

Optimized session storage

Sessions as compact event timelines: cheaper to store, faster to load, and branchable.

shipped

Delegate sidecar loop

Delegated subagents that must pass an acceptance check before they report back, recorded on the timeline.

shipped

MCP support

Connect MCP servers, with OAuth authorization, elicitation, and reusable prompts.

shipped

Eval support

Evals that check whether the agent actually did what it was asked.

[ 07 / building in public ]

44 days of infaiw,
one post at a time.

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.

45posts
28releases
58days since day 02

Hover or focus a day to see what shipped.

    Hand it off.
    Stay in charge.