Loading...
Loading...
Compare original and translation side by side
loopLOOP_ROLEloop handoffloopLOOP_ROLEloop handoffgit addgit commitgh prloop commitloop iteration closeloop task todoloop task mergeloop branch renameloop iteration read pr-templateloop iteration write pr-titleloop iteration write pr-bodyloop prloop task mergeloop iteration read runtimeloop iteration read instructionloop issue askloop help agent handoff writegit addgit commitgh prloop commitloop iteration closeloop task todoloop task mergeloop branch renameloop iteration read pr-templateloop iteration write pr-titleloop iteration write pr-bodyloop prloop task mergeloop iteration read runtimeloop iteration read instructionloop issue askloop help agent handoff writeloop handoff write task-tree --file task-tree.jsonschema_versionsummarygoal_evaluationgoal_completetasksidtitledescriptiondepends_onconflicts_withacceptance{
"schema_version": 1,
"summary": "One-sentence AI sprint-sized PR summary.",
"goal_evaluation": "Current view of the CLI goal.",
"goal_complete": false,
"tasks": [
{
"id": "implement-core",
"title": "Implement core behavior",
"description": "Instructions for the coding agent.",
"depends_on": [],
"conflicts_with": [],
"acceptance": ["Concrete acceptance check."]
}
]
}depends_onconflicts_withloop handoff write task-tree --file task-tree.jsonschema_versionsummarygoal_evaluationgoal_completetasksidtitledescriptiondepends_onconflicts_withacceptance{
"schema_version": 1,
"summary": "一句话概括AI冲刺级别的PR内容。",
"goal_evaluation": "当前对CLI目标的看法。",
"goal_complete": false,
"tasks": [
{
"id": "implement-core",
"title": "实现核心行为",
"description": "给编码Agent的说明。",
"depends_on": [],
"conflicts_with": [],
"acceptance": ["具体的验收检查项。"]
}
]
}depends_onconflicts_withloop task todo addloop task todo add --after <n>loop task todo move <n> --after <n>--after 0loop task todo add --type F --title "Add publish review route" --acceptance "The route renders the review workflow and focused coverage passes." add publish review route
loop task todo list
loop task todo start 1loop task todo addloop task todo add --after <n>loop task todo move <n> --after <n>--after 0loop task todo add --type F --title "Add publish review route" --acceptance "The route renders the review workflow and focused coverage passes." add publish review route
loop task todo list
loop task todo start 1
Do not start the next TODO until the current TODO has been completed and committed by `loop task todo complete`.
When all TODOs are done, write the task result outside repository changes:
```bash
loop handoff write task-result --task "$LOOP_TASK_ID" --file "$LOOP_TASK_DIR/task-result.json"{
"schema_version": 1,
"task_id": "implement-core",
"status": "completed",
"summary": "What changed.",
"validation": ["Focused check that ran."],
"notes": []
}loop task merge --type F complete "$LOOP_TASK_ID"loop task merge --continuestatus: "completed"loop task mergeloop task discard --reason <reason>failedsummarynotes
在当前TODO被`loop task todo complete`完成并提交前,请勿开始下一个TODO。
当所有TODO完成后,在仓库变更外编写任务结果:
```bash
loop handoff write task-result --task "$LOOP_TASK_ID" --file "$LOOP_TASK_DIR/task-result.json"{
"schema_version": 1,
"task_id": "implement-core",
"status": "completed",
"summary": "变更内容说明。",
"validation": ["已执行的针对性检查项。"],
"notes": []
}loop task merge --type F complete "$LOOP_TASK_ID"loop task merge --continuestatus: "completed"loop task mergeloop task discard --reason <reason>failedsummarynotesloop handoff write review-result --file review-result.json{
"schema_version": 1,
"status": "approved",
"summary": "Review conclusion.",
"goal_evaluation": "Whether the integrated PR satisfies the CLI goal.",
"goal_complete": false,
"findings": []
}loop branch rename --kind feat concise-branch-subject
loop iteration read pr-template
loop iteration write pr-title --value "Clear PR title"
loop iteration write pr-body --file pr-body.md
loop pr create
loop pr checks
loop pr mergestatus: "approved"pr-state.status=mergedchanges_requestedfindingsgoal_completeloop handoff write review-result --file review-result.json{
"schema_version": 1,
"status": "approved",
"summary": "评审结论。",
"goal_evaluation": "集成后的PR是否满足CLI目标。",
"goal_complete": false,
"findings": []
}loop branch rename --kind feat concise-branch-subject
loop iteration read pr-template
loop iteration write pr-title --value "Clear PR title"
loop iteration write pr-body --file pr-body.md
loop pr create
loop pr checks
loop pr mergepr-state.status=mergedstatus: "approved"changes_requestedfindingsgoal_complete