Back

01 / 06

Agent Deck

A macOS development environment for running many Claude Code agents in parallel, so one person can move several projects forward at once: agents divide and build the work, the person makes the calls.

  • Electron
  • React
  • TypeScript
  • Claude Agent SDK
  • Monaco
  • xterm.js
Made by iren · Music: "Close Up" by Michael Ramir C. (Mixkit)Film and description: GitHub · agent-deck-showcase

Architecture

Agent DeckElectron · React: session panes, cards, plan libraryCards can also be answered on iPhone
socket · ssh
host daemonMacSessions, terminals, file watchers, persistenceGPU serverTraining and experiments
Claude Agent SDK
main agentSplits the work, gathers what needs a person
worker × laneIts own worktree and branch
operationsReviews, tests, merges by fast-forward
Plan libraryItems · decisions (in the user's words) · hand-overs
The app is only the interface; sessions and SDK calls run in a host daemon on each machine, so agents keep working when the app restarts or loses its connection.

Problems and solutions

  1. 01Many agents changing one repository

    Each parallel line of work (a lane) works in its own worktree and branch, and its agent commits only there. A dedicated operations session merges: it rebases onto the latest main, runs the tests the change touches, and merges only by fast-forward, one branch at a time.

  2. 02Testing an app built on a language model

    Output from the real Claude Agent SDK is recorded and replayed by a fake agent in tests: no usage cost, and repeatable results. Tests run in three layers: unit, host (the daemon over stdio) and e2e (Playwright driving Electron); e2e runs are spread across several Linux machines, arm64 and x64, each under Xvfb.

  3. 03Leaving the person only the decisions

    When an agent needs a decision it files a card with options and a recommendation; the main agent collects them before they reach the user. If the user is away for over an hour, the recommendation is applied and marked, and can be changed later; anything that costs money, cannot be undone or touches privacy always waits for the user. Cards can also be answered on iPhone.

Key decisions

  • One main agent was both discussing plans and handling merges, and couldn't keep up

    A separate operations session that takes merge requests, reviews diffs and merges by fast-forward

    Planning and execution are split: the user talks only to the main agent, and every merge gets an independent review.

  • A new worktree per lane for every version was costly and easy to open in the wrong place

    Each lane keeps a fixed worktree and starts only a new branch per version

    Lanes stay isolated, with parallel builds and tests that don't overwrite each other, without deleting and recreating directories.

  • Once main moved on, operations sent merge requests back to the worker, too many round trips

    Operations rebases itself and merges when there is no textual conflict and the affected tests pass

    Far fewer returns (one version had 8); logical conflicts are left for the tests to catch.

  • While the user slept, unanswered cards stalled all development

    If a card goes unanswered for an hour and the user is away from computer and phone, the recommended option is applied and marked, changeable later; money, irreversible actions, privacy and accounts always wait for the user

    The person is the bottleneck: agents shouldn't sit idle, but irreversible things aren't handed over.

  • Sessions ran on a laptop that had to stay awake and online

    The host moved to an always-on Mac with the laptop as the interface; plans and code branches push to private GitHub repositories, conversation logs never do

    Availability rests on the always-on host; the privacy boundary is that conversations stay local.