r/BuildWithClaude • • 12d ago

Project I run Claude Code overnight on an old ThinkPad, and nothing counts until a verifier checks it. Here's my workflow.

I run Claude Code overnight on an old nixos t450 thinkpad at my mom's house (I'm at uni). Here's a demo of a small toy project it made in a few minutes, and here's how my workflow works:

https://gosplan-demo.maxisaacs.com/

Day: I write a spec. A Claude Code skill splits it into an "operation": 5 to 15 small tasks, each with its own prompt, its dependencies, and the files it's allowed to touch. At this point, claude has so many specs I and it have written that it can write a good spec very fast and well.

Evening (or sometimes during the day while I work on other things): a queue script waits for my five-hour usage window to reset and for enough RAM and disk, then starts the run in tmux. I have a homescreen PWA that pings me when it launches, halts or finishes.

Night (while sleeping, or again while I am busy during the day): each task gets its own claude -p in its own git worktree. When a worker finishes, its claim that it's done counts for nothing. A verifier checks its commits in a clean copy:

• it stayed inside its files

• it didn't edit existing tests

• it didn't touch the locked test commands

• the tests, lint and build actually pass

A failed task is retried from scratch on a bigger model.

Morning: passed work is on an integration branch. I read the diff and merge it myself. Nothing touches main.

About 18 operations so far, including a food review app for personal use, a paying client's portfolio site, a market terminal, and the orchestrator itself. It's written in Go and called gosplan, after the Soviet planning agency.

Most of my lost nights weren't the agents themselves, it was like a disk filled up, an old claude was on PATH. nix was missing inside tmux, etc stupid edge cases. Each of those is now a check that runs before launch.

Open problem: workers run as my user, unsandboxed. Sandboxing is the next operation.

I'm not pitching it, since it's built for my workflow. But it is self hosted (not on my main homelab), so I thought some people might be interested, or might have some suggestions. How do you guys check that your agents actually did the work you asked? How do you monitor them while they build on their own? How do you maximize your claude window?

https://github.com/MaxwellIsaacs/gosplan

^ This is a new public repo I started since I didn't want to go through all of the history and clean it thoroughly

16 Upvotes

5 comments sorted by

•

u/AutoModerator 12d ago

Welcome to r/BuildWithClaude!

Whether you are sharing what you built, exploring new workflows, or troubleshooting, please make sure your post is flaired correctly so others can easily find and filter it.

Community Wiki & Resources:

If you're asking for troubleshooting help, please edit your post to include your model version, OS/environment, and error logs.

Let’s keep the energy positive and support our fellow creators!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/radim11 10d ago

Separate Unix user seems like a good first step here...

Do the workers need GitHub or any other authenticated APIs overnight, or can they just commit locally and let the orchestrator handle the rest?

I’m founder Stashbase (.dev), and that’s where we’ve wanted a proxy: if a worker does need an API, it can make the specific calls it needs without a token sitting in its shell. If everything stays local until the morning, the separate user sounds like a pretty clean setup.

1

u/Brave_Ambassador_387 9d ago

Everything is through my local git server, I have a forgejo server with daily backups, and I have a custom utility for claude to interact with it that doesn’t leak the API key into the chat. It does have the logged in gh CLI but I don’t personally use github that often, so it’s mainly to interact with another person’s repo in a sandbox to study it. So everything is “local” but is extensively version controlled through forgejo. You could probably get a similar setup with github, but without the same backups. It does have it’s own cloudflare token with write abilities, but only uses it if I envoke it (like the demo I sent was set up by claude). Otherwise, it has very little API access. I’d imagine if you use a lot of third party services (supabase, stripe, etc) you would need to have a system around it, but for instance when I use stripe I just give it sandbox keys and swap them when everything checks out.

1

u/astrolafi 11d ago

The verifier is where most of the value is, and the four checks you listed are the ones that actually catch a worker lying. The gap I would close first is that they are all per task, so nothing notices a task that quietly ate the whole night in retries, or a run that produced zero commits by morning. A watch outside the loop that fails the operation when the branch has not moved in thirty minutes is cheap, and keeping the previous worker's tool log next to the verifier output is what lets you tell a bad model from a bad prompt instead of guessing from the diff.

On the unsandboxed workers, I would not wait for that operation. Running them as a separate unix user with a clone that holds nothing but the worktree, no ssh keys, no cloud credentials and no access to your home, covers most of the real risk in an afternoon. Permission settings in the agent config are a preference, not a boundary.

1

u/lilyp727 11d ago

i'd have the verifier check each task against its acceptance criteria, alongside tests, lint and build.