- they hold state across calls
- they enforce referential integrity between objects
- they return the same error shapes as the real service
I have an existing agent
Add Archal to a repo that already runs.
I need the first run
Add a small harness and run one scored test.
I want manual endpoints
Start persistent clones for SDK, REST, or MCP debugging.
I want test-suite integration
Use hosted clones from Vitest.
When to use which entrypoint
archal run- scenario runner. Markdown describes setup, task, and success criteria; Archal provisions clones, runs your code, evaluates the result.archal clone start- persistent clone session with live API endpoints. Right for debugging, prompt iteration, or wiring up a new integration. Pair witharchal run --reuse-sessionfor a fast inner loop that skips the cold-start.archal/vitest- hosted clones inside an existing Vitest suite. Tests use normal SDK clients; route mode redirects traffic to clones.
Concepts
| Clone | Stateful behavioral copy of a real service, hosted by Archal. |
| Scenario | Markdown file: setup, task, success criteria. |
| Harness | The command Archal runs to call your agent. |
| Satisfaction | Score from 0 to 100 across one or more runs. |
| Seed | Starting state for a clone. Built-in or generated from English. |
| Trace | Record of every tool call and API request, with state mutations. |
Go deeper
- Use an existing agent repo to wire Archal into code that already runs.
- Write scenarios to make repeatable checks.
- Use persistent clones for stable SDK, REST, or MCP endpoints.
- Run in CI when you are ready to gate changes.
- Read security for credentials, telemetry, and session cleanup.
