一键导入
breadcrumb-loop
Run a long task across multiple agent contexts using breadcrumb progress files
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run a long task across multiple agent contexts using breadcrumb progress files
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | breadcrumb-loop |
| description | Run a long task across multiple agent contexts using breadcrumb progress files |
| user-invocable | true |
Run a long-running task that spans multiple agent contexts. Each agent picks up where the last left off via the /anvil:breadcrumb skill.
Given the user's goal in $ARGUMENTS:
implement-auth-module)plans/<task-slug>-breadcrumb-log/readme.md in that directory with:
$ARGUMENTS)Do NOT use run_in_background: true when invoking anvil-repl. The REPL manages long-running execution internally via child agent processes. Always run it in the foreground.
anvil-repl <<'ANVIL_REPL'
const DIR = "plans/<task-slug>-breadcrumb-log";
for (let i = 1; i <= 100; i++) {
anvil.log(`Iteration ${i}`);
// The slash command must lead the prompt — Claude Code only auto-expands
// skills into <command-name> tags when /command is at the start of the message.
const result = await anvil.spawn({
prompt: `/anvil:breadcrumb ${DIR} ${i}`,
contextShortCircuit: {
limitPercent: 50,
message: "Your context is running low. Stop new work and save your progress now.",
},
});
if (/^BREADCRUMB_COMPLETE$/m.test(result)) {
anvil.log("Task completed!");
break;
}
}
ANVIL_REPL
Breadcrumb agents commit their work directly to the branch. When the loop finishes:
git log --oneline to see what the breadcrumb agents committed*-progress.md file in the breadcrumb log directory for a summaryDebug issues using E2E tests, log analysis, and dev server management
Query ClickHouse observability logs over HTTP API
Iterate on bug hypotheses using Playwright repro scripts, structured logs, and source code analysis
Address unresolved inline diff comments and mark them resolved
Recursively decompose a task into sub-plans with dependency ordering, then execute in topological waves
Orchestrate multiple agents programmatically using anvil-repl