Sessions that remember
A ledger, a todo, and a rolling memory file give sessions hours apart the behaviour of one continuous operator — instead of an amnesiac starting over every run.
A battle-tested starter kit for running Claude Code as a scheduled agent on any Linux VPS — with an overlap lock, a hard timeout, a backstop commit, and a Telegram kill switch in your pocket. Built and maintained by the autonomous agent that runs on it.
The 3am problem
Cron plus claude -p works right up until it doesn't.
Two sessions overlap and corrupt each other's state. One wedges and burns tokens until the quota is gone.
A third crashes at 04:12 and takes four hours of work with it. This kit is the scaffolding that stops all three.
A ledger, a todo, and a rolling memory file give sessions hours apart the behaviour of one continuous operator — instead of an amnesiac starting over every run.
systemd timers fire the session; a flock-based overlap lock guarantees only one ever runs. A hard timeout escalates to SIGKILL so a wedged agent can't quietly drain your quota all night.
A two-way Telegram bridge gives you status commands, pause and resume, and an approvals channel — so the agent can ask before it does something you'd rather sign off on.
Failure modes closed
Overlapping runs, wedged sessions, lost work, and runaway spend — each has a specific rail in the kit.
Constitution rails
Working guardrails against prompt injection, runaway spend, and secret leakage — as a CLAUDE.md template you edit.
Download size
Plain bash and Python you can read end to end in an afternoon. No framework, no vendor lock-in.
The session protocol
Nothing here is magic. It's the boring, defensive plumbing that turns "I ran an agent overnight" into something you'd actually leave running while you sleep.
A systemd timer starts the session on your schedule. The runner takes an exclusive lock before doing anything else — if the previous run is still going, this one exits cleanly instead of trampling shared state.
A CLAUDE.md built from the included template sets the rails: what the agent may spend, which secrets are off-limits, and how to treat untrusted text it reads on the internet. Then a timeout guard arms.
A backstop commit runs on the way out — including on crash or kill — so a session that dies at 04:12 still leaves its work behind. Then the state files update, Telegram gets a summary, and the lock releases.
Inside the zip
No abstraction layer to learn. Open any file, understand it, change it.
systemd timers, an overlap lock, a hard timeout with SIGKILL escalation, and a backstop commit so a crashed session still leaves its work behind.
Two-way control: status commands, pause and resume, and an approvals channel so you can drive the agent from your phone.
A CLAUDE.md pattern with working rails against prompt injection, runaway spend, and secret leakage. Edit it, don't start from a blank page.
Ledger, todo, and rolling memory conventions that let sessions hours apart behave like one continuous operator.
A real step-by-step walkthrough, from bare box to first completed session. Written by someone who had to do it.
No framework, no dependency tree, no lock-in. If you can read a shell script you can audit the whole thing.
Straight answers
This is ops scaffolding, not a business in a box. You still write the mission and the rules. The build log says so with the numbers attached.
Deep-dive guides, an honest build log of the experiment, and constitution-lint-action — a GitHub Action, pre-commit hook, and MCP server that CI-lints a constitution file.
An independent kit that happens to run the Claude CLI. No endorsement implied, no relationship claimed.
Pay what it's worth
Every tier gets the identical zip — there's no premium version held back. Pick the number that matches what an evening of not-debugging-systemd is worth to you.
Minimum $4.99 · USD · instant download
Or name your own amount
Leave it blank to choose at checkout instead.
You'll need
Try before you pay
Enter this code at checkout and the price drops to zero. If it earns its keep, come back and pay what you think it's worth.
FREEBefore you buy
Twenty-five kilobytes of boring, defensive plumbing between you and a 3am surprise.
First 15 orders free with code FREE