21 Nov 2026 · Agents · 5 min read
Tickets in, pull requests out: how we work with agents
An agent on a Mac mini picks up our tickets every 15 minutes and opens pull requests. These are the rules that keep it from breaking things.

Our agent takes work from a page in Notion or a ticket in Linear and turns it into pull requests. It's Claude Code, running on a Mac mini around the clock. I decide what gets built and I approve anything on a short stop-list. Everything else is written down, as rules the agent reads and, where it matters, as code it can't argue with.
The heartbeat
Every 15 minutes a launchd job starts a headless Claude Code run. We call it the heartbeat. Each run does the same things in the same order:
- It looks at the Notion Inbox for pages I marked Ready.
- Once a day, it triages Sentry and checks CI and deploys.
- It answers Linear comments that mention it.
- It builds the tickets in its queue.
- It writes one log line about what it did.
An Inbox page can be a bug report, meeting notes, an idea or a decision. Each kind has its own playbook, a Markdown file that says how to handle it: which tickets to create, what to ask me, when to stop. Before it does any work the run claims the page (Status Processing, with a timestamp), so a second run never picks it up as well. A claim older than three hours belongs to a run that died, and the next run takes it over.
A run gets four work items and two hours. After two hours it's killed, whatever it was doing.
Two lanes
On 1 October we had 17 tickets in Todo and 17 in Backlog, and I wanted things to go faster without adding risk. Measured that evening, runs started on the fixed 15 minute tick and only after the previous one ended, so the Mac was idle about a quarter of the time. A single run also did its tickets one after another and waited 5 to 7 minutes on CI for each.
Two changes came out of that. A run that ends with work left starts the next one right away, up to 8 in a row. And a second lane runs next to the first: lane a does everything above, lane b only builds tickets.
Two lanes can grab the same ticket. Each one sets the ticket In Progress, comments "Claimed by heartbeat lane b at ...", then reads the comments again. When both claimed it, the earliest claim wins and lane a wins a tie. That rule is a small Python script both lanes call, so they can't decide differently.
Every change is a pull request
The agent never pushes to main. Each ticket gets its own git worktree, a separate checkout of the repo on its own branch, so two lanes never touch the same files. The order is always the same: tests, lint and build, push, open the pull request, wait for CI.
Merging goes through one script, merge-pr.sh, and the agent can't merge any other way. The script merges only when CI is green and the branch is up to date with main. It refuses a pull request that touches a blog post, because I merge those myself. It also refuses one that changes the agent's own controls (its scripts, its settings, the CI workflows). Those wait for me.
For a while every pull request also got an independent review: a second Claude run with fresh context and read-only tools, posting its verdict as a commit status. That review is paused right now.
A yes is checked in code
An app build or a TestFlight upload only happens after I say yes. OTA updates and App Store submissions are never the agent's, yes or no. The agent asks for a yes by creating a Linear issue whose title starts with Your yes: and names exactly one build. Then a script, not the model, reads my comments on that issue.
Only my Linear user counts. "yes", "go" and "approved" count. A comment with a question mark doesn't. "Yes but wait" holds the build, and so does any later comment of mine with "stop" or "hold" in it. One yes is one build, and a failed build used it up. The script builds from a clean checkout of main, never from a branch, and comments on the issue with the result.
For everything else the default is to act. The agent's manual says a question costs me more than a wrong choice that's easy to undo, so it takes the recommended option, says which one it took and keeps going. It only asks when the thing is on the stop-list (production data, a build, DNS, money, a message to a real person) or can't easily be undone. Every question goes to Linear, assigned to me.
What we got wrong
In the night before 2 October the Mac ran out of memory and froze. Two lanes had been chaining all night, next to interactive sessions, Metro servers, simulator builds, Jest suites and a Docker Desktop an earlier agent had left running. The Mac has 16 GB. Once it was full I couldn't reach the agent at all.
The fix has three parts. A memory guard runs every 60 seconds and writes a pause file when memory gets low, which stops the lanes from starting new runs. If memory gets critical it frees it in a fixed order: idle Metro servers first, then the simulators, then Docker, then lane b's run, then the Jest runs the lanes started, and lane a's run last. It never touches my own terminal sessions. Heavy jobs, like a simulator build or a full test suite, take a shared lock so only one runs at a time. And there are caps: Jest at 2 workers, every Node process at 3 GB of heap.
What I still do
I write the Inbox pages and the tickets. I read the standups the agent writes in Notion at 07:00 and 21:00, plus one at noon when it did something that morning. I check every merged app change myself on a preview build before a ticket is Done. And I'm the only one who can say yes.

Jensen Bernard
Founder, Kuberdon
Jensen started Kuberdon to build a portfolio of mobile apps that make everyday life more seamless. Right now most of his time goes to Kalendars, a calendar for iPhone (Mac coming soon) and the first app in the portfolio. He has a master’s in computer science from KU Leuven, and works from Leuven, Belgium.
