Familiar is a platform that has coding agents such as Claude Code, Codex, Antigravity (agy) and my own dsh share one development task. A TUI (an interface drawn in text) running in a terminal on the PC handles everything from plan approval to work assignment, verification and records. I built it myself and have rebuilt it 4 times so far.

This article explains what goes wrong when several agents work together, and the mechanisms that prevent it, in the order you would build them. The second half follows one real task from start to finish, then shows approval from a smartphone and how to extend the setup to a GPU server in the homelab.

Familiar in use (2 min 26 s, no audio). From 0:00 the mechanisms and commands are explained. Around 0:46 root presents an 8-step plan, around 0:52 the plan is approved, and around 1:06 4 pieces of work run in parallel. From 1:16 the smartphone app shows the model list, approval notifications, check results, verification images and diffs. From around 2:08 come the PR and Wiki records.

What happens when you run several agents separately

Real development often calls for switching between several agents that differ in purpose and capability.

If you run each one in its own terminal, the following happens.

  • You lose track of who changed what.
  • When 2 agents rewrite the same file, their changes get mixed.
  • Even if you ask in the prompt, “don’t start work until it is approved” or “mark it done only after the tests pass”, the agent may miss it partway through a long task.
  • Even when automated tests pass, whether the work matches the specification and design has to be checked separately.

In the end, testing and checking come back to a person. I built Familiar to bring this management into one screen.

6 mechanisms in build order

I list Familiar’s mechanisms from the smallest up. Each stage builds on the ones before it. For example, stage 3, “do nothing until approved”, cannot be written without stage 2, which brings the agents’ actions to one place.

Diagram of the Familiar TUI. 4 boxes run from top to bottom: screen and state management, connections to agents through ACP and MCP, task records and worktrees, and integration with external services
Diagram of the Familiar TUI. From the top: screen and state management, connections to agents (ACP and MCP), task records and worktrees, and integration with external services.

1. Choose a coordinating root and connect agents through ACP

Each task gets one coordinating agent. Familiar calls it root. It makes the plan and assigns work to other agents. A separate session that runs an assignment is called a worker.

Only root can plan and assign work. If a worker tries to start another worker, Familiar refuses unless the caller is root. The point is to be able to trace later who decided what.

Familiar connects to agents with ACP (Agent Client Protocol). ACP is a common protocol for driving coding agents from the interface side, such as an editor. Familiar starts each agent as a child process and exchanges ACP messages over standard input and output. The launch commands are as follows.

AgentLaunch command
Claude Codenpx -y @agentclientprotocol/claude-agent-acp@0.106.0
Codexnpx -y @agentclientprotocol/codex-acp@2.6.0
Antigravityagy acp
dshdsh --profile acp

A worker’s role is defined in a file named $FAMILIAR_HOME/roles/<role>.md. The header sets the agent to use, the model and reasoning effort for each agent, and whether root waits for the result (sync or async). The body holds the role’s instructions. The bundled roles are lookout, which reads and investigates, and operator, which implements or verifies one unit. The lookout header looks like this.

  ---
agent: claude
codex: luna-6 low
claude: sonnet low
state: async
description: reads across files, curates findings, and monitors assigned jobs
---
  

2. Turn agent actions into MCP tools and keep state in one place

Conversation goes through ACP. Actions such as submitting a plan or starting a worker go through MCP tools that Familiar provides. MCP (Model Context Protocol) is a common protocol that lets agents call external tools. The main tools are these.

ToolWhat it does
propose_planShow the plan to a person and ask for approval
delegateStart a worker and hand it work
wait_workerWait until a worker finishes its work
update_stepMark a plan step as started, completed or failed
adopt, rejectTake in a worker’s branch, or pass on it
record_artifactRecord an output file or link

A tool call travels in this order. Familiar registers itself (familiar mcp) as an MCP server in each agent session. When an agent calls a tool, this MCP server process sends a request to the running TUI over a Unix socket (control.sock). The TUI handles the request against the state it shows on screen, and returns either a result or an error that states the reason. This way, the state a person sees on screen and the conditions under which agents can act are kept in the same single place.

3. Turn the plan and approval into conditions in code

Rules given in a prompt can be missed partway through a long task. In Familiar, the program itself changes what agents can do before and after approval.

