> ## 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.

# Iterate and loop

> Repeat Arka commands by count or interval.

`iterate` is bounded repetition; it runs exactly N times and then exits:

```bash theme={null}
arka iterate 5 "repo health"
```

`loop` is interval-based and continues until interrupted. Add `--count` when
you want an interval loop with a finite number of cycles:

```bash theme={null}
arka loop 300 "check repo health"
arka loop 60 --count 10 "run tests"
```

These runners are independent of `arka goal`: they do not plan, mutate goals,
or persist autonomous progress.


## Related topics

- [Engineering loops](/guides/loop-engineering.md)
- [AI agent guide — use Arka over MCP](/guides/ai-agents.md)
- [Workflow templates](/guides/workflow-templates.md)
- [Symbolic and LLM routing pipeline](/concepts/routing.md)
- [Developer loop](/guides/dev.md)


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