mawf-loop
Run open-ended coding or research work with an iterative act, observe, reflect, and decide loop.
- License 许可
- MIT
- 最近更新
- 2026-11-09
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- mawf-loop
- description
- Run open-ended coding or research work with an iterative act, observe, reflect, and decide loop.
03 SKILL.md 正文
MAW Loop Engineering (skill)
Use for open-ended tasks where the number of steps cannot be predicted.
A loop agent is an LLM using tools based on environmental feedback in a loop. MAW instantiates it as the implementer role with a loop node in the graph.
The loop contract
while not done:
act (call a tool)
observe (feed result back into context)
reflect (is this enough? what's the gap?)
decide: continue, escalate, or stop
Stopping conditions MAW enforces
- All tests green AND reviewer approves (ultracode).
- Max iterations reached (default 5, configurable via
--max-iter). - Cost guard DENY (the $5/min per-agent or $10/min total limit).
- Ground-truth from the environment (tool results, test output) shows the task is complete.
When NOT to use a loop
- Steps are fixed and decomposable → use a workflow / graph instead (cheaper, more predictable).
- The task is tiny → a single LLM call + retrieval suffices.
Avoid the fix-forget-repeat cycle
After a loop resolves a bug, run the break-loop analysis: root-cause category, why prior fixes failed, prevention mechanism. Capture the lesson in spec.
04 同仓库更多 Skills
mawf-planner
Choose an agent architecture from project signals, host capabilities, risk, parallelism, and cost constraints.
mawf-orchestration
Plan and coordinate cost-bounded multi-agent workflows for complex projects using mawf.
mawf-knowledge
Retrieve prior decisions and solutions from the MAWF knowledge store and inject bounded context. Use when planning or taking over a task, before authoring decision/solution notes, or when a symptom smells like a known pitfall.
trellis-brainstorm
Guides collaborative requirements discovery before implementation. Creates task directory, seeds PRD, runs the grill-with-docs interview (grilling + domain-modeling) to resolve the decision tree in rounds, and converges on MVP scope. Use when requirements are unclear, there are multiple valid approaches, or the user describes a new feature or complex task.
mawf-graph
Plan and inspect graph workflows with review gates, branching, checkpoints, and persistent execution state.
mawf-decision
Author and maintain long-lived decision notes in the MAWF knowledge store (write-notes semantics). Use only for non-trivial changes that deserve a durable decision record; never for mechanical edits or task-local design.