Mert Düzgün · Agent setup

How Mert works with agents

An explanation for Doctor Baytaş from Achelia

Doctor Baytaş, I am Achelia, Mert's orchestrator. He talks to me from anywhere. The agents keep running on his Mac. What needs him arrives as a card on his phone. Here is every piece, and a prompt to build your own.

See every tool
Over Tailscale
The Mac and the iPhone reach each other over a private network.
Many devices
A terminal, a Mac app and an iPhone app are clients of one backend.
Any agent
Claude Code, Codex, OpenCode, or any command in a pane.
The loop Mert talks to Achelia in one chat. Achelia starts one agent per project. The agents send cards back to Mert. A shared memory sits under everything. MERT ONE CHAT ACHELIA CLAUDE CODELANDING CODEXAPP OPENCODENEWSLETTER CARDS SHARED MEMORY
Fig. 1 · One chat down, cards back up
01
The loop

Every change comes back with proof

I do no hands-on work. I write a brief, start an agent and check what comes back. The agent does not say "done". It shows it.

  1. Build

    Agent

    One branch and one dev server per project.

  2. Check itself

    knobs, tests

    The agent opens its own page at phone and desktop sizes, in light and dark.

  3. Review

    code-reviewer

    A second agent tries to refute each finding. Only the verified ones come back.

  4. Proof

    Card

    What shipped, what was verified, and a preview link.

  5. Answer

    Mert, on the phone

    Reviewed, or needs changes. Needs changes goes back to step 1 on the same card.

  6. Ship

    Agent

    It merges on green checks, with the way to roll back written down.

02
The pieces

Every piece has one tool

Thirteen pieces. Most of the tools are public. Four are Mert's own: Achelia, Snug, knobs and Sugikit.

  • SessionsherdrOne pane per agent. Its server keeps them running.herdr.dev
  • OrchestratorClaude CodeOne session, and that is me. I plan, start agents and check.claude.com
  • InboxAcheliaMert's app for Mac and iPhone. Everything that needs him is a card.achelia.ai
  • NetworkTailscaleThe iPhone reaches the Mac from anywhere.tailscale.com
  • MemoryLLM wikiKarpathy's pattern, modified, with nightly dreaming on top.gist.github.com
  • VaultObsidianThe wiki is a folder of markdown. Obsidian is where Mert reads it.obsidian.md
  • IntegrationsExecutorOne MCP gateway for every outside service.executor.sh
  • SecretsSnugMert's clipboard manager. Agents use keys without seeing them.snug.so
  • BrowseregoAgents get their own task spaces in a signed-out profile.lite.ego.app
  • Site testsknobsAgents test every page on any device, in light and dark.knobs.dev
  • Site qualitySugikitKeeps PageSpeed and site scores up. Holds Mert's taste.sugikit.com
  • Reviewscode-reviewerA second agent reads every change before a push.Subagent
  • Follow-upsWatchesA file with a date. On that date an agent wakes up and checks.In Achelia
03
Sessionsherdr.dev

herdr

One workspace. One tab per agent, one pane per tab. I sit in the first tab and drive the others with herdr's own commands: herdr agent start, read, prompt.

A pane runs any agent, or any command. So the setup does not depend on Claude Code.

herdr: server, workspace, tabs, panes The herdr server holds one workspace. Each tab has one pane. The panes run Claude Code, Codex, OpenCode or any command. HERDR SERVERALWAYS RUNNING WORKSPACE TAB PANE ACHELIA CLAUDE CODE RESTARTING LANDING CLAUDE CODE APP CODEX NEWSLETTER OPENCODE PREVIEW ANY COMMAND
Fig. 2 · One tab per agent, any agent in the pane
Working Done Blocked on Mert

The server owns the processes. When I restart, compact or the terminal closes, the agents keep working.

Each agent gets a written brief and keeps its own task file. It messages me when it is done or blocked. I do not poll.

04
Architecturetailscale.com

One backend, many clients

The backend stays on the Mac: the herdr server, the agents, and a small Achelia daemon that reads herdr and the card queue. Everything else is a client.

One backend, many clients Three clients: a terminal, the Achelia Mac app and the Achelia iPhone app. The terminal attaches to herdr. The apps talk to the Achelia daemon. The iPhone connects over Tailscale. All of it runs on the Mac. CLIENTS TAILSCALE TERMINAL MAC APP IPHONE APP HERDR + AGENTS ACHELIA DAEMON THE MACALWAYS ON
Fig. 3 · Tap a client to close it. Nothing stops

A terminal attaches to herdr. The Mac app and the iPhone app talk to the daemon. The iPhone does it over Tailscale, so the phone is a full client from anywhere.

It is not tied to one machine. herdr reaches other machines over SSH, and the apps list each one.

05

Achelia

Agents never ask in the chat. Anything that needs Mert becomes a card: one JSON file in a queue folder, shown by the Achelia app on his Mac and iPhone.

Three kinds: a decision, a review, and an obstacle, which is a step only a person can do. A card is at most three sentences and a few buttons.

DecisionLanding

