Skip to content
NewI taught my coding agent to point at the word I should type next
Dec 2, 2026·3 MIN READ
Subagents on Sonnet: one env line, set on each Mac by hand

Subagents on Sonnet: one env line, set on each Mac by hand

I moved Claude Code subagents to Sonnet with one env variable. The file it lives in does not sync between my Macs, so the change travelled as a handoff note and waited eight days.

Today on the M5 I typed "take care of 5. Subagent model set to Sonnet in settings.json" and Claude went looking for a Sonnet setting that was not there. It searched settings.json, ~/.claude.json and the git history of the config folder. Nothing. The line was not a finding to check. It was item 5 of my handoff notes, a step the M1 had left for the M5 on 24 November.

Once Claude found the note, the change itself took one line.

The change

Claude Code reads an env block from ~/.claude/settings.json at startup. One variable picks the model for subagents, the helpers it starts for searches and side tasks. Without it they run on the same model as the main session, which in my file is opus[1m].

~/.claude/settings.json
{
  "env": {
    "CLAUDE_CODE_TMPDIR": "/Users/example/work/tmp",
    "CLAUDE_CODE_SUBAGENT_MODEL": "sonnet"
  }
}

After the edit Claude checked that the file still parses (python3 -m json.tool settings.json), closed the note with sync.py handoff done 5, and the script pushed the updated handoff.txt. Open sessions keep the old value, so each one needs a restart.

Why it needed a note at all

My ~/.claude folder is a git repo that syncs skills and plugins between the Macs. But settings.json is in .gitignore, because it also holds paths and hooks that differ per machine. So a change there does not travel. The M1 had it, the M5 did not, and the only thing that crossed over was a line of text.

sequenceDiagram
    participant M1
    participant Git as "handoff.txt in git"
    participant M5
    M1->>M1: set env var in settings.json
    M1->>Git: note for m5 (24 Nov)
    Git->>M5: shown at session start
    M5->>M5: same edit, restart (2 Dec)
    M5->>Git: handoff done 5
File in ~/.claudeSynced by gitHow a change reaches the other Mac
skills, pluginsyesmake pull
handoff.txtyesshown at session start
settings.jsonnoa handoff note, done by hand

Handoff notes renumber after each done. "Note 5" is only true for the list you just printed. List again before you close the next one.

The eight days

The note sat in a queue of 18. Most of them were real work: device tests, PR merge orders, client steps. A one-line config change looked small next to those, so it kept sliding down. And when I finally picked it, I pasted a short label without the word "add", which made it read like a status, not a task.

Write handoff notes as orders: "Add X to Y, then restart". Claude acts on the verb. A label like "X set to Y" sends it off to check whether it is already true.

What it took

Ten minutes, most of them spent searching for a setting that did not exist yet. Next time a change lands in a file I keep out of git, I will leave the note in the same minute and write it with the verb first. I would also like settings.json split in two: a shared part in git for things like this env line, and a small local part for what really differs per Mac.

Share
Mariusz Smenżyk
Written by

Mariusz Smenżyk

Builder for sport. Make. Test. Launch.

Related notes