checkpointed-agent-loop

Featured

Run long or failure-prone Claude Code tasks as bounded, resumable loops with a durable state machine, attempt budget, and verification evidence checkpoint.

AI & Automation 3,438 stars 500 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 96/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Checkpointed Agent Loop Use this skill when a task can be interrupted, needs bounded retries, or must prove verification before it is called complete. It adds a small local checkpoint file around ordinary Claude Code work so a new context can resume from explicit state instead of reconstructing progress from chat. The included Node.js utility stores state and evidence. It does **not** execute commands, call a model, spawn agents, access secrets, or contact a network service. Claude Code remains responsible for each actual tool call and for deciding whether a human approval is required. ## When to Use This Skill - A migration, refactor, test repair, or investigation may span multiple sessions. - A bounded retry loop is safer than repeatedly improvising from conversation history. - A task needs a durable next action and a record of which verification actually ran. - You need to stop at an external dependency or a human decision without claiming success. Do not use it for a one-line edit or a workflow that already has its own durable runner. ## State Model The checkpoint uses these states and only these transitions: ```text planned -> running running -> verifying | failed | blocked verifying -> succeeded | running | failed | blocked ``` `succeeded`, `failed`, and `blocked` are terminal. Entering `running` consumes one attempt, and the finite `maxAttempts` value cannot be exceeded. A transition to `succeeded` is rejected until the checkpoint contains at least one passi...

Details

Author
davepoon
Repository
davepoon/buildwithclaude
Created
1 years ago
Last Updated
2 days ago
Language
Python
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category