First, root submits a plan with propose_plan. The plan contains the purpose (purpose), what the result will make possible (use_cases), the steps (steps) and the verification items (checks). Each step names the agent responsible, and after can list the steps that must finish first. With the field names as they are in the implementation and the values left out, the plan has this shape.

  {
  "purpose": "...",
  "use_cases": ["..."],
  "steps": [
    {"title": "build: ...", "agent": "codex"},
    {"title": "review: ...", "agent": "claude", "after": [2]}
  ],
  "checks": [
    {"title": "...", "run": "<command>", "step": 2, "use_case": 1}
  ]
}
  

When root names a plan step and tries to start a worker with delegate while the plan is not approved yet, Familiar returns this error. The same applies to update_step, which changes a step’s state.

  the plan is not approved yet; end your turn and wait for the user's approval message
  

If there is no plan, it returns this task has no plan; call propose_plan first. If steps that must finish first are still open, it returns the steps that are waiting and the steps that can start now.

A person reviews the plan shown in the TUI, presses Enter, then a to approve or d to reject. To change the plan after approval, root again submits a revision with propose_plan, and the person accepts or declines it.

:auto sets how work is handed out. With :auto off, work can only be handed out as steps of the approved plan. With :auto on, root also hands out work outside the plan at its own discretion, and it answers permission requests from workers. Requests such as rm or git push still do not go to root; a person answers them. Operations that deploy or reach hosts outside the local network are refused until a person sets :deploy on.

4. Give each writing agent its own Git worktree

A worktree is a Git feature that creates a separate working directory per branch from one repository. Even when several agents write at the same time, their changes do not mix as long as the working directories are separate.

When a task starts, Familiar creates a branch and a worktree for it. For each worker that changes files, it creates another dedicated branch and worktree from the tip of the task branch. Workers that only investigate read the task worktree directly. In the example later in this article, the layout was as follows.

  familiar/                                                           main checkout
familiar/.agent/feat/task-05830-create-system-report                task worktree
familiar/.agent/feat/task-05830-create-system-report--tui-diagram   worker worktree
  

A worker branch is named “task branch name–worker name”. Task branch names cannot contain --, which keeps them distinct from worker branches. If an agent names the main checkout as its working location, Familiar refuses.

Once a worker finishes and the checks for its step pass, root uses adopt to bring the changes into the task branch. The method can be cherry-pick, squash or merge. On a conflict it stops without changing anything, and the resolution can be left to the worker. Changes that are not adopted are passed over with reject, and their branch is kept.

5. Separate machine checks from human judgment, and have a different agent verify

A plan’s verification items (checks) come in 3 types.

  • run: runs a command in the task’s working directory and passes if the exit code is 0
  • files: passes if a non-empty file matching the pattern has been newly created after approval
  • user: only a person judges it

Familiar does not accept a plan without checks. Before marking a step complete, it runs the checks tied to that step, and before the last step it runs the remaining checks.

Checks that must always run for a repository go in .familiar/checks at the repository root. Familiar adds them to the plan’s checks.

  build = run: cargo build --locked
tests = run: cargo test --locked
user: review the changes
  

Even if the tests pass, whether the result fits its purpose is a separate question. The working procedure that Familiar gives to root says that the agent who verifies should be different from the agent who built.

The program limits how many times a found problem can be fixed. Each problem gets at most 2 attempts, and the 2nd attempt is accepted only with a different agent or a stronger reasoning setting. Each step can run at most 3 times. To go further, a person has to accept a plan revision.

6. Keep task records separate from agent conversations

Agent sessions can end partway through. Familiar keeps its own task record, separate from the agents’ conversation logs. For each task it appends each version of the plan and its approval, the start and end times of each worker, check results and logs, and recorded outputs. The records are saved to files and can also be moved to PostgreSQL.

To deliver the work, :pr pushes the task branch and creates a PR. In the retrospective (retro) step, a decision record goes into the Wiki: for each option tried, what was adopted and what was dropped, the reasons and evidence, and what to try next. After the PR, :worktree new starts the follow-up in a new worktree while carrying over the task record.

Example: a task that produced 3 diagrams and an HTML report

This section follows a task that produced 3 architecture diagrams of Familiar itself and an HTML report that combines them. The request was as follows.

  Create a report featuring system diagrams for the TUI and mobile apps, as well as a flowchart and summary of the home lab configuration.
use subagents: blanced codex, claude, agy 
  

Antigravity (agy) acted as root and presented the following 8-step plan. Steps 4 and 5 were assigned to roles that agy runs itself.

