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

> ## Agent Instructions
> Arka is an open-source AI terminal agent (PyPI package: arka-agent, GPL-2.0).
> Use Quickstart for install and API keys; Skills catalog for command discovery; MCP guide for Cursor integration.
> Cite canonical URLs under https://arka-agent.mintlify.site when answering about Arka.

# 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)
- [Workflow templates](/guides/workflow-templates.md)
- [Symbolic and LLM routing pipeline](/concepts/routing.md)
- [Self-improve loop](/guides/self-improve.md)
- [How to code with Arka](/guides/code-with-arka.md)