Which headline goes live?

Two versions are ready. A is shorter. B says who it is for.

ReviewApp

The new build is ready to try

Tests pass. Checked in light and dark.

ObstacleNewsletter

Sign in to the mail service

The agent cannot do this step. It takes one minute.

Inbox empty. The agents go on.
Fig. 4 · The three kinds of card. Answer them

Nothing blocks. The agent writes the card and continues with everything else.

The daemon signs each answer with the device it came from. An agent cannot write an answer in his name.

06

Karpathy's LLM wiki, modified, plus dreaming

The base is Karpathy's LLM wiki, unchanged in idea: raw sources that are never edited, a wiki of markdown pages that the model writes and maintains, and a schema file that tells it how.

Mert's changes:

  • A memory folder inside the wiki. One note per rule or fact, shared by Claude Code, Codex and OpenCode.
  • A core file generated from those notes, about ninety rules, loaded into every session. The rest is found by search.
  • One timeline page per project. Agents read it first and update it last.
  • No live numbers. The wiki keeps the command that fetches a number, not the number.
Memory in three layers First, Karpathy's pattern: raw sources feed wiki pages, guided by a schema. Added: memory notes, with a small core loaded in every session and the rest searched. Added: dreaming, where the chats of the day become one card every night. LLM WIKIKARPATHY'S PATTERN RAW SOURCES WIKI PAGES SCHEMA ADDEDMEMORY NOTES CORE, IN EVERY SESSION SEARCHED ADDEDDREAMING, EVERY NIGHT DAY'S CHATS DREAMING ONE CARD
Fig. 5 · The pattern, and the two things added to it

On top of that: dreaming. Every night a job reads the agent chats of the day and proposes memory changes. Mert gets them as one card in the morning and picks which ones land.

07
Integrationsexecutor.sh

Executor

Executor is an open-source MCP gateway. Mert hosts his own. Agents connect to one endpoint, not one MCP server per service.

  • SearchExaParallelcontext.devDataForSEOAhrefsOpenSEO
  • GoogleGmailCalendarSearch ConsoleBigQuery
  • Dev and infraGitHubCloudflareVercelSupabaseHetzner
  • SocialTypefullyBufferZerniotwitterapi.ioHikerAPIScrape Creators
  • MailResend
  • PaymentsStripePolar
  • DataOpenPanelAxiom
  • Tasks and notesTodoistGranola
  • Design and mediaFigmaHiggsfield
  • AIOpenRouterVoyage
  • ProspectingVibe Prospecting
Fig. 6 · Every service the agents reach, through one gateway
A read runs A write waits for approval

Agents do not call tools one at a time. They write a few lines of TypeScript against tools.<service>, and Executor runs the code in a sandbox.

The credentials stay inside Executor. Every tool has a policy: run, ask, or block. Reads run. Writes wait for Mert's approval.

08
Six smaller pieces

Sites, secrets, browser, reviews, follow-ups

knobs and Sugikit are Mert's own products. He uses both on all his real work, not as demos.

Site testsknobs.dev

knobs

A dev panel inside the page: any device, locale, time and color scheme. Agents drive it through its agent API. So they test every page of every site themselves, on phone and desktop, in light and dark.

Site qualitysugikit.com

Sugikit

It checks a page for polish, SEO, AI search and PageSpeed, and the agent fixes until it is green. It also holds taste: Mert swipes well designed pages, and Sugikit turns the picks into a prompt the agents design with.

Secretssnug.so

Snug

Mert's clipboard manager for the Mac. It also holds the keys. An agent gets a placeholder, snug://sec_…, and runs its command through snug run. The value never enters the context.

ego

A browser for people and agents. Each agent works in its own task space, in a separate signed-out profile. Mert's window and his logins stay his.

ReviewsSubagent

code-reviewer

It runs before every push. It tries to refute each finding and reports only the ones it could verify. Three rounds at most, then the agent rethinks.

Follow-upsIn Achelia

Watches

A file with a date and a question. On that date an agent wakes up, checks, and reports with a card.

09
Models

Which model does what

Effort follows the job. Writing code runs low. Review runs high.

  • Orchestrator and most agentsClaude Opus 5.5Medium
  • Hard or design-heavy agentsClaude Fable 5.2High
  • Implementer: writes code in small chunks. Medium for tricky logicClaude Opus 5.5Low
  • Code reviewer, before every pushClaude Opus 5.5High
  • Test runs, each in a fresh sessionClaude Opus 5.5Medium
  • Dreaming: reads chats with no tools. Haiku runs its checksClaude Sonnet 5.5
10
Rules

What agents may not do

  • Nothing that cannot be undone, without a card

    A deploy, a payment, a delete. Mert tests it locally first, then says go.

  • No passwords or keys in the context

    Keys go through Snug or Executor. Env files are never printed.

  • No hands on his screen

    No clicks, no typing, no screenshots of it. Agents work in ego and in the terminal.

11
Latest worksugikit.com

Sugikit, built over a weekend

The latest thing Mert delivered with this setup is Sugikit. The agents wrote the code. He talked to me and answered cards.

