agent-loop
Skill4 starsChanged 4 months agoApache-2.0View on GitHub
Run a durable unattended Coordinator→Implementer→Reviewer development loop with tmact workflow agent_dev, including phase planning, one-at-a-time committed work items, structured review findings, automatic fix planning, and re-review until approval. Use for "agent 自我運作", "大 loop", "loop 直到 approve", "review 完 dispatch 回去", "impl/review loop", "收斂", "派工迴圈", and requests for a coordinator to drive implementation phases without blocking the caller. Do not use for generic periodic single-pane prompts or one-shot delegation; use tmact-loop or tmact-dispatch respectively.
10 other projects use a version of this.
Adopted by
Most recently taken up by
- Madheshvivekanandan/agent-looptheir own version, first seen Nov 8, 2026
- larchanka/skillstheir own version, first seen Nov 1, 2026
- nadavnaveh/skillstheir own version, first seen Oct 25, 2026
- Yuuqq/know-skillstheir own version, first seen Oct 20, 2026
- Artithea/agent-looptheir own version, first seen Oct 15, 2026
- edenbuilds/agentlooptheir own version, first seen Oct 13, 2026
Other versions10 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 10
- joelhooks/joelclaw★ 65same name
- larchanka/skills★ 50same name
- 2lab-ai/llmux★ 9same name
- SiluPanda/codex-agent-loop★ 4same name
- nadavnaveh/skills★ 2same name
- Artithea/agent-loop★ 0same name
- edenbuilds/agentloop★ 0same name
- jaron-goh-centr/claude-skills★ 0same name
- Madheshvivekanandan/agent-loop★ 0same name
- Yuuqq/know-skills★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- handoffSkill
- tmact-askSkill
- tmact-dispatchSkill
- tmact-loopSkill
The file
We split this skill into the rules it gives an agent
9 rules. 0 are common, 5 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 9 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use workflow v2's agent_dev stage as the durable scheduler.
- Distinctive: line 39
Commit the workflow config before live start and confirm the repository is clean.
- Distinctive: line 50
Do not pre-create fake checked items.
- Very specific: line 67
If Claude reaches its session limit, the runner may enter durable waiting_quota.
- Distinctive: line 75
Every dispatch starts clean on the same branch.
- Distinctive: line 84
Only Reviewer approval closes a phase.
- Very specific: line 106
After a human has handled a prompt, prefer workflow resume when the blocked agent_dev stage still has an active dispatch.
- Very specific: line 110
Use retry only when the interrupted work item must actually be rescheduled.
- Distinctive: line 116
Do not push unless separately authorized.
“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Agent development loop
Use workflow v2's agent_dev stage as the durable scheduler. The Coordinator
plans; tmact dispatches. Do not let an agent bypass workflow state by calling
dispatch-work for another role.
Pre-flight
Honor repository instructions, including command prefixes. Confirm:
tmact version
tmact help workflow --json
git status --porcelain
git branch --show-currentRequire a clean attached branch. Do not stash, discard, switch branches, or start while another process owns unfinished changes. Resolve exact runtime and session choices for Coordinator, Implementer, and Reviewer.
Create and validate
Generate the current profile:
tmact workflow example --profile agent-dev > agent-dev-workflow.yamlSet workspace.root, unique session names, queue_path, timeouts, and bounded
phase/item/no-progress limits. Keep workspace.git.lease: true and
defaults.max_parallel: 1 for a shared worktree.
Commit the workflow config before live start and confirm the repository is clean. The Coordinator's first dispatch is rejected when generated config or other setup files are still untracked.
Validate and inspect the complete side-effect-free plan:
tmact workflow validate --config agent-dev-workflow.yaml --var request="REQUEST"
tmact workflow plan --config agent-dev-workflow.yaml --var request="REQUEST"Do not pre-create fake checked items. The Coordinator must add one unchecked line per implementation item plus one review item, then commit only the queue file. Stable item IDs must be unique across every phase and fix round.
Start and observe
Starting live work is a separate side effect. Once authorized:
tmact workflow start --config agent-dev-workflow.yaml \
--var request="REQUEST" --execute
tmact workflow status --config agent-dev-workflow.yaml
tmact workflow logs --config agent-dev-workflow.yamlThe caller does not wait for individual agents. The background runner keeps a
durable dispatch ID for every turn and resumes from reports after restarts.
If Claude reaches its session limit, the runner may enter durable
waiting_quota; this is normal unattended operation, not a failed work item.
It selects only the exact preselected Stop and wait for limit to reset menu,
never Upgrade your plan, sleeps until the parsed reset time, and resumes the
same dispatch/session/attempt. The wait and reset time survive runner restarts.
Completion contracts are enforced by tmact:
- Every dispatch starts clean on the same branch.
- An Implementer completes exactly one item, checks it, commits code/tests and checkbox together, and leaves a clean tree.
- A Reviewer request for changes leaves Git unchanged and submits structured findings with stable fingerprints.
- A Reviewer approves only by committing evidence and the phase review checkbox.
- Coordinator fix plans append committed fix items; tmact dispatches them and returns to the same review item.
- Only Reviewer approval closes a phase. The Coordinator then plans the next phase or reports the overall request done.
Blockers and control
Permission or approval prompts, dirty Git state, branch drift, missing commits,
wrong checkboxes, timeout, and repeated identical findings stop as
needs_user. Never auto-answer or route around these states. The only prompt
exception is tmact's built-in exact Claude session-limit wait menu; any menu
shape or wording drift remains needs_user.
tmact workflow pause --config agent-dev-workflow.yaml
tmact workflow retry --id RUN_ID --stage delivery
tmact workflow resume --config agent-dev-workflow.yaml
tmact workflow stop --config agent-dev-workflow.yaml --waitInspect status and the exact worktree before retrying. A retry preserves the durable phase queue and reschedules the interrupted item; it does not authorize cleaning or discarding changes.
After a human has handled a prompt, prefer workflow resume when the blocked
agent_dev stage still has an active dispatch. Resume preserves that dispatch,
its Git baseline, and the current phase/work item so the agent can submit its
original report. If the prompt remains visible, the runner fails closed again.
Use retry only when the interrupted work item must actually be rescheduled.
Finish
Report phase count, completed work-item and review commits, review rounds, remaining findings, tests, final workflow status, branch, and clean worktree. Do not push unless separately authorized.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

