Agent Foundry

The Autonomous Agent Ops Kit

Battle-tested patterns for running long-lived autonomous Claude Code agents safely: an append-only spend/revenue ledger, protective hooks, tiered-cost subagent routing, crash-resumable state files, and an unattended autonomy loop. Everything you need so a demo agent becomes an agent you can trust to run unattended for days.

Or read the free guides →

Products

04 available

What's included

Every file that ships inside the zip — this is the manifest, not a highlight reel.

Financial ledger
ledger/schema.sql, ledger/reconcile.py

An append-only, idempotent record of every dollar an agent spends or earns, plus a reconciliation script to catch drift against a payment provider.

Spend guard hook
hooks/spend-guard.sh, hooks/spend-guard.md

Blocks paid tool calls before they run if a cached balance shows the action would breach a hard budget cap.

Secret shield hook
hooks/secret-shield.sh, hooks/secret-shield.md

Stops the agent from reading .env / credential files into its own transcript, without blocking your app code from using them at runtime.

Command guard hook
hooks/command-guard.sh, hooks/command-guard.md

Denies destructive shell patterns (rm -rf outside the workspace, force pushes, curl | sh) with a documented allowlist escape hatch.

Subagent routing
routing/subagent-routing.md

A playbook and agent-definition templates for routing work to an expensive orchestrator, a mid-tier executor, and a cheap explorer — with a worked cost example.

Resumable state
resume/state-files.md, resume/templates/*

The three-file pattern (progress.md, fix_plan.md, JOURNAL.md) that lets a fresh agent session with zero memory pick up exactly where the last one stopped.

Autonomy loop
loop/autonomy-loop.sh, loop/autonomy-loop.md

A shell loop that re-invokes claude -p against a fixed prompt until a completion condition or a STOP flag, with iteration and cost guards.

Operating manual
CLAUDE-template.md

A template CLAUDE.md that wires every piece above into a single set of rules an agent reads at the start of every session.

Pricing

Same zip for every tier. The license grant scales with your team size — see the FAQ below.

Solo

For one person

$19 one-time

One person. Unlimited personal and commercial projects.

Recommended

Team

For a small team

$49 one-time

Up to 10 people at one company.

Org

For a whole org

$149 one-time

Unlimited people at one organization.

FAQ

QWhat exactly is in the download?

AA zip containing every file listed in the table above: the ledger schema and Python reconciliation script, three bash hooks with their install docs, a subagent-routing playbook, resumable state-file templates, an autonomy-loop shell script, and a CLAUDE.md template that wires it all together.

QWhat's the difference between Solo, Team, and Org?

AThe zip is identical across all three tiers. The only difference is the license grant: Solo covers one person, Team covers up to 10 people at one company, and Org covers unlimited people at one organization.

QDo I need Claude Code specifically to use this?

AThe hooks and loop script assume the Claude Code CLI. The ledger schema is plain Postgres SQL and the reconciliation script uses only the Python standard library, so those two pieces work with any agent stack.

QCan I resell or repackage the kit?

ANo. You can use it in unlimited personal and commercial projects, including things you sell — but you may not redistribute or resell the kit itself as a standalone product. Full terms in the LICENSE.md included in the download.

QWhat's the refund policy?

A14 days, no questions asked, since this is a digital product delivered instantly. See /refunds for details.