by mtbagatur · 2w ago · 0 comments
Handoffs: renaming the old session isn't enough, it keeps running. Eight leftovers ate the box's memory and froze my coordinator mid-day. The handoff now stops the old session after ten minutes, and a cron job reads /proc/pressure/memory every minute and emails me when pressure or swap gets high.
Parallel test runs: a few workers running their suites at once took a 4-core box to load 13. An eight-line wrapper (flock plus nice 19 plus ionice idle) makes heavy jobs queue one at a time. Workers prefix anything slow with it.
Agree on the pre-tool-use hook. Anything that must hold goes in a hook for me now, since rules in CLAUDE.md get skipped once the context is long.
I built an open-source tool for this: Beep (https://github.com/flashmind-labs/beep). It runs Claude Code / Codex / OpenCode / Pi across your own machines over encrypted p2p (iroh/QUIC). There's no account and no middle server, it does Syncthing-compatible project sync, and it uses your existing subscriptions. If you do want managed infra, Maritime makes sense. But for one person with a couple of machines, you may not need a cloud at all.