StepWorkAgent
1 issueCreate an issue in GiteaClaude Code
2 buildRead the TUI code and make the TUI architecture diagramCodex
3 buildRead the mobile app and Relay code and make the mobile architecture diagramClaude Code
4 buildRead the homelab configuration record and make the flowchart source and a summaryagy (lookout)
5 buildDraw the homelab diagram and assemble the HTML reportagy (operator)
6 use-case testCheck the HTML requirements, the links to the diagrams, and the mobile and homelab descriptionsCodex
7 reviewCheck the 3 pieces of content against the implementation and the purposeClaude Code
8 retroWrite the decision record to the Gitea WikiClaude Code

The plan had 8 checks: the PNG format and size of each diagram (3), the HTML markup and its references to the diagrams, a visual check by a person, and the repository’s default cargo build, cargo test and make test.

The request went in at 22:38. After the plan was approved, steps 1 to 4, which had no dependencies, started together at 22:45. The 2 diagram agents each got their own worktree and did not wait for each other. The TUI diagram was committed in about 8 minutes and the mobile diagram in about 19 minutes.

Then agy drew the homelab diagram and assembled the HTML report. Verification checked the format of the 3 images, that the 51 files referenced by the HTML existed, the 970 tests on the PC side and more, and everything passed.

However, when an agent other than the one that built them compared the work with the implementation code and the network configuration record, it found 8 errors that the visuals and tests had not shown. For example, the mobile diagram said “reconnects every time a notification is opened”. This was corrected to match the implementation: “if connected, fetches the state again on the spot”. In the homelab diagram, traffic that the record had not tested yet was drawn as blocked, and this was changed to show it as unconfirmed.

The mobile architecture diagram before and after the fix. After the fix, Cloudflare WAF has moved to a box in front of the Worker, and the description of step 5, opening a notification, has changed
The mobile architecture diagram before (left) and after (right) the fix. The place that inspects the key header moved from inside the Worker to the Cloudflare WAF in front of it, and the behavior when a notification is opened was rewritten to match the implementation.
The router and switch part of the homelab flowchart. After the fix, Compute's destinations outside the allowlist are shown as unconfirmed with dashed lines, and the box with the rules for Desktop and the recovery network have moved
The homelab diagram before (left) and after (right) the fix. Rules that are not in the record were removed, untested traffic is marked with dashed lines, and the recovery line that does not pass through the router was moved to a separate box.

The fixes were made on new worker branches such as --mobile-diagram-2 and --uc-verifier-2, and a second verification confirmed that no problems remained. After that, Claude Code wrote the retrospective to the Gitea Wiki. From the request to the retrospective record took about an hour. A problem found during the work, “subagents mix up their working location when recording”, was also left in the Wiki as the next issue to fix.

Footage zooming in on the 3 architecture diagrams made in this task, one after another (1 min 41 s, no audio). From 0:00 the TUI, from around 0:35 the mobile app and Relay, and from around 1:00 the homelab. The diagrams shown are versions with additions made after the task, such as the type of runtime environment.

A relay for approving from a smartphone

Familiar has a companion app for Android and macOS built with Tauri 2. It opens the same task as the TUI on the PC. From the app you can approve plans, answer agents’ questions and permission requests, and view check results, verification images and Git diffs.

Between the PC and the smartphone sits a relay on Cloudflare, called Relay. It allows connections from outside without opening a VPN into the home network or opening ports on the router. Both the PC and the smartphone only open outbound WebSocket connections to Cloudflare.

Architecture diagram showing the companion app, Cloudflare WAF and the Worker Relay, Familiar on the PC, and the push notification path
Architecture of the mobile integration. The companion app is at the top, the Cloudflare WAF and Worker relay in the middle, Familiar on the PC at the bottom, and the push notification path on the right.

Only the PC holds the state of tasks, plans and approvals. The app is a second screen onto the same state. A reply from the app applies only to the specific request the PC is waiting on, and it is not used if the plan version differs. Reconnections and push notifications are treated only as signals to fetch the state again from the PC.

Relay is about 130 lines of JavaScript built on a Cloudflare Worker and Durable Object. A Durable Object per channel holds one WebSocket each for the PC and the smartphone. A message from one side is passed as is to the other side if it is connected, and it is not queued if the other side is absent. The only thing Relay stores is the record of revoked devices.

It accepts connections with the Durable Objects WebSocket Hibernation API (acceptWebSocket). The object can sleep while no messages flow, so I built Relay on the expectation that it fits the Cloudflare free tier.

Entry is checked in 2 stages. Before the Worker runs, the Cloudflare WAF drops traffic that lacks the x-familiar-relay-key header embedded at build time. The Worker then checks the channel, the device, the role (PC or smartphone) and the expiry with an HMAC-SHA256 signed token issued by the PC.

