Home network for coding agents
agents
I can work through a task on my laptop, hand it to an agent on my Mac mini at home, and come back to the result later. My repositories live in a remote working environment that I reach over a private network, both at home and away.
How a task reaches the Mac mini
On my laptop, I write the task in Orca. I describe the behaviour I want, the constraints, and how to verify the result. If the task needs its own environment, I create a worktree on the Mac mini and send the instructions through a remote session. The agent receives them in a terminal on the Mac mini, works with its local checkout, and runs its checks there.
From my laptop, I return to the same remote session and review the diff and the output of the checks. That shows me what the agent implemented and where I still need to step in. While the agent works in its own worktree, I can keep working in my checkout.
A sample task and how I review it
Suppose I have a small command-line tool that renames files in a folder. In Orca on my laptop, I write:
Add a
--dry-runflag for previewing changes. With the flag, show each old and new filename as a pair and leave the files in place. Without the flag, renaming should work as before. Test both cases in a temporary folder and list the commands you ran.
I send the task to an agent in a worktree on the Mac mini. When it finishes, I open the list of changed files in that same remote worktree from my laptop. I first look at how the tool parses the flag and passes it to the renaming code. Then I check that the test without the flag really renames a file, and that the dry-run test checks both the output and the contents of the folder. Correct output alone does not tell me whether the files stayed in place.
If the report only says the output matched, I run the tool myself in the Mac mini terminal from Orca on my laptop. The command with --dry-run should show IMG_0001.jpg → photo-0001.jpg while the original file stays in the folder. Then I run the same command without the flag and check that the new filename appears. If either case behaves differently, I send the agent the specific observation in the same session and review the diff again after the fix.
How the network is laid out
The dashed line shows how the VPS relays traffic when devices cannot connect directly. The diagram shows the logical connections between nodes.
Orca on the laptop connects to the Orca server on the Mac mini over the private network. The OpenWrt router is also on that network and advertises a route to my home LAN. This gives me access to devices that do not run a separate client. I did not need to forward any inbound ports on the home router.
The Mac mini also runs a Linux virtual machine with a separate IPsec tunnel. It routes traffic to internal resources. Ordinary internet traffic from the laptop uses its current connection, and only selected devices can reach the internal subnets.
Why a route sometimes isn’t enough
When I tried using an external server as my internet exit, I could no longer reach internal services by name. Switching the exit also changed where my DNS queries went. They reached a DNS server that did not have answers for the internal zones. For daily use I went back to split DNS, which sends queries for internal domains to their own DNS servers.
What happens after the Mac mini restarts
The Mac mini can turn itself back on when power returns. Its private-network client cannot run until I unlock the encrypted disk. The OpenWrt router provides a route to the local address of the Mac mini while the machine is still starting up.
I tested SSH unlocking over a wired connection from inside my home network. I have yet to test the full sequence from outside the network through the router. After unlocking the disk, I still need to sign in to a graphical session for the Orca server to start.