Agent Routine Reliability Kit

Agent Routine Reliability Kit

Four small Python scripts that sit outside your scheduled AI routines: one decides whether the prompt loads at all, one records every run and checks the file really landed, one wires them into your stubs, and one tells you each morning what broke.

get the kit, $39

last updated · what has changed

Pages from the Agent Routine Reliability Kit: the guide's title page, the gate types table and the run flow

the problem

Once you have more than ten routines on a timer, two things start happening. Routines boot, load a long prompt and spend tokens on days there's nothing in the folder for them. And routines report "done" when the file never made it to the shared drive, so you find out a week later.

On my own setup, an audit found 147 routine prompts loading the same 18 KB style guide on every run, twelve of them plumbing routines that write no prose. Taking it out of those twelve saved about 1.95 million input tokens a month. The fix for the rest was structural: a cheap check before the prompt, and a record of every run that a separate checker reads.

This kit is that structure, generalized so it runs on your machines.

what's inside

  • Agent Routine Reliability Guide: why empty runs cost money (with my own measured numbers), how the stub, gate, ledger and health check fit, the install step by step, every gate type, choosing what to gate and what never to gate, the ledger schema and completion check, checker not maker, the morning health check findings and fixes, the provider ladder, the 14-point new routine checklist and a sample setup (PDF + Word)

  • The code: gate.py (seven gate types plus weekdays, fail-open), ledger.py (one JSON line per run, ok downgraded to partial when a declared file is missing, local spool when the shared drive is down), wire_stubs.py (backs up and wires every stub, with verify, unwire and rollback), health_check.py, and a 26-check self-test. Python 3.8+, standard library only, no keys (Python + JSON)

  • Templates: example gate configs for two machines, a wired routine stub, the provider ladder block, the new routine checklist and fleet-wide ledger queries (Markdown + JSON)

  • Gate Choice Sheet: which routines to gate, which gate type, and the three-way test (PDF)

  • Notion template: a routine register with a ready check, a health check log and an incident log (access page with your duplicate link) (Notion + PDF)

  • The terms of use: the first file in the download (PDF)

who it's for

People running a one-person or small-team content operation on scheduled AI agents:

  • technical marketers and solo operators with more than about ten Claude Code scheduled tasks

  • small agencies running client routines on more than one Mac

  • anyone whose routines say "done" when the file isn't there

You should be able to read a short Python script and edit a JSON file. You don't need to write code. It runs on macOS or Linux with the scheduler on your own machine; cloud-run tasks can't read your local folders, so the gate doesn't apply there.

preview

Everything in the kit

Three pages from inside: the gate types, the ledger record and the health check findings

A cheap check before the expensive prompt

how it works

  1. Run the self-test, then point it at your ledger folder. python3 test_kit.py checks every behavior in a temp folder. One settings file says where the ledger lives.

  2. Write one gate config per machine and wire the stubs. Start from the examples. wire_stubs.py backs up each stub, adds the gate and ledger steps, and can undo it.

  3. Schedule the morning check. A separate routine reads every machine's ledger and lists failures, missing runs and files that never landed.

where the method comes from

The scripts are rebuilt from the run gate and ledger I use across my own machines, which run a few dozen scheduled routines each. The numbers in the guide come from my own audit notes and are labeled that way.

Everything machine-specific is gone: machine names became roles, paths became settings, and nothing reads a key or token. The scheduler behavior the guide describes (where stubs live, catch-up runs after sleep) was checked against Anthropic's Claude Code documentation on November 30, 2026 and is dated in the guide.

formats and delivery

  • 1 PDF guide and a matching Word file (.docx), plus a PDF gate choice sheet

  • A folder of Python 3 scripts, JSON configs and Markdown templates

  • A Notion template, delivered as an access page with your duplicate link

  • One zip, delivered by download link as soon as payment clears

get the kit

$39, one time. One license for you or your business.

get the kit, $39

All sales are final. Questions first? Email support@gallucci.net before you buy.

questions

Does it work with my scheduler?

It's written for Claude Code Desktop's local scheduled tasks, whose prompts live on disk as files the wiring script can edit. The gate and ledger work with anything that runs a prompt with a shell on your own machine, such as cron starting an agent. Cloud-run tasks start from a fresh copy with no access to your local folders, so the gate can't read them.

Do I need to know Python?

You need to read it, not write it. Setup is one settings file and one JSON config per machine, both with examples. The self-test tells you if anything is wrong before you touch a real routine.

Will it save me money?

It stops gated routines from loading their full prompt on days with no work, and the checklist covers the other token costs I measured. How much that saves depends on how many of your routines can be gated; on my own machines it was a minority. No figure is promised.

Can it break a routine that works today?

The gate fails open: anything it can't read means run. The ledger never fails a routine. The wiring script backs up every stub first and has verify, unwire and rollback. Start with one routine, as the guide says.

Does it need API keys?

No. Nothing in the kit reads a key, token or password, and nothing sends, posts, deletes or spends. The scripts read folders, write JSON lines and write a report.

Do I need Notion?

No. Everything runs from the scripts and the ledger files. The Notion version is a register of your routines, their gates and models, plus logs for the morning check and incidents, if you'd rather keep those as databases.

Can I get a refund?

No. All sales are final, because a digital file can't be returned once it's delivered. If a file arrives corrupted or won't open, email support@gallucci.net within 30 days and I'll send a working copy. If you're not sure this fits your brand, email support@gallucci.net before you buy and ask.

Do I get updates?

No. You get the edition you buy, and nothing on this page promises updates. If a new edition comes out, it's sold as its own product.

Can I use it for clients?

Yes. One purchase is one license for you or your organization. An agency or freelancer can use it on any number of client accounts; the client gets the finished work, not the product files. A client that wants its own team using the files needs its own copy.

Does it guarantee results?

No. Every number in it is a planning figure with a date and a source, there to show the method. What you get out of it depends on your product, your market and how you run it.

what has changed

every change to this product, newest first. the download you buy today is the current version.

  • December 1, 2026: First released.

terms

Buying or using this product means you accept the gallucciNET terms of use: gallucci.net/terms. A copy (READ_ME_FIRST_terms_of_use.pdf) is the first file in the download.

about giovanni

giovanni gallucci runs gallucciNET. He has spent his career on social, content and launches for food and beverage brands, and runs his own content operation on scheduled AI agents across several machines.

He hosts The Daily Trend Report, a morning podcast on food and beverage, content, social and AI (show notes at gallucci.net/podcasts), and wrote A Social Media Marketing Framework for Food and Beverage CPG Brands (2nd Edition) and Viral and Broke: A Field Guide to Social Media for Food and Beverage Brands. More at gallucci.net.

adage, emmy, telly & webby award-winning digital marketing consultant for purpose-driven food & beverage brands.