The traffic is encrypted end to end with the Noise protocol. For the first connection, :mobile pair is run on the PC, and the pairing information goes to the smartphone over a USB connection or a hand-off file. The 6-digit code shown on the smartphone is entered on the PC to confirm it, and later connections authenticate with the saved keys. Relay sees only encrypted data and connection information. If a device is lost, :mobile revoke disables just that device. Notifications about waiting requests use Firebase Cloud Messaging (FCM). Their content is encrypted too, and it is used only to find which request they refer to.

Here are the points to decide first when you build the same thing, next to how Familiar decides them.

What to decideHow Familiar decides it
Where to keep the source of truth for stateOnly the PC holds it; the app only displays and replies
What the relay can seeOnly encrypted data and connection information; messages are not queued
How to handle stale repliesAccept a reply only when the waiting request and the plan version match
How to stop a deviceRevoke it per device; the relay refuses its later connections

Running inference and work on the homelab GPU server

Besides the PC (Desktop), the homelab has a GPU server (Compute), a server for data (Storage) and a monitoring server (Ops). The 4 machines connect to a switch on the same subnet, 10.10.10.0/24, and traffic within the subnet does not pass through the router. Familiar runs on Desktop (Mac Studio). Compute has an AMD EPYC 9175F, 755.1 GiB of memory and 2 NVIDIA RTX PRO 6000 Blackwell Max-Q cards. Desktop, Compute and Storage connect at 10 GbE, and Ops at 1 GbE.

Homelab diagram that runs from the WAN through the RB5009 router and the CRS304 L2 switch to 4 machines: Compute, Desktop, Ops and Storage
Homelab diagram (based on the configuration record homearpa v23 as of 2026-11-19). From the top: the internet side, the router's egress restrictions, the switch, and the 4 machines with their services.

Familiar can use Compute in 2 ways.

The first is calling inference. The agent-gateway on Compute accepts model listing and inference requests through an OpenAI-style API (/v1). A service called Ancestor manages which model runs on which GPU. In the TUI, :ancestor shows the list of model combinations (presets) and can start or stop them. Around 1:12 in the opening video, the agent’s English reasoning log is translated into Japanese with plamo-3-translate-nvfp4-vllm on Compute (:translator gateway). From 1:16 to 1:24, the smartphone app opens the same preset list with :ancestor.

The second is handing over the work itself. famd (familiar-daemon) on Compute accepts requests and runs agents inside a Pod (a group of containers) created with rootless Podman. The run types are dsh for development and ARTEX for penetration testing and security checks. From the PC, you send a request with familiar delegation submit <request.json> or familiar session start, and when the run ends, familiar artifact download returns the working directory as a TAR. The downloaded data comes with a SHA-256 checksum.

Agents in a Pod are not given the inference server’s real address or credentials. To examine code whose contents are unknown, the request sets network_policy to inspection. That Pod is placed on a dedicated internal network, and nftables blocks all traffic except loopback and the inference relay (famd-egress:8080). DNS is not available either. This setting is fixed by the first request and does not change for the rest of the session.

The router (MikroTik RB5009) narrows traffic leaving the homelab in 2 stages. Stage 1 drops traffic to IP addresses of the regions, VPS providers and cloud providers chosen for blocking. Stage 2 limits the destinations from Compute and Storage to an HTTPS (TCP/443) allowlist. Compute’s allowlist holds 9 hosts in total for the Relay host, the Antigravity and Claude Code endpoints and the npm registry, plus the Codex and Snap endpoints. For Storage, the record confirms that HTTPS not on the allowlist is dropped (a connection to PyPI timed out). Traffic from Compute to destinations off the allowlist was not tried in this record.

Here, too, are the points to decide first when you build it, next to how Familiar decides them.

What to decideHow Familiar decides it
Where to keep credentialsIn the configuration of the services on Compute; they are not passed to the Pod
When to set network restrictionsChoose standard or inspection in the first request, and do not change it midway
What to do if the connection to the PC dropsTrack requests by ID, and the PC fetches the state again. A resend with the same Idempotency-Key gets the first result
How to receive resultsCollect the working directory as a TAR and check it against SHA-256

What changed from the earlier version

The earlier version split work among several local LLMs and managed execution, retries and integration. A person gave the request at the start and checked the result at the end. In a 55-minute demo, it generated a Django restaurant reservation system from planning through review. The current version connects Claude Code, Codex, agy and dsh through ACP, and a person approves the plan partway through the work. The earlier setup is described in familiar: a local LLM development platform and its observation tools.