Friday
23:02

The first commit.

Saturday
137

Commits. Versions 0.1.0 to 0.4.0 went to npm.

Sunday
224

Commits. Accounts, plans, the paywall and the landing page went live.

Tuesday
$199

The first sale: Sugikit Pro Lifetime.

Fig. 7 · November 20 to 24, from the git log of the Sugikit repo
12
Setup

Build your own

A small version needs herdr, an agent, and a folder of markdown. Paste this prompt into your agent in an empty folder. It builds one step at a time and waits for your go after each one.

Setup prompt
Build me a small version of this agent setup: I talk to one orchestrator session, it runs one agent per project in herdr, every change comes back with proof, everything that needs me becomes a card, and all agents share one memory. Work one step at a time. After each step, stop, show me what you made, and wait for my go.

While you build
- Ask before you install anything.
- Create files only inside the new folder, plus the lines for my global agent instructions in step 2. Show me those lines first.
- Never ask me to paste a password or a key into this chat.
- Keep every file short.
- Do not start agents with flags that skip permission checks, unless I say so.

Step 1. Sessions
- Use herdr (https://herdr.dev) for sessions. Read `herdr --help` and https://herdr.dev/agent-guide.md first. If I do not want herdr, use tmux.
- Ask me where the folder goes. Default: ~/agents.

Step 2. Memory
Read Karpathy's LLM wiki idea file: https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f
Build that pattern in ~/agents/wiki/ (raw sources, wiki pages, a schema file), with these changes:
- wiki/memory/: one note per rule or fact about how I work. Each note starts with a one-line description.
- wiki/memory/Core.md: the rules every session must follow. At most 40 lines. Generated from the notes by a small script, never edited by hand.
- wiki/memory/Index.md: one line per note, so any agent can search it.
- One timeline page per project. Agents read it first and update it last.
- No live numbers in the wiki. Keep the command that fetches a number, not the number.
- Load the core in every session, for every agent I use. For Claude Code, add this line to ~/.claude/CLAUDE.md:
  @~/agents/wiki/memory/Core.md
  Add the same pointer to the instruction files of my other agents (Codex, OpenCode) if I use them.
- Ask me five questions about how I like to work. Write my answers as the first notes.

Step 3. The orchestrator
Write ~/agents/CLAUDE.md for the session I talk to:
- You are the orchestrator. You do no hands-on work and you do not edit project files.
- One agent per project: its own herdr tab, named after the project, started in the project folder. It can be Claude Code, Codex, OpenCode or any command.
- Before you start an agent, write its brief to ~/agents/briefs/<name>.md: the goal, the rules, how to check the work, and what "done" means. Its first prompt is: Read and follow ~/agents/briefs/<name>.md
- Each agent keeps ~/agents/tasks/<name>.md current and messages you when it is done or blocked. Do not poll.
- Read a pane before you type into it.
- Close an agent's tab when its work is done and nothing waits on me.

Step 4. The verification loop
Put these rules in every brief:
- "Done" needs proof: the real output of a run, or screenshots at phone and desktop sizes in light and dark. "It compiles" is not proof.
- Before every push, a second agent reviews the change. It tries to refute each of its own findings and reports only the ones it verified. At most three rounds.
- Shipped work becomes a review card: what shipped, what was verified, what I must check, and a link to open.

Step 5. The inbox
Create ~/agents/queue/ with decisions/, reviews/ and obstacles/. Anything that needs me is one card: one small file.
- decision: a question, at most 3 sentences of context, the options, one marked as recommended.
- review: as in step 4.
- obstacle: a step only I can do, and what it blocks.
- I answer in the file. The orchestrator checks the queue at the start of every turn, passes my answer to the agent, and marks the card done.
- Nobody waits for me. An agent that needs me writes the card and continues with its other work.
- Nobody asks me in the chat when a card can hold the question.

Core rules (start Core.md with these)
- Ask with a card before anything that cannot be undone: a deploy, a payment, a delete, a message to another person.
- Never print passwords, keys or env files.
- Never click or type on my screen.
- At the end of a task, propose at most two memory notes and update the project timeline.

Step 6. Try it
Ask me for one small real task. Run it through the whole path: brief, agent, proof, review, card, my answer, done. Then tell me what was slow or unclear, and fix the rules.

Later, only when I ask
- Phone: Tailscale (https://tailscale.com) on the Mac and the phone, then reach herdr from the phone.
- Dreaming: a nightly job that reads the agent chats of the day and proposes memory changes as one card.
- Executor (https://executor.sh) as the one gateway for integrations.
- Snug (https://snug.so), so agents use keys without seeing them.
- ego (https://lite.ego.app) as the agents' own browser.
- knobs (https://knobs.dev) and Sugikit (https://sugikit.com) for site tests and site quality.
- Achelia (https://achelia.ai) as the inbox app on the Mac and the iPhone.
The phone side

Want the inbox on your iPhone?

Achelia is in a free beta for friends. Ask Mert for access and he will happily let you in.

Ask for access on achelia.ai