> ## Documentation Index
> Fetch the complete documentation index at: https://arka-agent-mintlify-f21cea86.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 工程循环

> 有界的规划、实现、验证、审查与学习循环。

Arka 内置了一个小巧、可复用的工程循环规划器，灵感来自
[loop-engineering](https://github.com/cobusgreyling/loop-engineering) 描述的
迭代工作流。它组合了 Arka 现有的仓库、lint、CI、前端和审查技能；不会复制
任何仓库特定代码。

```bash theme={null}
arka loop-engineering "improve checkout error handling" --iterations 3
```

每次迭代遵循 `observe → plan → implement → verify → review → learn`。该循环
上限为 20 次迭代，包含 CI 门禁，并且默认在编辑前需要批准。仅在你已审查
过计划时才使用 `--apply`；`--json` 让其他技能或 MCP 客户端更方便消费。

自然语言也可以：

```text theme={null}
engineering loop fix the checkout frontend for 2 iterations
```

这与 `arka loop`（按时间间隔重复命令）和 `arka iterate`（按固定次数重复
命令）不同。


## Related topics

- [逆向工程仓库](/cn/guides/repo-reverse.md)
- [开发者循环](/cn/guides/dev.md)
- [迭代与循环](/cn/guides/iterate-loop.md)
- [AI 智能体指南 — 通过 MCP 使用 Arka](/cn/guides/ai-agents.md)
- [自我改进循环](/cn/guides/self-improve.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.