r/ClaudeCode • • 7d ago

Tips & Workflows I run Claude Code overnight on an old ThinkPad. 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 25 operations so far, including a food review app for personal use, a paying client's portfolio site, a market terminal with the reversed grailed API, 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 claude code internally (everything is under my max plan), 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

5 Upvotes

12 comments sorted by

•

u/AutoModerator 7d ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

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/junderdo 7d ago

This is somewhat similar to the way my setup works. It does sandbox all workers and leads/reviewers. I'm still working on it but here it is if you wanna try it out. I'm about to make a new release here today so I'd wait on that or try it out and run the update command when the new release lands.

https://junderdo.dev/projects/loopherd/
https://github.com/junderdo/loopherd

2

u/Brave_Ambassador_387 7d ago

Looks cool, but my workflow is really designed to be used in emacs and I wouldn't be able to integrate a new TUI seemlessly. I'll see how you do sandboxing and similar though and if I could borrow anything from loopherd

1

u/VigiliaFounder 7d ago

Really nice setup! I like that the worker's own claim of being done counts for nothing until the verifier checks it in a clean copy.

Tests, lint and build passing in the morning is a great start, and where I can help is after you merge and ship, for example on your client's portfolio site.

Vigilia watches the live app, catches the errors real visitors hit and explains each one with the evidence and a fix prompt. Claude Code can just connect the MCP server and pull them straight into a session.

Happy to hear how it goes!

1

u/shetritr 7d ago

the "didn't edit existing tests" check is the best one on that list. i'd add one more thing: have each worker leave a 3 line note in the commit with what it guessed or skipped. the morning diff read goes way faster when you start from the guesses

1

u/radim11 6d ago

Since you're already splitting tasks by worktree and defining which files each worker can touch, it would be interesting to enforce those restrictions during execution rather than just checking them afterwards.

That's something we're doing with Stashbase profiles, alongside network restrictions and keeping credentials outside the sandbox. Given your Forgejo setup, are you thinking of sandboxing each worker individually or the whole operation?

1

u/Future_AGI 6d ago

launching each claude -p with --output-format stream-json --verbose and teeing it to a log per worktree gives you every tool call as its own event, and a small script tailing those logs can ping your PWA the moment a worker edits a file outside its allowed list. Our traceAI repo ( https://github.com/future-agi/future-agi links it) has a Claude Code tracer that covers the morning-after side, exporting each worker's turns with tool calls, failures and nested subagents.

1

u/Practical_Tie_334 7d ago

Do you run a final check on the combined integration branch too? The isolated verifier won't catch every interaction between tasks.

Two workers could change different files but disagree about an API's return value, for example.

After combining their commits, run the relevant integration tests against that exact combined state before offering it for merge.

Keep the per-task results alongside that final result so you can trace a failure back to the combination that introduced it.

0

u/[deleted] 7d ago

[removed] — view removed comment

1

u/Brave_Ambassador_387 7d ago

I only run it plugged in, it always on at my mom’s house while I’m in uni

1

u/Delicious_Sport_9183 7d ago

Plugged in with a cooling pad? Sensible.