agent-loop
БесплатноБез исполняемых скриптовНе проверенStart, monitor, and cancel durable multi-agent coding loops via Inngest. Use when the user wants to run autonomous coding workloads, execute a PRD with…
от joelhooks★ 69 звёзд на GitHubОб этом скилле
Agent Loop
Run durable PLANNER→IMPLEMENTOR→REVIEWER→JUDGE coding loops via Inngest. Each story in a PRD gets independently implemented, tested, and judged. Survives crashes. Every step is a traceable Inngest run.
Hard gate: verification comes before loop throughput. If agents cannot prove the work is correct without Joel manually babysitting, do not start an autonomous loop yet. First add the missing reproducible check, browser/control tool, quality rubric, or reusable skill that lets future agents verify their own output.
Source receipt: lauren / @poteto's X article "Loops You Can Trust" (2026-06-24) frames verification as the limiting step: loops without trusted verification compound slop, while reusable skills/tools turn human experience into agent leverage.
After starting a loop, use the loop-nanny skill for monitoring, triage, post-loop cleanup, and knowing when to intervene.
Verification Preflight
Before joelclaw loop start, confirm every story has:
- Proof path: exact command, test, browser flow, API readback, screenshot/video, log query, or source inspection the agent can run.
- Quality bar: what "good" means, what failures look like, and which shortcuts are unacceptable.
- Before/after evidence: how the agent captures the broken/old state and proves the fixed/new state.
- Isolation plan: worktree, ports, browser state, app instance, database, or fixture isolation when parallel agents could collide.
- Reusable verifier: if the proof currently lives in a human's head, author a skill/tool first so future agents inherit it.
If this preflight fails, the next task is not "run the loop". The next task is "teach agents to verify this class of work".
Quick Start
# Start a loop
joelclaw loop start --project /path/to/project --prd prd.json --max-retries 2
# Check status
joelclaw loop status [LOOP_ID]
# Cancel
joelclaw loop cancel LOOP_ID
The joelclaw CLI is the primary interface. Run with bun run packages/cli/src/cli.ts loop start ... from the monorepo root.
PRD Format
Create a prd.json in the project root:
{
"title": "Feature Name",
"description": "What we're building",
"stories": [
{
"id": "S1",
"title": "Short title",
"description": "What to implement. Be specific about files, patterns, behavior.",
"acceptance_criteria": [
"Criterion 1 — must be verifiable by automated test",
"Criterion 2 — must be checkable by typecheck/lint"
],
"priority": 1,
"passes": false
}
]
}
Story writing tips:
- Acceptance criteria must be machine-verifiable (tests, typecheck, lint)
- Include the verification method or artifact in the criterion, not just the desired behavior
- If a criterion needs manual taste, first turn that taste into a reusable review checklist, skill, fixture, or tool
- Lower priority number = runs first
- Keep stories small and atomic — one concern per story
- Include file paths in descriptions when possible
passesflips totruewhen JUDGE approves;skipped: trueadded on max retry exhaustion- Runtime preflight normalizes legacy aliases (
acceptance,acceptanceCriteria) toacceptance_criteria, but malformed stories still fail fast with explicit schema errors — keep PRDs canonical.
Pipeline Flow
joelclaw loop start → agent/loop.start event
→ PLANNER reads prd.json, finds next unpassed story
→ IMPLEMENTOR spawns codex/claude/pi, commits changes
→ REVIEWER writes tests from acceptance criteria (independently — does NOT read implementation)
→ JUDGE: all green? → mark passed, next story
failing? → retry with feedback (up to maxRetries)
exhausted? → skip, flag for human review, next story
→ All done → agent/loop.complete
progress.txt
Create a progress.txt in the project root with a ## Codebase Patterns section at the top. This is read by the implementor for project context and appended by the judge after each story. Defends against context loss across fresh agent instances.
## Codebase Patterns
- Runtime: Bun, not Node
- Tests: bun test
- Key files: src/index.ts, src/lib/...
## Progress
(stories will be appended here)
Infrastructure
- Canonical source:
~/Code/joelhooks/joelclaw/packages/system-bus/(monorepo) - Inngest functions:
agent-loop-plan,agent-loop-implement,agent-loop-review,agent-loop-judge,agent-loop-complete,agent-loop-retro - Inngest server: k8s StatefulSet at localhost:8288
- Loop --project target: Use the absolute target project named by the request. The system-bus package owns loop runtime code; it is not every workload’s target.
- Apply worker changes:
~/Code/joelhooks/joelclaw/k8s/publish-system-bus-worker.sh - Verify functions:
joelclaw functions - View runs:
joelclaw runs -c - Inspect a run:
joelclaw run RUN_ID
Single-source deplo
Установить agent-loop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл agent-loop?
Start, monitor, and cancel durable multi-agent coding loops via Inngest. Use when the user wants to run autonomous coding workloads, execute a PRD with multiple stories, kick off an AFK coding session, have agents implement features from a plan, or manage running loops. Triggers on "start a coding loop", "run this PRD", "implement these stories", "go AFK and code this", "check loop status", "cancel the loop", "joelclaw loop", or any request for autonomous multi-story code execution.
Как установить скилл agent-loop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agent-loop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic