For AI agents and LLMs: a machine-readable index is available at llms.txt. A plain-Markdown version of any documentation page is available by appending .md to its URL.
Skip to main content

The Rook Testing Sequence

The first complete Rook journey has eight steps. After the initial setup, repeat only the phases affected by your agent or test changes.

First-Run Sequence

StepCommandResult
1rook loginSign in to TestMu AI. Authentication is shared by terminals using the same Rook home.
2rook project useSelect the project that owns the agents, scenarios, profiles, and runs.
3rook explore .Inspect the codebase and derive the agents and features it contains.
4rook agent useSelect an agent when discovery found more than one.
5rook generateCreate functional and adversarial scenarios for the active agent.
6rook profile addDescribe how to reach the live target; Rook writes and verifies the invocation hooks.
7rook runInvoke the agent and grade the evidence returned for each scenario.
8rook syncRecord the complete local project tree upstream as one deliberate write.

You can request a later operation before completing every earlier one. Rook reports what is missing, or presents the prerequisite plan and estimated cost before it spends credits. Use rook status at any point to see where the workspace stands.

Interactive and Shell Surfaces

Rook has one command set with two surfaces:

# Interactive TUI
/explore .
/generate
/run
# Shell or CI
rook explore .
rook generate
rook run

The leading slash belongs only to the interactive session. Command behavior and stored state are shared.

Bare /project, /agent, and /profile commands open pickers. Use the arrow keys and Enter to select the active record. The picker is the list; these command families do not require a separate list subcommand.

Ask in Plain Language

Use rook ask when you know the outcome but not the command:

rook ask "generate adversarial tests for refund-policy bypasses"

Rook resolves the request to the appropriate operation. Any operation that spends credits or needs permission still shows its plan and asks first.

Local Changes and Sync

Exploration, generation, profile authoring, and curation write plain files under .testmuai/rook/. They do not silently publish workspace state.

rook sync records the current project tree upstream. Profile files contain environment-variable references, never their secret values. Run results are saved locally as they happen and can be reconciled upstream after connectivity returns.

When to Repeat a Step

ChangeRepeat
Agent source, prompt, tools, or policy changedexplore, then regenerate affected scenarios
Test intent changed without an implementation changegenerate with an instruction, then curate
Endpoint, authentication, or response shape changedprofile test, then profile fix if needed
Only the deployed target changedrun against the intended profile
Evidence arrives asynchronouslyContinue the same run with --run <id> --phases collect,judge
Local project metadata needs publishingsync

Test across 3000+ combinations of browsers, real devices & OS.

×
Schedule Your Personal Demo
Book Demo

Help and Support

Related Articles