Using Claude Code, Cursor, or another coding agent? Paste this into your prompt to run cross-browser and real-device tests, debug sessions, and wire up CI on the TestMu AI cloud:
Variables
Format
Variables are JSON objects keyed by name. Each entry describes a single variable:Usage in Objectives
Reference variables with{{key}} syntax:
{{email}} and {{password}} are rewritten to internal namespaced forms; the agent sees the resolved values at runtime.
Loading Order
Variables are merged from four sources in this order. Later sources override earlier ones for the same key:- Global directory —
~/.testmuai/kaneai/variables/*.json - Local project directory —
.testmuai/variables/*.json(relative to where you invokekane-cli) - File flag —
--variables-file <path> - Inline flag —
--variables '<json>'(highest priority)
Inline Variables
Pass a JSON object directly on the command line:Variables from a File
Point at a single JSON file:Project-Local Variables
Drop one or more*.json files into .testmuai/variables/ inside your project’s working directory. They load automatically whenever you run kane-cli from that directory.
Global Variables
For values you want available across every project on your machine, place*.json files in ~/.testmuai/kaneai/variables/.
Example Variable File
Secrets
Mark a variable as secret by setting"secret": true:
Context Files
Context files are plain Markdown files whose contents are passed to the agent alongside your objective. Use them for standing instructions — coding conventions, accounts to use, sites to avoid, or domain knowledge the agent should always have.Two Levels
Example Local Context File
Override Per Run
Override either context file for a single run:What to Put in Context
Global context:- Company terminology and naming conventions
- Standard test account references (no hardcoded values)
- Performance expectations (e.g., “page loads in under 3 seconds”)
- Universal navigation patterns
- App overview and purpose
- Test environment URL and known limitations
- Navigation patterns specific to this app
- Known UI quirks and workarounds
- Common test flows
- Test data references (IDs, emails: no passwords)
- Hardcoded secrets (use variables)
- Large code blocks or logs
- Information that changes frequently