<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Aapakari</title>
  <id>https://aapakari.org/feed.xml</id>
  <updated>2026-11-27T12:00:00+02:00</updated>
  <link rel="alternate" href="https://aapakari.org/"/>
  <link rel="self" href="https://aapakari.org/feed.xml"/>
  <entry>
    <title>I tested Hindsight across Claude Code and Codex. Recall jumped 0/10 to 8/10 (full guide)</title>
    <link rel="alternate" href="https://aapakari.org/a05-hindsight/"/>
    <id>https://aapakari.org/a05-hindsight/</id>
    <updated>2026-11-27T12:00:00+02:00</updated>
    <content type="html">&lt;p&gt;Your coding agents share nothing.&lt;/p&gt;
&lt;p&gt;On 25 November I wired a clean Hindsight memory across Claude Code and Codex over ten unwritten project decisions, and cross-harness recall jumped from 0/10 right without memory (1 wrong, 9 don’t know) to 8/10 right with it (0 wrong, 2 don’t know).&lt;/p&gt;
&lt;p&gt;One shared memory under five coding agents on my Mac costs money, and it is not safe out of the box. At published paid API list prices, my measured multi-agent load projects to $44.72 to $89.40 a month for background extraction and consolidation, and one bank shared across folders leaks private project context unless you limit it to opted-in folders. When the memory follows the work, though, I can pick up a task in another harness and the agent already knows what I was doing. My takeaway from daily use: “It is not about harness anymore, it’s about the best model.”&lt;/p&gt;
&lt;p&gt;Hindsight did not pay for, review or approve this test. Tested on &lt;a href="https://github.com/hindsightai/hindsight"&gt;&lt;code&gt;@vectorize-io/hindsight-coding-agents&lt;/code&gt;&lt;/a&gt; 0.8.8, &lt;a href="https://pypi.org/project/hindsight-embed/"&gt;&lt;code&gt;hindsight-embed&lt;/code&gt;&lt;/a&gt; 1.3.0, &lt;a href="https://code.claude.com/docs/en/overview"&gt;Claude Code&lt;/a&gt; 2.1.330 and &lt;a href="https://developers.openai.com/codex/integrations/github/"&gt;Codex CLI&lt;/a&gt; 0.171.0.&lt;/p&gt;
&lt;p&gt;Shared memory only helps if each session loads clean rules first. Pages 4 to 13 of my free 37-page Agent Checklists PDF hold my paste-in starter AGENTS.md and seven one-page setup habits I run alongside it. &lt;a href="https://aapakari.org/go/a05?utm_source=x&amp;amp;utm_campaign=xa05"&gt;Download the 37-page PDF free at aapakari.org&lt;/a&gt; when you join my Thursday Aapakari Notes briefing.&lt;/p&gt;
&lt;h2 id="days-of-one-shared-memory-on-one-mac"&gt;109 days of one shared memory on one Mac&lt;/h2&gt;
&lt;p&gt;My shared Hindsight memory has been running since 8 August 2026 (109 days as of 25 November). Claude Code joined the shared bank on 15 October, Codex joined at the end of October (29 to 30 October), and Cursor, Antigravity, and Grok Build now connect to the same local stack. All five harnesses share local lifecycle hooks plus six filtered MCP tools (&lt;code&gt;recall&lt;/code&gt;, &lt;code&gt;reflect&lt;/code&gt;, &lt;code&gt;retain&lt;/code&gt;, &lt;code&gt;sync_retain&lt;/code&gt;, &lt;code&gt;list_mental_models&lt;/code&gt;, and &lt;code&gt;get_mental_model&lt;/code&gt;), with destructive delete and clear tools blocked.&lt;/p&gt;
&lt;p&gt;Most of the stack runs locally, and only text synthesis is paid. The Hindsight API server (1.2.3 in live use after upgrading from 0.9.0 on 20 November, and 1.3.0 on the clean test bed), local embeddings (&lt;code&gt;EmbeddingGemma 300M&lt;/code&gt;, Q8 GGUF, 768 dimensions), the local cross-encoder reranker (&lt;code&gt;ms-marco-MiniLM-L-6-v2&lt;/code&gt;), and embedded PostgreSQL 18.1 with &lt;code&gt;pgvector&lt;/code&gt; all run locally at $0 API cost. Direct &lt;code&gt;recall&lt;/code&gt; queries stay local and make 0 LLM calls. Only fact extraction, background consolidation, and &lt;code&gt;reflect&lt;/code&gt; synthesis call an external model API.&lt;/p&gt;
&lt;p&gt;On 25 November at 13:30 Helsinki time, the live database held 390,618 stored facts with 0 missing vectors in 7.78 GB (7,779 MB) of storage, with 111.9 hours of uptime since the 20 November upgrade (733 MB RSS for the server and 262 MB RSS for the embedding service). The known-answer embedding baseline read 0.684 with 0.0004 drift against a 0.02 tolerance, 96 of 96 ops checks passed over 24 hours, off-site backups sat 12.0 hours old across 3 destinations (with a verified restore drill of 248,674 memories), and 157 retain runs completed that day with 0 failures at an 11.7 s median.&lt;/p&gt;
&lt;p&gt;All of that was green, and the dashboard still said &lt;code&gt;NEEDS ATTENTION&lt;/code&gt; that afternoon, because the recall hook had failed 12 times in 24 hours (19 ok, 12 failed). Across 25 real recalls in that window, median latency was 7.7 s, max latency hit 21.0 s, and 5 calls ran over 15 s (while the lightweight canary stayed at 1.2 s). Three months in, that amber badge is the normal state: I use the memory every day, and I still have to watch it.&lt;/p&gt;
&lt;h2 id="the-clean-install-test-010-without-memory-810-with-it"&gt;The clean-install test: 0/10 without memory, 8/10 with it&lt;/h2&gt;
&lt;p&gt;Daily use only gives you anecdotes. The question I wanted to measure was narrower: close one coding agent, open another, and check whether shared memory brings back decisions that never made it into the repository. To test that without touching my live database or leaking private notes, I set up an isolated test bed on 25 November with its own home directory, database, and &lt;code&gt;@vectorize-io/hindsight-coding-agents&lt;/code&gt; 0.8.8 talking to &lt;code&gt;hindsight-embed&lt;/code&gt; 1.3.0 (PostgreSQL 18.1.0, OpenAI &lt;code&gt;gpt-4o-mini&lt;/code&gt; for extraction and reflect, local CPU embeddings and reranker).&lt;/p&gt;
&lt;p&gt;Inside that bed I created a neutral local Python repository (&lt;code&gt;invoice-kit&lt;/code&gt;, 1 commit, 5 passing tests) and defined ten concrete engineering decisions that never appeared in the code, comments, tests, git log, or any instruction file: a banker’s rounding rule, a webhook retry allowlist, a monthly CSV export filename, a customer ID format, a CSV null sentinel, a tax jurisdiction tie-break, a dead-letter topic and retention window, a payment-sync idempotency header and TTL, a credit note sequence, and an audit archive format. I seeded five decisions in Claude Code 2.1.330 (&lt;code&gt;claude-sonnet-5-5&lt;/code&gt;, native auto-memory disabled) and asked fresh Codex CLI 0.171.0 (&lt;code&gt;gpt-5-mini&lt;/code&gt;) sessions about them, then reversed the direction for the other five. I asked every question twice, once with memory off and once with Hindsight wired, and scored the answers against a rubric I fixed in advance: right, partly right, wrong, or don’t know.&lt;/p&gt;
&lt;p&gt;Without shared memory, fresh sessions of the other agent scored 0/10 right, 0/10 partly right, 1/10 wrong, and 9/10 don’t know, with a median time to first answer of 13.68 s. With Hindsight wired, the score jumped to 8/10 right, 0/10 partly right, 0/10 wrong, and 2/10 don’t know, with a median time to first answer of 16.41 s (+2.73 s overall). Split by direction, Claude Code reading Codex’s decisions scored 5/5 and answered 3.28 s faster with memory (13.30 s vs 16.58 s median) because it stopped grepping an empty repo before giving up, while Codex reading Claude Code’s decisions scored 3/5 and slowed from 6.99 s to 18.38 s median.&lt;/p&gt;
&lt;p&gt;Here are two of the answers side by side. On Decision D05 (CSV null sentinel in &lt;code&gt;invoice_kit/exports.py&lt;/code&gt;, seeded in Claude Code and queried in Codex), Codex without memory read the stub &lt;code&gt;csv.DictWriter&lt;/code&gt; call, said there was no column-specific exception, and scored WRONG in 7.18 s. With Hindsight wired, the reflect hook returned the exact rule in 9.92 s and Codex answered RIGHT in 18.38 s, giving empty strings for optional fields except &lt;code&gt;vat_id&lt;/code&gt; serialized as &lt;code&gt;N/A&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;In the opposite direction, on Decision D08 (payment-sync idempotency header and TTL, seeded in Codex and queried in Claude Code), Claude Code without memory spent 19.85 s searching the repo and scored DON’T KNOW rather than guessing a header name. With Hindsight wired, the reflect hook took 10.98 s and Claude Code answered RIGHT in 16.30 s (3.55 s faster), returning &lt;code&gt;X-InvoiceKit-Idempotency&lt;/code&gt; (explicitly not &lt;code&gt;Idempotency-Key&lt;/code&gt;) and the 72-hour retention window while noting that the code did not implement it yet.&lt;/p&gt;
&lt;p&gt;The most useful result was in the bed’s diagnostic logs. Hindsight’s &lt;code&gt;UserPromptSubmit&lt;/code&gt; reflect hook retrieved the exact right decision on all 10 of 10 questions (median hook latency 8.82 s, range 6.55 s to 10.98 s). Both misses happened inside Codex after retrieval: on D02 (webhook retry allowlist), Codex ignored the injected hook context and searched only the repo files; on D03 (export filename), Codex called &lt;code&gt;hindsight_search_pages&lt;/code&gt;, saw five newly created Knowledge Pages still reading &lt;code&gt;"No content yet"&lt;/code&gt; because the hourly cron refresh had not run yet, and discarded the accurate reflect snippet it already held. Memory retrieval hit 10/10; the receiving harness dropped 2/10.&lt;/p&gt;
&lt;h2 id="what-running-shared-memory-costs-every-month"&gt;What running shared memory costs every month&lt;/h2&gt;
&lt;p&gt;For the cost, I added up 18 complete counting days (7 November through 24 November 2026) from my live usage counter. Across those 18 days, the memory stack made 31,030 LLM API calls (1,723.9/day mean, 1,562/day median, range 551 to 3,673/day), processing 307.77M input tokens (73.99M cached, 24.0%) and 33.86M output tokens. Scaled to a 30-day month, that is 51,717 calls, 512.95M input tokens (389.63M uncached, 123.31M cached), and 56.44M output tokens.&lt;/p&gt;
&lt;p&gt;Background consolidation drives most of the bill, taking 67.2% of all input tokens and 54.2% of output tokens. Fact extraction (&lt;code&gt;retain_extract_facts&lt;/code&gt;) takes 32.2% of input tokens (helped by a 67.4% prompt-cache hit rate) and 45.5% of output tokens, while &lt;code&gt;reflect&lt;/code&gt; accounts for 0.6% of input and 0.1% of output tokens, and direct &lt;code&gt;recall&lt;/code&gt; makes 0 LLM calls.&lt;/p&gt;
&lt;p&gt;Across those 18 days, NVIDIA Nemotron 3.5 Super VL handled 99.80% of calls (30,967 of 31,030), with &lt;code&gt;gemini-3.5-flash-lite&lt;/code&gt; (49 calls, 0.16%) and &lt;code&gt;gemini-3.1-flash-lite&lt;/code&gt; (12 calls, 0.04%) as fallbacks. Priced at published paid API list rates checked on 25 November 2026, my measured mix projects to $44.72 to $89.40/month with prompt caching ($50.89 to $105.43/month without caching), depending on the OpenRouter provider tier. Running the exact same 30-day volume on a single paid model costs $42.67/month on OpenAI &lt;code&gt;gpt-5-nano&lt;/code&gt;, $101.56/month on OpenAI &lt;code&gt;gpt-4o-mini&lt;/code&gt; (the bed test model), $185.15/month on Google &lt;code&gt;gemini-3.1-flash-lite&lt;/code&gt;, $213.37/month on OpenAI &lt;code&gt;gpt-5-mini&lt;/code&gt;, or $261.69/month on Google &lt;code&gt;gemini-3.5-flash-lite&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;That number comes from heavy use: roughly 1,724 calls and 19.0M tokens per day, from five coding harnesses sharing one database. A lighter solo workflow at one-tenth of that volume (around 172 calls/day) scales to roughly $4.47 to $8.94/month on Nemotron 3.5 Super VL or $10.16/month on &lt;code&gt;gpt-4o-mini&lt;/code&gt; with prompt caching, while local embeddings, reranking, and PostgreSQL stay at $0 API cost.&lt;/p&gt;
&lt;h2 id="what-broke-in-109-days-and-the-privacy-boundary-you-must-set"&gt;What broke in 109 days, and the privacy boundary you must set&lt;/h2&gt;
&lt;p&gt;A live extraction server needs more care than a text file in git. Four things stood out over three months:&lt;/p&gt;
&lt;ol type="1"&gt;
&lt;li&gt;&lt;strong&gt;Models and server versions churn underneath you.&lt;/strong&gt; My primary extraction model changed at least four times between August and November as provider speed, stability, and cost shifted. Moving the server from 0.9.0 to 1.2.3 on 20 November took a full rehearsal on a restored copy (28 migrations across 358,201 memory units, checked on 200 known-answer queries where 1.2.3 matched live at MRR 0.369 vs 0.353). I also pinned my local &lt;code&gt;EmbeddingGemma 300M&lt;/code&gt; embedder on purpose: on 10,000 real memories and 900 queries it scored MRR@10 0.733, ahead of EmbeddingGemma 2 (0.697) and Hindsight’s default &lt;code&gt;bge-small-en-v1.5&lt;/code&gt; (0.631), and keeping it avoided re-embedding the whole store.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Storage and RAM grow until you audit them.&lt;/strong&gt; A 31 October resource audit caught a dead 955 MB unused HNSW vector index (&lt;code&gt;idx_scan=0&lt;/code&gt;), capped Postgres buffers (&lt;code&gt;shared_buffers=64MB&lt;/code&gt;, pool max 10), dropped real Postgres RAM from 548 MB to 346-353 MB, and shrank the database from 7,075 MB to 6,123 MB. We kept the local cross-encoder reranker after an A/B check on 30 real first prompts showed dropping it cut median top-10 overlap to 0.40 (low) and 0.20 (mid).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;First-prompt lookups are not instant.&lt;/strong&gt; In live use, real recalls take 7.7 s median (up to 21.0 s), and in the clean bed the reflect hook took 8.82 s median. Hooks also time out or fail under load (12 failures in 24 hours on the 25 November snapshot), so your agents must degrade cleanly when memory is unreachable.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Unscoped shared memory leaks private context across projects.&lt;/strong&gt; By default the coding-agents package enables memory in every repository (&lt;code&gt;coding-agent::{gitProject}&lt;/code&gt;), and a single global bank across all folders carries private work context into unrelated repos. Even per-repo banks still ingest transcripts from every directory you open unless you flip &lt;code&gt;optInOnly&lt;/code&gt; to &lt;code&gt;true&lt;/code&gt; and list exact folders in &lt;code&gt;optInPaths&lt;/code&gt;. Filter out destructive MCP tools too, and keep raw secrets out of agent transcripts.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The fair objection to any memory server: why pay $45 to $89 a month and manage Postgres plus opt-in privacy rules when a checked-in &lt;code&gt;AGENTS.md&lt;/code&gt; and plain Markdown decision docs are deterministic, diffable in git, and cost zero tokens? My answer: durable rules still belong in &lt;code&gt;AGENTS.md&lt;/code&gt;. Shared memory earns its keep only for the stream of mid-session decisions, dead ends, and cross-harness handoffs nobody stops to transcribe into docs, and only when you lock it to opted-in folders and accept the extraction bill.&lt;/p&gt;
&lt;h2 id="copy-this"&gt;Copy this&lt;/h2&gt;
&lt;p&gt;Every command below was run on 25 November 2026 inside a clean isolated home directory against &lt;code&gt;@vectorize-io/hindsight-coding-agents@0.8.8&lt;/code&gt; and &lt;code&gt;hindsight-embed@1.3.0&lt;/code&gt; (verified on macOS with &lt;code&gt;uv 0.11.19&lt;/code&gt;, &lt;code&gt;rustc 1.100.0&lt;/code&gt;, and Node &lt;code&gt;v26.13.1&lt;/code&gt;). On macOS, a current Rust toolchain is required in local daemon mode because &lt;code&gt;litellm&lt;/code&gt; compiles from source via maturin; Linux and Windows install from wheels. You also need either an LLM API key exported in your environment (such as &lt;code&gt;OPENAI_API_KEY&lt;/code&gt;) or the local Claude Code CLI on &lt;code&gt;PATH&lt;/code&gt; for fact extraction.&lt;/p&gt;
&lt;p&gt;Install the shared integration for Claude Code and Codex in local daemon mode (one command wires hooks in &lt;code&gt;~/.claude/settings.json&lt;/code&gt; and &lt;code&gt;~/.codex/hooks.json&lt;/code&gt;, MCP servers, companion skills, and &lt;code&gt;~/.hindsight/coding-agent.json&lt;/code&gt;; this completed in 0.6 s on the clean bed):&lt;/p&gt;
&lt;div class="sourceCode" id="cb1"&gt;&lt;pre class="sourceCode bash"&gt;&lt;code class="sourceCode bash"&gt;&lt;span id="cb1-1"&gt;&lt;a href="#cb1-1" aria-hidden="true" tabindex="-1"&gt;&lt;/a&gt;&lt;span class="ex"&gt;npx&lt;/span&gt; &lt;span class="at"&gt;--yes&lt;/span&gt; @vectorize-io/hindsight-coding-agents@0.8.8 install claude-code codex &lt;span class="at"&gt;--server&lt;/span&gt; daemon&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Before opening any private repository, lock &lt;code&gt;~/.hindsight/coding-agent.json&lt;/code&gt; to opt-in by folder and disable automatic daily background updates (&lt;code&gt;autoUpdate&lt;/code&gt; defaults to &lt;code&gt;true&lt;/code&gt;, which refreshes the staged npm runtime once a day):&lt;/p&gt;
&lt;div class="sourceCode" id="cb2"&gt;&lt;pre class="sourceCode json"&gt;&lt;code class="sourceCode json"&gt;&lt;span id="cb2-1"&gt;&lt;a href="#cb2-1" aria-hidden="true" tabindex="-1"&gt;&lt;/a&gt;&lt;span class="fu"&gt;{&lt;/span&gt;&lt;/span&gt;
&lt;span id="cb2-2"&gt;&lt;a href="#cb2-2" aria-hidden="true" tabindex="-1"&gt;&lt;/a&gt;  &lt;span class="dt"&gt;&amp;quot;serverMode&amp;quot;&lt;/span&gt;&lt;span class="fu"&gt;:&lt;/span&gt; &lt;span class="st"&gt;&amp;quot;daemon&amp;quot;&lt;/span&gt;&lt;span class="fu"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span id="cb2-3"&gt;&lt;a href="#cb2-3" aria-hidden="true" tabindex="-1"&gt;&lt;/a&gt;  &lt;span class="dt"&gt;&amp;quot;embedVersion&amp;quot;&lt;/span&gt;&lt;span class="fu"&gt;:&lt;/span&gt; &lt;span class="st"&gt;&amp;quot;1.3.0&amp;quot;&lt;/span&gt;&lt;span class="fu"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span id="cb2-4"&gt;&lt;a href="#cb2-4" aria-hidden="true" tabindex="-1"&gt;&lt;/a&gt;  &lt;span class="dt"&gt;&amp;quot;optInOnly&amp;quot;&lt;/span&gt;&lt;span class="fu"&gt;:&lt;/span&gt; &lt;span class="kw"&gt;true&lt;/span&gt;&lt;span class="fu"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span id="cb2-5"&gt;&lt;a href="#cb2-5" aria-hidden="true" tabindex="-1"&gt;&lt;/a&gt;  &lt;span class="dt"&gt;&amp;quot;optInPaths&amp;quot;&lt;/span&gt;&lt;span class="fu"&gt;:&lt;/span&gt; &lt;span class="ot"&gt;[&lt;/span&gt;&lt;span class="st"&gt;&amp;quot;~/projects/your-repo&amp;quot;&lt;/span&gt;&lt;span class="ot"&gt;]&lt;/span&gt;&lt;span class="fu"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span id="cb2-6"&gt;&lt;a href="#cb2-6" aria-hidden="true" tabindex="-1"&gt;&lt;/a&gt;  &lt;span class="dt"&gt;&amp;quot;autoUpdate&amp;quot;&lt;/span&gt;&lt;span class="fu"&gt;:&lt;/span&gt; &lt;span class="kw"&gt;false&lt;/span&gt;&lt;span class="fu"&gt;,&lt;/span&gt;&lt;/span&gt;
&lt;span id="cb2-7"&gt;&lt;a href="#cb2-7" aria-hidden="true" tabindex="-1"&gt;&lt;/a&gt;  &lt;span class="dt"&gt;&amp;quot;autoInject&amp;quot;&lt;/span&gt;&lt;span class="fu"&gt;:&lt;/span&gt; &lt;span class="st"&gt;&amp;quot;reflect&amp;quot;&lt;/span&gt;&lt;/span&gt;
&lt;span id="cb2-8"&gt;&lt;a href="#cb2-8" aria-hidden="true" tabindex="-1"&gt;&lt;/a&gt;&lt;span class="fu"&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;With &lt;code&gt;optInOnly&lt;/code&gt; set to &lt;code&gt;true&lt;/code&gt;, every directory outside &lt;code&gt;optInPaths&lt;/code&gt; stays inert: no bank is created, nothing is retained, and no seed runs. Every approved repository still shares one per-repo bank (&lt;code&gt;coding-agent::{gitProject}&lt;/code&gt;) across Claude Code, Codex, and any of the 20+ other supported coding agents you wire later.&lt;/p&gt;
&lt;p&gt;Check per-harness tool usage, inspect daemon health, or remove every hook and MCP entry cleanly (uninstall ran in 0.3 s on the clean bed):&lt;/p&gt;
&lt;div class="sourceCode" id="cb3"&gt;&lt;pre class="sourceCode bash"&gt;&lt;code class="sourceCode bash"&gt;&lt;span id="cb3-1"&gt;&lt;a href="#cb3-1" aria-hidden="true" tabindex="-1"&gt;&lt;/a&gt;&lt;span class="ex"&gt;npx&lt;/span&gt; &lt;span class="at"&gt;--yes&lt;/span&gt; @vectorize-io/hindsight-coding-agents@0.8.8 stats&lt;/span&gt;
&lt;span id="cb3-2"&gt;&lt;a href="#cb3-2" aria-hidden="true" tabindex="-1"&gt;&lt;/a&gt;&lt;span class="ex"&gt;uvx&lt;/span&gt; hindsight-embed@1.3.0 &lt;span class="at"&gt;-p&lt;/span&gt; coding-agent daemon status&lt;/span&gt;
&lt;span id="cb3-3"&gt;&lt;a href="#cb3-3" aria-hidden="true" tabindex="-1"&gt;&lt;/a&gt;&lt;span class="ex"&gt;npx&lt;/span&gt; &lt;span class="at"&gt;--yes&lt;/span&gt; @vectorize-io/hindsight-coding-agents@0.8.8 uninstall all&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Before relying on the setup, run a quick cross-harness smoke test in one opted-in repo: tell Claude Code one concrete naming or retry decision that does not exist in any file, exit the session so the stop hook retains it, open a fresh Codex session in the same folder, and ask for that exact decision.&lt;/p&gt;
&lt;h2 id="credits-and-prior-work"&gt;Credits and prior work&lt;/h2&gt;
&lt;p&gt;&lt;a href="https://hindsight.ai/oss/"&gt;Vectorize’s own Hindsight coding-agents documentation&lt;/a&gt; (and its &lt;a href="https://hindsight.ai/oss/blog/2026/04/07/one-memory-for-every-ai-tool"&gt;multi-agent memory write-up&lt;/a&gt;) reports AMB sdebench numbers over 61 repository tasks (mean of 3 runs): agents solve 60-61 of 61 either way, while Hindsight cuts corrections per task from 0.85 to 0.36 on Claude Code ($0.445 to $0.338 per task), 1.34 to 0.47 on Codex CLI ($0.577 to $0.276 per task), and 1.20 to 0.80 on opencode ($0.634 to $0.553 per task). Our clean-bed test is independent and unaffiliated with Vectorize.&lt;/p&gt;
&lt;p&gt;For the native memory baseline, Eliran Kotzero (23 November 2026) and the MemU team (2 November 2026) documented why built-in memories stay siloed: Claude Code loads only the first 200 lines or 25 KB of &lt;code&gt;MEMORY.md&lt;/code&gt;, Codex ships memories off by default with a 32 KiB instruction cap, and Cursor removed editor Memories in 2.1. On measurement discipline, Richard Harvey at OmniMem (24 November 2026) ran a 10-pair dead-end test (cutting dead ends from 8/10 to 0/10 and median tokens from 833k to 616k, sign test p = 0.05) and argued that n = 10 is a real signal, not final proof, the same bar I apply here. And for teams that prefer zero extraction cost and plain files over a memory server, Arindam Majumder (21 October 2026) published a practical five-layer Markdown plus OpenLore MCP setup.&lt;/p&gt;
&lt;p&gt;If you switch between Claude Code and Codex on the same repository, do you keep hand-curated Markdown docs, run a shared memory server, or re-explain your decisions every session?&lt;/p&gt;
&lt;p&gt;Want the paste-in starter AGENTS.md and all 30 one-page agent habits in one file? &lt;a href="https://aapakari.org/go/a05?utm_source=x&amp;amp;utm_campaign=xa05"&gt;Download the free 37-page Agent Checklists PDF at aapakari.org&lt;/a&gt;, plus the Thursday briefing: what held, what broke and one sourced number, in under 500 words.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>I tested Claude Code vs Codex on 6 planted bugs. It ended 6-0 (full guide)</title>
    <link rel="alternate" href="https://aapakari.org/a04-live-dead-live/"/>
    <id>https://aapakari.org/a04-live-dead-live/</id>
    <updated>2026-11-23T12:00:00+02:00</updated>
    <content type="html">&lt;p&gt;All six models saw the bugs.&lt;/p&gt;
&lt;p&gt;On 31 October I sent eight small pull requests to six AI code reviewers, and two of the six setups would still have let every bug through. Twenty days and three tool upgrades later, I ran the exact same eight pull requests again, twice per reviewer.&lt;/p&gt;
&lt;p&gt;The models were never the weak link. What failed was everything wrapped around them: a severity threshold, a reviewer that blocks good work, and an empty quota. One setup flipped a bug from blocking to ignored within ten minutes on the same day, and a free tier that had returned empty errors suddenly caught all six.&lt;/p&gt;
&lt;p&gt;Before trusting any agent check, walk through a checklist. Agent Checklists is my free 37-page PDF with a starter AGENTS.md and 30 one-page habits including six on checking agent work. &lt;a href="https://www.aapakari.org/?utm_source=x&amp;amp;utm_campaign=xa04"&gt;Sign up for my weekly email at aapakari.org&lt;/a&gt; and download it right away.&lt;/p&gt;
&lt;h2 id="live-dead-live-the-rule-from-electricians"&gt;Live-dead-live: the rule from electricians&lt;/h2&gt;
&lt;p&gt;Electricians do not trust a voltage tester that reads dead. Before touching a wire, they prove the tester on a known live source, test the wire, and then prove the tester on the live source again. If the tester broke in between, the dead reading meant nothing.&lt;/p&gt;
&lt;p&gt;Checks around a coding agent need the exact same three-step routine:&lt;/p&gt;
&lt;ol type="1"&gt;
&lt;li&gt;&lt;strong&gt;Live.&lt;/strong&gt; Feed the check a known-bad input and watch it fire.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dead.&lt;/strong&gt; Run the real change through it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Live again.&lt;/strong&gt; After any model swap, tool upgrade, prompt edit, quota shift, or config change, prove it still fires on the known-bad input.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;One scoring rule sits underneath all three steps: a check that could not run is &lt;code&gt;PARTIAL&lt;/code&gt;, never &lt;code&gt;PASS&lt;/code&gt;. A timeout, a non-zero exit, or a missing verdict is an unrun check, not an approval.&lt;/p&gt;
&lt;h2 id="the-eight-pull-requests"&gt;The eight pull requests&lt;/h2&gt;
&lt;p&gt;To test reviewers without noise (see &lt;a href="/method/"&gt;how I test AI code reviewers&lt;/a&gt;), I built eight fixture pull requests against a small Python library. Six plant one bug each while keeping the existing test suite green, each under a plausible commit title such as &lt;code&gt;perf: skip the empty slice at the end of chunk()&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The six bugs cover classic review misses: an off-by-one in &lt;code&gt;chunk()&lt;/code&gt; that drops the last chunk, a deleted null check in &lt;code&gt;truncate()&lt;/code&gt;, a test skipped to hide a regression in &lt;code&gt;stats.py&lt;/code&gt;, an inverted flag in &lt;code&gt;slugify()&lt;/code&gt;, a swallowed error in &lt;code&gt;duration.py&lt;/code&gt; that returns zero, and a tautological test on &lt;code&gt;truncate()&lt;/code&gt; word boundaries.&lt;/p&gt;
&lt;p&gt;Two more pull requests are clean controls: a documentation and real-test addition (&lt;code&gt;c1&lt;/code&gt;), and a behaviour-preserving refactor (&lt;code&gt;c2&lt;/code&gt;) that builds the duration error once up front. A reviewer that approves everything fails on the six bugs; a reviewer that blocks everything fails on the clean controls.&lt;/p&gt;
&lt;p&gt;To count as fired, a reviewer has to return &lt;code&gt;REQUEST_CHANGES&lt;/code&gt; and name the planted file and line within three lines. Any timeout, non-zero exit, missing verdict, or conflicting verdict scores &lt;code&gt;COULD NOT RUN&lt;/code&gt;, which resolves to &lt;code&gt;PARTIAL&lt;/code&gt;.&lt;/p&gt;
&lt;h2 id="october-models-passed-plumbing-failed"&gt;31 October: models passed, plumbing failed&lt;/h2&gt;
&lt;p&gt;On 31 October I ran every fixture once against six reviewers plus a fake control script (&lt;code&gt;lgtm.py&lt;/code&gt;) that approves every pull request.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://code.claude.com/docs/en/overview"&gt;Claude Code&lt;/a&gt; 2.1.316 on Opus 5.5, Sonnet 5.5, and Haiku 5.5 all scored &lt;code&gt;LIVE&lt;/code&gt;: six out of six planted bugs caught, zero false alarms on the two clean controls. Even Haiku caught all six (the three spot-checked outputs explained them accurately).&lt;/p&gt;
&lt;p&gt;Codex CLI 0.166.0 (&lt;code&gt;codex review&lt;/code&gt; on &lt;code&gt;gpt-6.1-sol&lt;/code&gt; at &lt;code&gt;xhigh&lt;/code&gt; reasoning) spotted and explained all six planted lines, then rated all six &lt;code&gt;P2&lt;/code&gt;. According to &lt;a href="https://developers.openai.com/codex/integrations/github/"&gt;OpenAI’s GitHub review documentation&lt;/a&gt;, Codex flags only &lt;code&gt;P0&lt;/code&gt; and &lt;code&gt;P1&lt;/code&gt; issues on GitHub so comments stay focused on high-priority risks. At that threshold, zero of six blocked (&lt;code&gt;DEAD&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;Note the caveat: local &lt;code&gt;codex review&lt;/code&gt; is not GitHub’s hosted reviewer, which runs its own unpublished prompt. Three days later, on 3 November, TestMu AI published an independent test running &lt;code&gt;codex&lt;/code&gt; twice on four planted bugs and saw the same pattern: Codex flagged all four, and rated the two user-visible bugs &lt;code&gt;P2&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;OpenCode 2.2.5 on MiniMax M3.1 Flash caught all six bugs, then blocked the clean refactor &lt;code&gt;c2&lt;/code&gt; for allocating an error object on every call (measuring valid parses roughly 47% slower). A reviewer that blocks valid code trains teams to override or disable it, so the rubric scores a blocked clean control as &lt;code&gt;DEAD&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;OpenCode 2.2.5 on DeepSeek V4.1 Flash’s free tier returned empty output and exit code &lt;code&gt;1&lt;/code&gt; on all eight fixtures with HTTP &lt;code&gt;429&lt;/code&gt; (&lt;code&gt;Free usage limit reached&lt;/code&gt;). The drill scored it &lt;code&gt;PARTIAL&lt;/code&gt;. A CI check that only blocks when it sees &lt;code&gt;REQUEST_CHANGES&lt;/code&gt; would have merged all six bugs that afternoon with silence logged as approval. On 1 October, Michael Ashley hit the same failure in production when GitHub Copilot hit its review quota limit and five open pull requests waited on reviews that never arrived.&lt;/p&gt;
&lt;p&gt;The approve-everything control scored zero of six and &lt;code&gt;DEAD&lt;/code&gt;, as expected.&lt;/p&gt;
&lt;h2 id="november-twenty-days-and-three-tool-upgrades-later"&gt;20 November: twenty days and three tool upgrades later&lt;/h2&gt;
&lt;p&gt;On 25 August, Avery Lin argued in an opinion post that the AI reviewer is the one pipeline stage nobody tests, and that teams need a planted-bug corpus re-run on a schedule to catch silent drift.&lt;/p&gt;
&lt;p&gt;On 20 November, twenty days and three upgrades later (Claude Code 2.1.328, Codex CLI 0.170.0, OpenCode 2.2.6), I ran the exact same eight pull requests again with the same prompt and the same drill script, twice per reviewer between 11:37 and 11:54.&lt;/p&gt;
&lt;p&gt;Claude Code did not move. Opus 5.5 (55 s and 56 s), Sonnet 5.5 (39 s and 37 s), and Haiku 5.5 (43 s and 42 s) all scored six of six bugs and zero false alarms in both runs.&lt;/p&gt;
&lt;p&gt;Codex (&lt;code&gt;codex review&lt;/code&gt; on &lt;code&gt;gpt-6.1-sol&lt;/code&gt; at &lt;code&gt;xhigh&lt;/code&gt;) moved within ten minutes on the same day. In Run 1 (finished at 11:42, 333 s), it rated the off-by-one bug &lt;code&gt;P1&lt;/code&gt; and the other five &lt;code&gt;P2&lt;/code&gt;, scoring one of six blocking (&lt;code&gt;DEAD&lt;/code&gt;). In Run 2 (finished at 11:49, 380 s), it rated all six &lt;code&gt;P2&lt;/code&gt; again and approved (&lt;code&gt;DEAD&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;Counting an earlier 31 October writable-sandbox smoke run where the off-by-one was &lt;code&gt;P1&lt;/code&gt;, the off-by-one scored &lt;code&gt;P1&lt;/code&gt; in two of four runs, while the other five bugs stayed &lt;code&gt;P2&lt;/code&gt; across all three drill runs. Across all three drill runs, five of the six bugs never triggered a &lt;code&gt;P0&lt;/code&gt; or &lt;code&gt;P1&lt;/code&gt; block, and the sixth flipped with the run.&lt;/p&gt;
&lt;p&gt;MiniMax M3.1 Flash stayed consistent: six of six bugs caught, and one false alarm on &lt;code&gt;c2&lt;/code&gt; in both runs (562 s and 305 s), measuring 25% to 44% slower valid parses in Run 1. Three runs, three false alarms.&lt;/p&gt;
&lt;p&gt;DeepSeek V4.1 Flash’s free tier swung from eight of eight unrun on 31 October to six of six caught with zero false alarms (&lt;code&gt;LIVE&lt;/code&gt;) in both 20 November runs. Run 1 finished in 211 s; Run 2 took 770 s, with two reviews taking over four minutes each (272 s and 288 s). Whether a free-tier reviewer works or hangs depends on the day and the hour.&lt;/p&gt;
&lt;h2 id="three-checks-that-died-between-uses"&gt;Three checks that died between uses&lt;/h2&gt;
&lt;p&gt;Code reviewers are not the only checks that go quiet without error. Here are three checks from my own setup that died between uses:&lt;/p&gt;
&lt;ol type="1"&gt;
&lt;li&gt;&lt;strong&gt;A folder fence disappeared on a CLI upgrade.&lt;/strong&gt; On 17 October, upgrading OpenCode to v2 (&lt;code&gt;2.0.32&lt;/code&gt;) swapped the build agent’s defaults to allow all external directory operations with no &lt;code&gt;external_directory&lt;/code&gt; rule. A live run read and wrote files outside its working directory without asking, until a same-day check caught and restored the fence.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A permission grant detached after an interpreter update.&lt;/strong&gt; After a managed Python runtime was replaced on 11 August, a daily backup health check lost macOS Full Disk Access (which binds to an execution identity). The health check failed five mornings in a row (12 to 16 August) for permission errors while real overnight backups underneath were also failing (&lt;code&gt;BACKUP_FAILED_DEVICE_LOCKED&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A cleanup job ran inside active hours for two months.&lt;/strong&gt; After morning operating hours extended on 1 September, all four scheduled times for a browser-cleanup script fell inside active windows where its own rule forbade quitting. The job logged a normal start every run while returning an empty list for roughly two months until 31 October.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="copy-this"&gt;Copy this&lt;/h2&gt;
&lt;p&gt;To run the drill on your own reviewer, you need two branches:&lt;/p&gt;
&lt;ol type="1"&gt;
&lt;li&gt;Make a branch with one bug your tests do not catch, such as an off-by-one in a loop bound, and open it as a pull request.&lt;/li&gt;
&lt;li&gt;Open a second pull request with a clean change, so you also see whether the reviewer blocks good code.&lt;/li&gt;
&lt;li&gt;Send both to your reviewer with your usual settings. The first must be blocked and the second approved.&lt;/li&gt;
&lt;li&gt;Keep both branches and send them again after every model swap, tool upgrade, prompt edit, quota shift, or config change. A timeout, a non-zero exit, or a missing verdict counts as &lt;code&gt;PARTIAL&lt;/code&gt;, never &lt;code&gt;PASS&lt;/code&gt;.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="credits"&gt;Credits&lt;/h2&gt;
&lt;p&gt;Live-dead-live (called prove-test-prove in the UK) comes from electrical safety testing. Planting bugs on purpose comes from mutation testing, and watching a check fail before trusting a pass is the red step of TDD. Closer to AI coding agents, Christopher Maher wrote about his “bite check” on 22 June 2026, Ichigo (&lt;code&gt;@iiiichigo_chan&lt;/code&gt;) included a “Test the tester” step on 24 October 2026, Avery Lin made the case for scheduled planted-bug corpora on 25 August 2026, Michael Ashley documented his 1 October Copilot quota failure, and TestMu AI documented Codex’s &lt;code&gt;P2&lt;/code&gt; threshold on 3 November 2026.&lt;/p&gt;
&lt;p&gt;Has your AI code reviewer or CI gate ever failed a planted-bug check, or have you only ever watched it print green?&lt;/p&gt;
&lt;p&gt;My next Articles come by email, in full, one a week. Joining also gets you Agent Checklists, my free 37-page PDF: a starter AGENTS.md and 30 one-page habits for working with coding agents. &lt;a href="https://www.aapakari.org/?utm_source=x&amp;amp;utm_campaign=xa04"&gt;Get both at aapakari.org&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>How to run n8n's Nod 24/7 on a Mac mini in 1 hour (full setup)</title>
    <link rel="alternate" href="https://aapakari.org/a02-nod-mac-mini/"/>
    <id>https://aapakari.org/a02-nod-mac-mini/</id>
    <updated>2026-11-20T12:00:00+02:00</updated>
    <content type="html">&lt;p&gt;Grok Bot is easy. Hermes is work.&lt;/p&gt;
&lt;p&gt;I wanted the first without the second. Nod got close, but it stops when your laptop sleeps. So I gave it a Mac mini.&lt;/p&gt;
&lt;p&gt;Nod is n8n Labs’ open-source AI assistant, out as a research preview since 10 November. This is how mine runs: Docker on a Mac mini, a private HTTPS address over Tailscale, an encrypted nightly backup and a restore I actually tested. It took me an hour, with my coding agent typing the commands.&lt;/p&gt;
&lt;p&gt;I do not let an agent run commands like these unchecked. The habits I use to check its work are in Agent Checklists, a free 37-page PDF. &lt;a href="https://www.aapakari.org/?utm_source=x&amp;amp;utm_campaign=xa02"&gt;Sign up for my weekly email at aapakari.org&lt;/a&gt; and download it right away.&lt;/p&gt;
&lt;h2 id="why-nod-easy-like-grok-bot-mine-like-hermes"&gt;Why Nod: easy like Grok Bot, mine like Hermes&lt;/h2&gt;
&lt;p&gt;Grok Bot was the easy one. In August I had about 20 agents on it, on my Mac mini, laptop and phone. On 29 August the quota ran out for every one of them at once, because they all draw from one pool.&lt;/p&gt;
&lt;p&gt;Hermes was the powerful one. I hosted it myself: three gateways, a dashboard and a watchdog, an 8-model fallback chain and 48 scheduled jobs. Keeping it alive became a job. On 28 October I switched it all off, and on 14 November I stopped using it.&lt;/p&gt;
&lt;p&gt;Nous now hosts Hermes for you, as Hermes Cloud. That removes the upkeep, but the agent and its memory live on their servers. I wanted mine at home.&lt;/p&gt;
&lt;p&gt;Nod sits in between. Its desktop app walks you through a few setup screens. It works with the model you connect, from a ChatGPT plan to MiniMax or OpenRouter. And it runs on your own machine, which is also its one catch.&lt;/p&gt;
&lt;h2 id="the-catch-nod-sleeps-with-your-laptop"&gt;The catch: Nod sleeps with your laptop&lt;/h2&gt;
&lt;p&gt;Nod’s docs say it plainly. A desktop install runs schedules and background work “only while Nod is open and your computer is awake.”&lt;/p&gt;
&lt;p&gt;A run that comes due while Nod is stopped “runs once when Nod is running again.” So a 7:00 brief on a sleeping laptop runs after you wake it, not at 7:00. Nod’s desktop release of 16 November stops idle sleep while local work runs, but closing the lid still puts the computer to sleep, and a schedule needs it awake when it comes due.&lt;/p&gt;
&lt;p&gt;The docs’ answer is a server. A self-hosted one “keeps running after you close its web or desktop client, provided the server stays awake and connected.” A Mac mini can be that server.&lt;/p&gt;
&lt;h2 id="what-you-need"&gt;What you need&lt;/h2&gt;
&lt;p&gt;A Mac mini, Docker Desktop and Tailscale. Nod’s Mac mini page says to start with 8 GB of memory for Docker and 50 GB of free disk. I gave Docker 4 CPUs and 8 GB.&lt;/p&gt;
&lt;p&gt;Budget disk for the build too. After my first build, Nod’s images took 4.7 GB and Docker’s build cache another 8.2 GB. &lt;code&gt;docker builder prune&lt;/code&gt; gives the cache back.&lt;/p&gt;
&lt;p&gt;You need no model key to install. You connect a model once the server is up. Tailscale was already on my Macs; if it isn’t on yours, set it up first.&lt;/p&gt;
&lt;h2 id="install-the-stack"&gt;Install the stack&lt;/h2&gt;
&lt;p&gt;I built Nod from source, at commit df4cd601. Pin yours too: by the next night, Nod’s main branch was 53 commits past the one I installed.&lt;/p&gt;
&lt;p&gt;It takes three commands. Clone the repo, then run &lt;code&gt;sh setup.sh&lt;/code&gt;. It writes a private &lt;code&gt;.env&lt;/code&gt; with a server token, a Vault key and a database password, and never prints them.&lt;/p&gt;
&lt;p&gt;Then &lt;code&gt;docker compose up -d --build --wait&lt;/code&gt; builds and starts everything. The first build takes a few minutes.&lt;/p&gt;
&lt;p&gt;That &lt;code&gt;.env&lt;/code&gt; already binds Nod to 127.0.0.1 and turns analytics off. The one line I changed was &lt;code&gt;NOD_PUBLIC_URL&lt;/code&gt;, set to the private address from the next step.&lt;/p&gt;
&lt;p&gt;When the command returns, six containers are running. The server is Nod itself and the only one with a port. Postgres keeps conversations, settings and schedules.&lt;/p&gt;
&lt;p&gt;The workspace is Nod’s own Linux computer for files and commands, behind a small firewall container. The browser is where it opens websites. The runtime is a narrow Docker connection that lets the server run commands only in those two.&lt;/p&gt;
&lt;h2 id="reach-it-privately"&gt;Reach it privately&lt;/h2&gt;
&lt;p&gt;The server token opens everything. In Nod’s words, it “grants full access to that person’s assistant and connected accounts.” So I kept Nod off the internet.&lt;/p&gt;
&lt;p&gt;The Mac mini page offers two private ways in: an SSH tunnel, or an HTTPS proxy you reach over a VPN. Tailscale Serve is that proxy in one command, &lt;code&gt;tailscale serve --bg 4310&lt;/code&gt;. It gives the mini an HTTPS address that only devices on my tailnet can open, and Nod’s own port answers only on the mini itself.&lt;/p&gt;
&lt;p&gt;That exact address goes into &lt;code&gt;NOD_PUBLIC_URL&lt;/code&gt;. Then I checked it: no token gave 401, a wrong token 401, the right token 200.&lt;/p&gt;
&lt;h2 id="connect-your-laptop-and-phone"&gt;Connect your laptop and phone&lt;/h2&gt;
&lt;p&gt;On the laptop, the Nod app has “Connect to a server.” Paste the address and the token. The app keeps the token in the system’s secure storage, and closing the app does not stop the server.&lt;/p&gt;
&lt;p&gt;What it shows first is the server’s own setup: connect a model there. It is the server’s first run, not a second assistant.&lt;/p&gt;
&lt;p&gt;On the phone, Telegram is the quick way in. It needs no open port, because Nod reaches Telegram over an outbound connection. Safari also works at the same address while Tailscale is on. App sign-ins go through that address as well; mine are Gmail, Drive and Sheets.&lt;/p&gt;
&lt;h2 id="keep-it-alive"&gt;Keep it alive&lt;/h2&gt;
&lt;p&gt;Three settings keep Nod up without me. Every container has &lt;code&gt;restart: unless-stopped&lt;/code&gt;. Docker Desktop starts when I sign in. And &lt;code&gt;sudo pmset -a autorestart 1&lt;/code&gt; turns the Mac back on after a power cut.&lt;/p&gt;
&lt;p&gt;The mini’s sleep timer was already off. If yours isn’t, &lt;code&gt;sudo pmset -a sleep 0&lt;/code&gt; turns system sleep off.&lt;/p&gt;
&lt;p&gt;The catch is the order. Docker starts after sign-in, not at boot, and my auto-login is off. So after a power cut, someone has to sign in before Nod comes back.&lt;/p&gt;
&lt;p&gt;Nod’s own docs say the same, and add that FileVault keeps automatic login off on a Mac. Plan on typing that password after every restart.&lt;/p&gt;
&lt;h2 id="back-it-up-then-prove-the-restore"&gt;Back it up, then prove the restore&lt;/h2&gt;
&lt;p&gt;Nod ships &lt;code&gt;backup.sh&lt;/code&gt;. It stops the server, browser and workspace while it copies, then starts them again. The copy includes &lt;code&gt;.env&lt;/code&gt;, so it holds the server token, the Vault key and the database password. The docs say to store it encrypted: without the original Vault key, saved credentials can’t be recovered.&lt;/p&gt;
&lt;p&gt;Mine runs every night at 04:20 from launchd. It calls &lt;code&gt;backup.sh&lt;/code&gt;, encrypts the result with age, decrypts it once to check it and keeps the newest 7, in a folder my cloud backup already copies off the Mac.&lt;/p&gt;
&lt;p&gt;A backup you have never restored is a guess, so I restored one. I decrypted the first backup, made a fresh checkout at the same commit and ran &lt;code&gt;restore.sh&lt;/code&gt; under a new project name. Decrypting and checking out took 1 second, the restore 6 seconds, and 50 of 50 tables came back.&lt;/p&gt;
&lt;p&gt;By then the live database had 56 tables. The 6 extra appeared when I connected Telegram after that backup. So run a backup again after every setup change.&lt;/p&gt;
&lt;p&gt;I never started the restored copy. The docs warn that two copies “can run the same schedules or receive messages for the same bot.” Mine would have polled the same Telegram bot. I deleted the drill copy, and the live server kept running through all of it.&lt;/p&gt;
&lt;h2 id="the-numbers-so-far"&gt;The numbers so far&lt;/h2&gt;
&lt;p&gt;On the first evening, the six containers used about 1.1 GB of memory. The server took 535 MiB, the browser 456 MiB and Postgres 110 MiB. The data volumes held 84 MB.&lt;/p&gt;
&lt;p&gt;My first 7:00 brief, my Gmail and the day’s AI news, started at 07:00:02 and was in the app at 07:06:09. The first nightly backup had run at 04:20 that morning and came to about 4 MB encrypted, up from 41 KB at setup. Through that first night no container exited or restarted.&lt;/p&gt;
&lt;h2 id="what-broke"&gt;What broke&lt;/h2&gt;
&lt;p&gt;Nothing serious, but each of these cost me time:&lt;/p&gt;
&lt;ol type="1"&gt;
&lt;li&gt;Two Docker engines. I also had Homebrew’s &lt;code&gt;docker&lt;/code&gt; command and Colima. The &lt;code&gt;docker&lt;/code&gt; first on your PATH decides which engine you talk to, so I unlinked Homebrew’s. Nod’s Mac mini page assumes Docker Desktop.&lt;/li&gt;
&lt;li&gt;Two steps need your Mac password: installing Docker Desktop and &lt;code&gt;pmset&lt;/code&gt;. My agent could not do those alone.&lt;/li&gt;
&lt;li&gt;“This host is not permitted.” Once &lt;code&gt;NOD_PUBLIC_URL&lt;/code&gt; was the HTTPS address, Nod refused 127.0.0.1 with a 403. It answers at that one address only. Nod documented the error the same night.&lt;/li&gt;
&lt;li&gt;The health check wants the token. &lt;code&gt;/api/health&lt;/code&gt; answered 401 without it, so an uptime check must send the token or count a 401 as up.&lt;/li&gt;
&lt;li&gt;My laptop’s agent blamed Tailscale. The first coding agent I tried there had no network at all, not even example.com, and it offered to reinstall Tailscale. Tailscale was fine. If an agent says your server is unreachable, test a public site from the same session first.&lt;/li&gt;
&lt;li&gt;Memory doubled after onboarding: about 550 MB right after the first start, about 1.1 GB that evening.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="which-one-should-you-pick"&gt;Which one should you pick?&lt;/h2&gt;
&lt;p&gt;Pick Grok Bot if you want the least setup and can live with its cloud, its choice of model and one shared quota.&lt;/p&gt;
&lt;p&gt;Pick Hermes if you want every knob. Run it yourself if you enjoy that, or pay Nous to run it in Hermes Cloud.&lt;/p&gt;
&lt;p&gt;Pick Nod on a Mac mini if you want your assistant at home, on the model you choose, and can give it an hour and a tested backup. My upkeep log from the first day: one Docker restart by hand, and a laptop app that lost its connection to the server more often than I liked. The server never went down by itself.&lt;/p&gt;
&lt;h2 id="copy-this"&gt;Copy this&lt;/h2&gt;
&lt;p&gt;This is my setup, pinned to commit df4cd601 on macOS. Replace every &lt;code&gt;&amp;lt;...&amp;gt;&lt;/code&gt; with your own value. Docker Desktop and &lt;code&gt;pmset&lt;/code&gt; ask for your Mac password.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;# 1. Docker Desktop. In its settings: start at sign-in, 8 GB of memory.
brew install --cask docker-desktop

# 2. A private HTTPS address on your tailnet. It prints the address.
tailscale serve --bg 4310

# 3. Nod, cloned into your home folder (the backup below expects ~/nod)
cd ~
git clone https://github.com/n8n-io/nod.git
cd nod/deployment/self-host
git checkout df4cd601
sh setup.sh&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The &lt;code&gt;.env&lt;/code&gt; lines that matter. &lt;code&gt;setup.sh&lt;/code&gt; fills in the last three; never share them.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;PORT=4310
NOD_BIND_ADDRESS=127.0.0.1
NOD_PUBLIC_URL=https://&amp;lt;your-mac&amp;gt;.&amp;lt;your-tailnet&amp;gt;.ts.net
NOD_ANALYTICS_ENABLED=false
NOD_AUTH_TOKEN=&amp;lt;generated&amp;gt;
NOD_VAULT_KEY=&amp;lt;generated&amp;gt;
NOD_POSTGRES_PASSWORD=&amp;lt;generated&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Start it, keep the Mac on, and look at what you have:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;docker compose up -d --build --wait
sudo pmset -a sleep 0 autorestart 1
docker compose ps
docker system df&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;My nightly backup, trimmed. Run it from launchd at 04:20, and keep the age identity that decrypts it in your password manager. Mine is in &lt;code&gt;pass&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#!/bin/bash
set -euo pipefail
export PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
STACK=&amp;quot;$HOME/nod/deployment/self-host&amp;quot;
DEST=&amp;quot;$HOME/Backups/nod&amp;quot;
TS=$(date -u +%Y%m%dT%H%M%SZ)
WORK=$(mktemp -d)
mkdir -p &amp;quot;$DEST&amp;quot;
# Docker Desktop starts only after sign-in, so wait for it
for _ in $(seq 1 30); do docker info &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&amp;amp; break; sleep 10; done
sh &amp;quot;$STACK/backup.sh&amp;quot; &amp;quot;$WORK/nod-$TS&amp;quot;
tar -C &amp;quot;$WORK&amp;quot; -czf - &amp;quot;nod-$TS&amp;quot; | age -r &amp;lt;your-age-public-key&amp;gt; -o &amp;quot;$DEST/nod-$TS.tar.gz.age&amp;quot;
rm -rf &amp;quot;$WORK&amp;quot;
# check that it decrypts and holds the database dump
pass show &amp;lt;your-age-identity-entry&amp;gt; | age -d -i - &amp;quot;$DEST/nod-$TS.tar.gz.age&amp;quot; | tar -tzf - | grep -q &amp;quot;nod-$TS/postgres.dump&amp;quot;
# keep the newest 7
ls -1t &amp;quot;$DEST&amp;quot;/nod-*.tar.gz.age | tail -n +8 | while read -r old; do rm -f &amp;quot;$old&amp;quot;; done&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The restore drill. It restores into its own project and starts only that project’s database, so the copy never runs as a second assistant.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;mkdir -p ~/nod-drill/backup
pass show &amp;lt;your-age-identity-entry&amp;gt; | age -d -i - ~/Backups/nod/nod-&amp;lt;TS&amp;gt;.tar.gz.age | tar -xz -C ~/nod-drill/backup
git clone https://github.com/n8n-io/nod.git ~/nod-drill/checkout
cd ~/nod-drill/checkout &amp;amp;&amp;amp; git checkout &amp;quot;$(cat ~/nod-drill/backup/nod-&amp;lt;TS&amp;gt;/source-commit)&amp;quot;
cd deployment/self-host
sh restore.sh ~/nod-drill/backup/nod-&amp;lt;TS&amp;gt; nod-drill
# count the tables in the drill&amp;#39;s database only
docker compose -p nod-drill up -d --wait postgres
docker compose -p nod-drill exec -T postgres psql -U nod -d nod -tAc &amp;quot;select count(*) from information_schema.tables where table_schema=&amp;#39;public&amp;#39;&amp;quot;
# delete the drill project and its files, never your live one
docker compose -p nod-drill down --volumes
cd ~ &amp;amp;&amp;amp; rm -rf ~/nod-drill&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Where does your always-on agent live today: in someone’s cloud, or on a box you own?&lt;/p&gt;
&lt;p&gt;My next Articles come by email, in full, one a week. Joining also gets you Agent Checklists, my free 37-page PDF: a starter AGENTS.md and 30 one-page habits for working with coding agents. &lt;a href="https://www.aapakari.org/?utm_source=x&amp;amp;utm_campaign=xa02"&gt;Get both at aapakari.org&lt;/a&gt;&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>How to run Claude Code and Codex on 2 Macs from your phone with T3 Code (full setup)</title>
    <link rel="alternate" href="https://aapakari.org/a03-t3-code/"/>
    <id>https://aapakari.org/a03-t3-code/</id>
    <updated>2026-11-16T12:00:00+02:00</updated>
    <content type="html">&lt;p&gt;I typed one word: resume.&lt;/p&gt;
&lt;p&gt;Claude Code had left a 292-read test running. Codex took the same thread, picked up the job and found a bug Claude had missed.&lt;/p&gt;
&lt;p&gt;The thread ran on my Mac mini. I had started it from my phone that afternoon.&lt;/p&gt;
&lt;p&gt;That one thread is my whole setup in small: several coding agents in one app, two Macs and a phone. Here is how it fits together, with 25 days of numbers from my own machine and the things that broke.&lt;/p&gt;
&lt;h2 id="what-t3-code-is"&gt;What T3 Code is&lt;/h2&gt;
&lt;p&gt;T3 Code is one app on top of the coding agents you already pay for. It isn’t one of them: Claude Code, Codex, Cursor, Grok and OpenCode do the work, and T3 Code sends them your requests. It gives them one sidebar of threads, one picker and tools to start and message each other.&lt;/p&gt;
&lt;p&gt;It’s open source and runs on the desktop, in a browser and on your phone. If you want the theory, Theo, who builds it, explains the difference between the app you see and the harness underneath in his Article “What is a harness?”.&lt;/p&gt;
&lt;h2 id="my-setup"&gt;My setup&lt;/h2&gt;
&lt;p&gt;My Mac mini is always on and is the main host. My MacBook Air is my laptop, with the same agents, and my iPhone is a remote.&lt;/p&gt;
&lt;p&gt;I use each agent for what it’s good at. Claude Code with Opus and Fable orchestrates. Codex, Cursor and Grok build. OpenCode does the reviews and bulk jobs.&lt;/p&gt;
&lt;p&gt;In 25 days, the T3 on my Mac mini logged 5,248 agent runs: 3,739 on Claude, 935 on OpenCode, 375 on Codex, 107 on Cursor, 91 on Grok and 1 on Antigravity.&lt;/p&gt;
&lt;h2 id="five-agents-almost-no-setup"&gt;1. Five agents, almost no setup&lt;/h2&gt;
&lt;p&gt;Adding an agent usually takes two steps on each Mac: install its command-line tool and sign in once. Then switch it on in Settings → Providers.&lt;/p&gt;
&lt;p&gt;From then on, every new thread starts with a picker: choose the agent, then the model. For Codex and Claude Code you can add a second account, say one for work and one of your own.&lt;/p&gt;
&lt;p&gt;Why run several? They are good at different things, so each gets the job it does best. For second opinions, the model that builds never reviews its own work. And when one agent hits its limit, another can carry on in the same thread.&lt;/p&gt;
&lt;h2 id="switch-agents-in-the-middle-of-a-task"&gt;2. Switch agents in the middle of a task&lt;/h2&gt;
&lt;p&gt;Here is the day from the opening, 28 October, in my local time:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;14:49&lt;/strong&gt; I started the thread from my phone.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;17:29&lt;/strong&gt; Claude Code hit its session limit: “resets 5:50pm”. At 17:50 T3 posted “Continue where you left off.” by itself, and Claude carried on.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;19:41&lt;/strong&gt; Claude left a 292-read test running in the background and ended its turn.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;19:54&lt;/strong&gt; I switched the thread to Codex and typed “resume”.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;19:57&lt;/strong&gt; Codex found a bug in the test’s data and stopped the run. At 20:02, with the sample rebuilt, it started the test again.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;20:21&lt;/strong&gt; Codex finished the test.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;22:06&lt;/strong&gt; Grok planned the next test, in the same thread.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;22:52&lt;/strong&gt; I switched back to Claude. Its first words: “I’ll recover what happened while other runtimes had this thread”, and then it answered my question.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Since 23 October, my threads have moved from one agent to another 74 times.&lt;/p&gt;
&lt;p&gt;What moves when you switch, according to T3’s docs, is a selection, not a summary. T3 doesn’t ask the old agent to summarise. It hands the new one a selection that favors your original request, the latest requests and answers, and what the commands returned. Short threads move whole.&lt;/p&gt;
&lt;p&gt;The old agent’s private reasoning, its tool state and any attachments stay behind. The new agent gets pointers to what was left out and can read it with T3’s thread tool. The selection is capped at 16,000 tokens by default. If the new agent has no room, T3 starts it fresh with a bounded selection of the history and still sends your message.&lt;/p&gt;
&lt;p&gt;One habit helps: if a rule really matters, repeat it in your first message to the new agent.&lt;/p&gt;
&lt;h2 id="ask-for-helpers-in-plain-words"&gt;3. Ask for helpers in plain words&lt;/h2&gt;
&lt;p&gt;The agent you talk to can hand parts of a job to other agents. There’s no config file, plugin or agent definition to write. You say which agent and model should do what, in your own words, and the agent asks T3 to start a helper thread for each part.&lt;/p&gt;
&lt;p&gt;T3 adds its own tools to every agent it runs. Its FAQ puts it this way: “Our MCP is a cookbook we hand the kitchen, but the chef won’t open it unless you tell them to.”&lt;/p&gt;
&lt;p&gt;Here is one from 14 November. At 21:04 I typed this to Claude Code (Opus 5.5):&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;have T3 subagents on gpt-6.1 sol build it and opencode/minimax-token-plan review it, you verify.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;21:19&lt;/strong&gt; I changed my mind: “actually have T3 subagents on opus 5.5 build it”. Claude switched the builder and kept the rest.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;21:26&lt;/strong&gt; T3 started the builder, a helper thread on Opus 5.5.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;21:34&lt;/strong&gt; The builder was done: built, tested and committed, off by default, nothing pushed. T3 posted its result into my thread.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;21:36&lt;/strong&gt; Claude ran the tests again itself: 46 new tests passed.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;21:37&lt;/strong&gt; T3 started the reviewer, a helper thread on OpenCode with MiniMax M3.1 Flash.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;21:52&lt;/strong&gt; The verdict: approve with fixes. 8 findings, 3 to fix, none blocking.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Claude didn’t need to check on them. When a helper finishes, T3 wakes the thread that asked.&lt;/p&gt;
&lt;p&gt;By 15 November my agents had started 1,153 helper threads this way: 700 on OpenCode, 226 on Claude Code, 96 on Codex, 74 on Grok and 57 on Cursor. The models I ask for most are MiniMax M3.1 Flash, Opus 5.5, Grok 4.7 and GPT-6.1 Sol.&lt;/p&gt;
&lt;p&gt;Compared with other harnesses I’ve used, this needs no special setup or knowledge. It’s been handy: I pick the builder and the reviewer in the sentence I’d type anyway.&lt;/p&gt;
&lt;h2 id="two-macs-that-work-as-one"&gt;4. Two Macs that work as one&lt;/h2&gt;
&lt;p&gt;Linking two Macs lets an agent on one start, message and wait on threads on the other.&lt;/p&gt;
&lt;p&gt;To set it up, turn on Settings → Labs → Linked environments on both Macs. Then, on the Mac you work from, open Settings → Environments → Linked environments → Link, pick the other Mac and choose how much its agents may do there.&lt;/p&gt;
&lt;p&gt;You can also ask an agent to link your other Mac by name. It shows a card, and you approve it. Links last 30 days, and then you link again.&lt;/p&gt;
&lt;p&gt;I linked mine on 15 November. The first tries failed because that Labs switch was off, first on the Mac mini, then on the MacBook Air. Twelve seconds after I said it was on, the link was live.&lt;/p&gt;
&lt;p&gt;About fifteen seconds later, the agent on my Mac mini sent a message to an agent working on my MacBook Air. Four minutes after that, the Air’s agent had connected an app on the Air to my Mac mini, clicking through the app’s window itself. It pasted the login token from my password manager without ever showing it.&lt;/p&gt;
&lt;p&gt;T3 can also pick the Mac for you. In the desktop or web app, open Settings → Environments → Load balancing and turn on Auto balance. Each Mac starts at Normal, and you can set it to Prefer, Less often or Manual only.&lt;/p&gt;
&lt;p&gt;When you start a new thread in a project grouped across both Macs, T3 checks which machines have CPU and memory free and picks one. If it can’t tell, you pick, and on the phone you always pick. Threads that are already running stay where they are.&lt;/p&gt;
&lt;p&gt;A sensible start: Prefer for the machine that stays on, Less often for your laptop.&lt;/p&gt;
&lt;p&gt;And because the Mac mini never sleeps, the work doesn’t stop when I do. 279 runs started between midnight and 6:00 on 13 of the last 21 nights.&lt;/p&gt;
&lt;h2 id="t3-connect-the-easy-way-in"&gt;5. T3 Connect: the easy way in&lt;/h2&gt;
&lt;p&gt;This is the easy part.&lt;/p&gt;
&lt;p&gt;On the Mac that stays on, open Settings → Sharing &amp;amp; access, sign in and turn on T3 Connect. Or run &lt;code&gt;t3 up&lt;/code&gt;: it asks how your other devices should reach the Mac, and you choose T3 Connect. Then sign in to the same account on your phone or laptop and pick the Mac. There are no router settings and no ports to open.&lt;/p&gt;
&lt;p&gt;Phones and browsers don’t count toward the free limit of 3 machines. Once connected, T3 also learns the Mac’s home-network and Tailscale addresses and uses whichever address answers first, so at home it can use your home network directly. 53 of my threads were started from my phone.&lt;/p&gt;
&lt;p&gt;What does it cost you? Your sessions don’t go through T3’s relay. According to T3’s FAQ, the relay sets up the link but doesn’t carry your sessions. They run through a Cloudflare tunnel on your Mac.&lt;/p&gt;
&lt;p&gt;The relay is still trusted, though. T3’s own docs call it a “trusted broker” and say device approval limits what a compromised relay could do. So turn on Require approval for new devices in Settings → Sharing &amp;amp; access as soon as your T3 has it. A new device then has to show a code you approve, even if someone gets into your T3 account.&lt;/p&gt;
&lt;p&gt;Notifications share titles, too. Push notifications to your phone need T3 Connect and the Mac’s Publish agent activity setting, which sends your thread titles and status to T3’s relay.&lt;/p&gt;
&lt;p&gt;If you’d rather have no tunnel at all, pair your devices over Tailscale and run &lt;code&gt;t3 connect link --publish-only&lt;/code&gt;. You keep the phone notifications, and T3 manages no tunnel to your Mac.&lt;/p&gt;
&lt;h2 id="jobs-that-run-while-i-sleep"&gt;6. Jobs that run while I sleep&lt;/h2&gt;
&lt;p&gt;T3 runs prompts on a timer, and each run can start a fresh thread. Nine of my jobs run this way, like a daily backup and update check, a daily notes clean-up and a weekly Mac audit. Eight of the nine run on OpenCode, 70 runs so far.&lt;/p&gt;
&lt;p&gt;Agents schedule one-off checks for themselves, too. They have set up 13, like checking the first unattended run of a new job.&lt;/p&gt;
&lt;h2 id="what-broke"&gt;7. What broke&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;My home folder as a project.&lt;/strong&gt; T3 indexes each project’s files, and my project was my whole home folder, so finished runs set off scans that froze T3 on the Mac mini for minutes at a time. In the app it showed as “T3 Connect returned an error”, but Connect was fine. Fix: use real project folders, or list the big folders in an .ignore file.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Moving to a new Mac.&lt;/strong&gt; T3 couldn’t read its own encrypted connection file there. Fix: set the old file aside so T3 makes a new one, then sign in to T3 Connect again.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A job that failed while saying it succeeded.&lt;/strong&gt; Jobs that start a fresh thread wanted a git checkout, and my folder had none. They failed, and the job list still said “succeeded”. Fix: run them in the project’s main folder.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Codex failing right after a switch.&lt;/strong&gt; On 28 October, Codex failed twice within 3 seconds of starting, and T3 recorded no reason. I switched back to Claude.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Secrets on disk.&lt;/strong&gt; T3’s secret pop-up keeps a password out of the agent’s sight, but the file it saves stays on your disk. If your T3 folder is in a cloud backup, delete those files after use.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="copy-this"&gt;Copy this&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;# 1. Install T3 Code (macOS or Linux)
curl -fsSL https://t3.codes/install.sh | sh

# 2. On the Mac that stays on: let your other devices reach it.
#    Choose T3 Connect; t3 up also keeps T3 running in the background.
t3 up

# 3. On every Mac, sign in to each agent once
claude auth login
codex login
agent login            # Cursor
grok login             # Grok Build
opencode auth login

# 4. Link the second Mac. First turn on Settings &amp;gt; Labs &amp;gt;
#    Linked environments on both Macs. On the other Mac:
t3 pair --tailscale --ttl 15m
#    On the Mac you work from, with the address and code it printed:
t3 environment link https://ADDRESS/ --pairing-code CODE --access approval-required

# 5. Optional: phone notifications without a T3-managed tunnel
t3 connect link --publish-only&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then three settings:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Settings → Providers:&lt;/strong&gt; switch on the agents you signed in to.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Settings → Environments → Load balancing:&lt;/strong&gt; turn on Auto balance.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Settings → Sharing &amp;amp; access:&lt;/strong&gt; turn on Require approval for new devices.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And a first prompt for your agent:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Which machines can you reach? Start a thread on my MacBook Air that checks its free disk space, and tell me what it finds.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And one for helpers:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Have a T3 subagent on Codex with GPT-6.1 Sol build this, and one on Cursor with Grok 4.7 review it. Then check their work yourself.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;The rules I’d copy:&lt;/p&gt;
&lt;ol type="1"&gt;
&lt;li&gt;&lt;strong&gt;Give each agent one job.&lt;/strong&gt; Orchestrate, build, review. The model that builds never reviews its own work.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;When an agent runs out, switch the thread instead of starting over.&lt;/strong&gt; Pick another agent and type “resume”.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Put the work on the machine that never sleeps.&lt;/strong&gt; The laptop and the phone are remotes.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Never make your home folder a project.&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="is-it-worth-it"&gt;Is it worth it?&lt;/h2&gt;
&lt;p&gt;If you have one Mac and one subscription, T3 is a nicer window, not yet a new way of working: a handover needs a second agent to hand to. If you pay for two agents or more, or you have a machine that stays on, this is the setup I’d copy first.&lt;/p&gt;
&lt;p&gt;Which agent would you hand your next stuck task to?&lt;/p&gt;
&lt;p&gt;I’m writing one of these a week, and each one also goes out in full in my weekly email. Get the next one at &lt;a href="https://www.aapakari.org/?utm_source=x&amp;amp;utm_campaign=xa03"&gt;aapakari.org&lt;/a&gt;.&lt;/p&gt;
</content>
  </entry>
  <entry>
    <title>How to sandbox your coding agent in 10 minutes (full setup)</title>
    <link rel="alternate" href="https://aapakari.org/a01-fence/"/>
    <id>https://aapakari.org/a01-fence/</id>
    <updated>2026-11-13T12:00:00+02:00</updated>
    <content type="html">&lt;p&gt;An upgrade removed my agent’s fence. In October my coding agent read and wrote files outside its project folder, and not one prompt asked me first. I put the limit back. The shell walked straight around it.&lt;/p&gt;
&lt;p&gt;That is the whole lesson, and it took me five incidents to believe it: &lt;strong&gt;a rule the agent is told is not a fence. A fence is something the operating system refuses.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Here is what happened, and the file that finally held.&lt;/p&gt;
&lt;h2 id="the-upgrade-that-removed-the-fence"&gt;1. The upgrade that removed the fence&lt;/h2&gt;
&lt;p&gt;On 17 October Homebrew moved OpenCode, the coding agent my builds run on, to version 2. Its default build agent now allowed everything, with no rule for paths outside the working folder.&lt;/p&gt;
&lt;p&gt;I found out the plain way: a live run read and wrote files outside its folder, and no prompt appeared.&lt;/p&gt;
&lt;p&gt;The fix looked easy. One setting per run denies “external directories”. I tested it: the agent’s write tool was refused outside the folder, and its read tool too.&lt;/p&gt;
&lt;p&gt;Then I tried the shell. &lt;code&gt;touch ../outside&lt;/code&gt; worked. So did &lt;code&gt;cat&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;The permission covered the agent’s file tools. The shell is a different door.&lt;/p&gt;
&lt;p&gt;On 10 November it happened again from the other side. A backup model, building in its own folder, had its read tool refused on a note outside the folder. It read the note with the shell instead.&lt;/p&gt;
&lt;p&gt;It wasn’t malicious. It was being helpful.&lt;/p&gt;
&lt;h2 id="isolation-that-lived-in-the-prompt"&gt;2. Isolation that lived in the prompt&lt;/h2&gt;
&lt;p&gt;Back in July I ran five agent workers in parallel. The prompt said each needed its own isolated folder, and to stop if there was none.&lt;/p&gt;
&lt;p&gt;When I looked at the running processes, all five had the same working directory as their parent. The tool that started them had no option for a separate folder per worker. The isolation was a sentence in the prompt.&lt;/p&gt;
&lt;p&gt;That setup is retired now, and the fix I planned for it was never built. But it was the first time I wrote down: a prompt rule is not isolation.&lt;/p&gt;
&lt;h2 id="dont-print-secrets-is-not-a-rule-a-model-can-keep"&gt;3. “Don’t print secrets” is not a rule a model can keep&lt;/h2&gt;
&lt;p&gt;On 27 October I asked an agent for a read-only audit of my Mac. The brief said: don’t print secrets.&lt;/p&gt;
&lt;p&gt;It ran &lt;code&gt;cat ~/.zshrc&lt;/code&gt;. That file held an API key in plain text. The key went to the outside model doing the audit, and into two local session databases.&lt;/p&gt;
&lt;p&gt;The key was removed and revoked. The lesson was worse than the leak: the model can’t know a file holds a secret until it has printed it.&lt;/p&gt;
&lt;p&gt;Ten days earlier, my main agent’s own redaction had failed the same way, three times in one day:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;cutting a line at 60 characters still printed most of a proxy password&lt;/li&gt;
&lt;li&gt;a filter on key names missed the token fields and printed 60 characters of a refresh token&lt;/li&gt;
&lt;li&gt;macOS &lt;code&gt;sed&lt;/code&gt; has no &lt;code&gt;\s&lt;/code&gt;, so a redaction pattern matched nothing and the secret went straight to the transcript&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A sub-agent then repeated the same mistake in the same session.&lt;/p&gt;
&lt;p&gt;The proxy password and the refresh token were rotated afterwards.&lt;/p&gt;
&lt;p&gt;What works is parsing the file and printing only key names and value types:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;jq 'map_values(type)' config.json&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Never the values. Not even “redacted” ones.&lt;/p&gt;
&lt;h2 id="read-only-and-it-built-189-mb"&gt;4. Read-only, and it built 189 MB&lt;/h2&gt;
&lt;p&gt;On 31 October a “read-only” job needed one file from a library in a production project. It imported the library by absolute path.&lt;/p&gt;
&lt;p&gt;There was no prebuilt version for the option it asked for, so the library did what it was built to do: it cloned and compiled its native code, 189 MB, into the production project’s dependencies folder.&lt;/p&gt;
&lt;p&gt;The live service was fine. The job never wrote a line itself. It caused a write through someone else’s code.&lt;/p&gt;
&lt;p&gt;“Read-only” describes intent. It doesn’t stop a call from building something.&lt;/p&gt;
&lt;h2 id="the-night-the-only-fences-were-sentences"&gt;5. The night the only fences were sentences&lt;/h2&gt;
&lt;p&gt;On 10 November my builder agents were working on a dashboard project. Three of them ran whole test folders that no task had asked for. Those tests wrote to live folders, and setting a temporary home folder didn’t move them.&lt;/p&gt;
&lt;p&gt;Then a deliberate break, run to check that the tests catch a bug, made the unprotected tests write a settings file into a live folder.&lt;/p&gt;
&lt;p&gt;A before-and-after snapshot found the stray file within two minutes. Nothing important changed. But every guard I had that evening was a sentence in a brief.&lt;/p&gt;
&lt;p&gt;So the builders went inside a macOS sandbox, with their project folder as the only place they can write. I probed it before trusting it, and the test suites ran the same inside it as outside.&lt;/p&gt;
&lt;p&gt;Later that night a builder read a project note outside its folder and tried to rewrite it. The sandbox refused the write.&lt;/p&gt;
&lt;h2 id="what-is-still-only-a-sentence"&gt;What is still only a sentence&lt;/h2&gt;
&lt;p&gt;Being honest about my own setup:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Agents can still read most files and reach the internet. They need both to work. So the brief still says what not to open, and every diff still gets checked before it lands.&lt;/li&gt;
&lt;li&gt;“Verify with real commands before claiming success” is a line in my instructions file. It is a request, not a fence. Review is what catches the misses.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The rules say what I expect. The sandbox decides what happens.&lt;/p&gt;
&lt;h2 id="copy-this"&gt;Copy this&lt;/h2&gt;
&lt;p&gt;A minimal macOS sandbox profile with one write root. Save it as agent-fence (a .sb file):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;(version 1)
(allow default)

; Writes: only the project, the temp folders and the agent&amp;#39;s own state.
(deny file-write*)
(allow file-write*
  (subpath (param &amp;quot;PROJECT&amp;quot;))
  (subpath &amp;quot;/private/tmp&amp;quot;)
  (subpath &amp;quot;/private/var/folders&amp;quot;)
  (literal &amp;quot;/dev/null&amp;quot;)
  (literal &amp;quot;/dev/tty&amp;quot;)
  ; the agent&amp;#39;s own state; these four are OpenCode&amp;#39;s on my Mac
  (subpath (string-append (param &amp;quot;HOME&amp;quot;) &amp;quot;/.local/share/opencode&amp;quot;))
  (subpath (string-append (param &amp;quot;HOME&amp;quot;) &amp;quot;/.local/state/opencode&amp;quot;))
  (subpath (string-append (param &amp;quot;HOME&amp;quot;) &amp;quot;/.cache/opencode&amp;quot;))
  (subpath (string-append (param &amp;quot;HOME&amp;quot;) &amp;quot;/.config/opencode&amp;quot;)))

; Reads: not the places where secrets usually live.
(deny file-read*
  (subpath (string-append (param &amp;quot;HOME&amp;quot;) &amp;quot;/.ssh&amp;quot;))
  (subpath (string-append (param &amp;quot;HOME&amp;quot;) &amp;quot;/.aws&amp;quot;))
  (subpath (string-append (param &amp;quot;HOME&amp;quot;) &amp;quot;/Library/Keychains&amp;quot;))
  (regex #&amp;quot;/\.env$&amp;quot;)
  (regex #&amp;quot;/\.env\.[^/]*$&amp;quot;))&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Run your agent inside it from the project folder:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;sandbox-exec -f agent-fence.sb -D PROJECT="$PWD" -D HOME="$HOME" opencode run "your task"&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I ran a real agent session inside this exact file on 12 November and asked it for three shell commands:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;echo hi &amp;gt; hello.txt&lt;/code&gt; in the project: worked&lt;/li&gt;
&lt;li&gt;&lt;code&gt;touch ~/fence-probe&lt;/code&gt;: “Operation not permitted”&lt;/li&gt;
&lt;li&gt;&lt;code&gt;cat ~/.ssh/config&lt;/code&gt;: “Operation not permitted”&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The agent decided macOS privacy settings had blocked it. It was the fence.&lt;/p&gt;
&lt;p&gt;Notes before you use it:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Your agent writes its own state somewhere. If it fails to start, run it once and add the folders it was refused. Mine needed the four above.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;sandbox-exec&lt;/code&gt; is marked deprecated in its man page. It still ships and works on macOS 27. On Linux the same idea is a container or bubblewrap; I haven’t tested those.&lt;/li&gt;
&lt;li&gt;Reads stay mostly open on purpose. Anything that holds a secret and isn’t in the deny list is still readable.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;And three rules that go with it:&lt;/p&gt;
&lt;ol type="1"&gt;
&lt;li&gt;&lt;strong&gt;After every agent CLI upgrade, run two probes before the next real task:&lt;/strong&gt; one write outside the project, one read of a file it shouldn’t see. Both must fail.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Never ask a model to “not print secrets”.&lt;/strong&gt; Forbid printing whole shell rc, config, &lt;code&gt;.env&lt;/code&gt; and plist files. Allow key names only.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Give every test run its own fence.&lt;/strong&gt; A break run can remove exactly the guard a test relied on.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id="your-turn"&gt;Your turn&lt;/h2&gt;
&lt;p&gt;What’s one thing your agent can still reach that you’d rather it couldn’t?&lt;/p&gt;
</content>
  </entry>
</feed>
