AI code testing with Kane CLI for web and mobile apps
Unit tests and code review read the diff. Kane CLI runs the web or mobile app your coding agent changed the way a user would, checks the flow you describe in natural language, and returns pass or fail before merge. Free to install.
or read the documentation
Kane CLI catches the AI-code bugs that code review passes
AI code testing checks that a change written by Claude Code, Cursor, Codex or Copilot works in the running app as well as in the source. The agent's own checks, unit tests, type checks, linters and the compiler, all read code. None of them renders the page.
So a change can compile, pass review and still ship a button wired to the wrong API, a redirect that 404s or a modal that never closes. In the 2025 Stack Overflow Developer Survey, 66% of developers named AI solutions that are almost right, but not quite, as their biggest frustration with AI tools.
Kane CLI runs the app instead of reading it. Describe the flow in natural language, point it at a preview or staging build, and it uses the web or mobile app step by step, then returns pass or fail with screenshots and logs for each step.

What code review, unit tests and Kane CLI each catch
Keep all three. Each one reads something different, so each one misses what another catches.
| Check | What it reads | What it catches | What it misses |
|---|---|---|---|
| Code review | The diff | Problems with the intent, scope and security of the change | Anything that only shows when the page renders, since the reviewer never sees the running app |
| Unit tests | Single functions, in isolation | Logic errors, in seconds | How the assembled app behaves, and a coding agent often writes them in the same change as the code they test |
| Kane CLI run against the live app | The running web or mobile app, used the way a user would | A button wired to the wrong API, a redirect that 404s or a modal that never closes | Anything outside the flows you describe, since it does not read the source code |
Kane CLI is the testing agent for AI-generated code
A testing agent for AI-generated code is a tool your coding agent calls to check its own change in the running app. Kane CLI is that agent for web and mobile apps: it returns pass or fail with evidence, so the agent knows its code works before it tells you the work is done.
Step 1
The coding agent writes the change
Claude Code, Cursor, Codex or Copilot edits the code and starts a local, preview or staging build.
Step 2
It calls Kane CLI with the flow to check
The agent describes the user flow in natural language and runs kane-cli run with --agent --headless. No selectors and no test framework code.
Step 3
Kane CLI uses the app and returns pass or fail
It clicks, types and waits in a real browser or on a device, then writes the verdict to the closing run_end event with an evidence link: screenshots, network logs and console output for every step.
Step 4
The agent acts on the verdict
On a pass it moves on. On a fail it fixes the bug its change introduced, or hands the failure to you with the evidence attached.
What Claude Code runs after a checkout change
kane-cli run "Go to http://localhost:3000, sign in as {{email}}, add the first product to the cart and assert the cart total updates" --agent --headlessClaude Code reads the run_end line, then continues or fixes the bug. Setup for each agent: Claude Code app testing and Cursor app testing. What to check before merge: how to test and review AI-generated code.
Kane CLI returns step screenshots, exit codes and coverage
Every run returns pass or fail with the evidence behind it, in a form a reviewer, a pipeline and the coding agent can all read.
Natural-language test objectives
Describe the outcome: sign in, add an item to the cart, confirm the total updates. No selectors, no XPath and no framework code to review next to the agent's diff.
Evidence for every step
Each run saves screenshots, a HAR network log and console output for every step in one evidence pack, so a reviewer opens what happened instead of trusting a green tick.
Product bug or test issue
With bug detection turned on, a failed step is investigated to work out whether the app or the test broke, and the verdict is recorded. A confirmed product bug carries result code 740.
Exit codes a pipeline can act on
0 is a pass, 1 a failed assertion, 2 an auth, browser or environment error, 3 a timeout. A staging server that will not respond never reads as a broken feature.
Autoheal with a confidence score
Each step targets the element a user sees, so a reworded label or a new CSS class does not break the test. Low-confidence matches are rejected, never healed past a real bug.
Coverage per acceptance criterion
kane-cli cover lists which acceptance criteria a run proved and which are gaps. Strict mode demotes a pass earned against a spec that has since changed.
Move Kane CLI tests from your terminal to TestMu AI cloud

Start in your terminal

Validate on the cloud

Release with confidence
Claude Code and Codex fix the bugs Kane CLI finds
The agent writes the change, runs Kane CLI against the app, and reads the result before it tells you the work is done.
Agent mode returns NDJSON
The agent runs Kane CLI headless in agent mode and reads one JSON event per line. The closing run_end event carries the status, a summary and the run directory.
Skills for Claude Code, Codex CLI and Gemini CLI
Install the skill once. The agent then checks that Kane CLI is installed and signed in, builds the command, parses the result and reads the failure logs and screenshots.
Continue, fix or hand back
After reading run_end, the coding agent moves on, fixes the bug its change introduced, or brings the failure to you with the screenshots attached.
Now in the Google Antigravity Marketplace
Using Antigravity? Add the TestMu AI plugin, and your agent gets the Kane CLI skill.
Gate pull requests with Kane CLI in three steps
Store credentials as CI secrets
Add LT_USERNAME and LT_ACCESS_KEY to your CI secrets. Pipelines sign in with that username and access key, since the OAuth login opens a browser window a runner cannot use.
Describe the flows a change can break
Write login, search, checkout and the other journeys your app depends on as natural-language objectives, and commit them as _test.md files next to the code.
Run them on every pull request
Run Kane CLI headless with a timeout on each pull request in GitHub Actions, GitLab CI, Jenkins or Bitbucket Pipelines, and fail the check on any non-zero exit code.
Kane CLI docs, blog and source code
Documentation
Everything you need to install, configure, and run Kane CLI in under 2 minutes.
Frequently asked questions
AI code testing is checking that code written by an AI coding agent, such as Claude Code, Cursor, Codex or GitHub Copilot, works when the app runs. Code-level checks confirm the change compiles and its unit tests pass. AI code testing also runs the changed web or mobile app and verifies the user flows the change touches. Kane CLI does this from the terminal: you describe the flow in natural language and it returns pass or fail with evidence. For apps made in an app builder rather than a code editor, see vibe coding testing.
A testing agent for AI-generated code is a tool your coding agent calls to check its own change in the running app, not only in the source. Kane CLI is that testing agent for web and mobile apps. The coding agent describes the flow in natural language, Kane CLI runs it in a real browser or on a device, and it returns pass or fail with an evidence link: screenshots, network logs and console output for every step. The coding agent reads the verdict and moves on, fixes the bug or hands the failure to you. For how to review the change before merge as well, see how to test and review AI-generated code.
Install Kane CLI and its skill (npm install -g @testmuai/kane-cli, then npx @testmuai/kane-cli-skill), and ask Claude Code to test the flow after its change. Claude Code runs kane-cli run "<objective>" --agent --headless against your local or preview build, reads the closing run_end event, and reports pass or fail with the evidence link. To make every session do this, add the End-to-end testing block to your CLAUDE.md. Full setup: Claude Code app testing. If your repo already keeps a Playwright or Cypress suite, add testing skills for coding agents: the agent keeps committed tests in your framework and uses Kane CLI as the independent check.
No. Code review checks the intent, scope and security of a diff, but the reviewer never sees the rendered page. Google's 2024 DORA report estimated a 7.2% reduction in delivery stability as AI adoption increased, and pointed teams back to basics such as small batch sizes and thorough testing. In the 2025 Stack Overflow Developer Survey, 66% of developers named AI solutions that are almost right, but not quite, as their biggest frustration. Keep the review, and add a run of the changed flow in a real browser whose result posts on the pull request.
Unit tests check functions in isolation, and a coding agent often writes them in the same change as the code they test, which is also where agent-induced flakiness starts: see deterministic tests for agent-written code. To derive the checks from the spec rather than from the code the agent wrote, see spec-driven testing. Kane CLI checks the assembled app the way a user meets it: it taps, clicks, types and waits on what the screen shows. Keep both. Unit tests catch logic errors in seconds, and a Kane CLI run catches the button wired to the wrong API or the redirect that 404s. To have AI write the unit tests themselves, see AI code assistants for testing.
Yes. Install the Kane CLI skill into Claude Code, Codex CLI or Gemini CLI, or point Cursor at the AGENTS.md file. After a change, the agent runs kane-cli run --agent --headless, reads the run_end event, and either continues, fixes the bug or hands the failure back to you with screenshots. See how a coding agent verifies a change with Kane CLI, and the setup pages for Claude Code app testing and Cursor app testing.
Any runner that has Node.js. Recipes exist for GitHub Actions, GitLab CI, Jenkins and Bitbucket Pipelines. Pass --headless and --timeout, sign in with --username and --access-key from CI secrets, and gate the job on the exit code. If the runner image has no browser installed, connect to a remote one with --ws-endpoint. Runs upload to Test Manager by default, and the run_end event carries the test_url link when the upload succeeds. Step-by-step: gate a CI pipeline with Kane CLI.
No. Kane CLI does not read the repository. It uses the running web or mobile app the way a user would, on a local, preview or staging build, and judges the result from what the screen shows, network responses and logs. A change that looks correct in the source but breaks on screen still fails.
They test different things. Kane CLI tests the app: it runs the code your coding agent wrote and checks the user flow in the web or mobile app. Agent Assurance tests the agent: it invokes an agent you own, such as your own coding agent, and checks what its runs changed, including files, commands and tool calls. Use Kane CLI to verify a change, and Agent Assurance to evaluate the agent that makes the changes.
The CLI is free to install. Every run, local runs included, uses KaneAI credits from your TestMu AI account, and kane-cli balance shows what is left. Start with 10,000 free credits, valid for 7 days, with no credit card. Paid KaneAI plans start at $17 a month, billed annually; see TestMu AI pricing.
Point your coding agent at the Kane CLI AGENTS.md file
The file teaches your agent to install Kane CLI, sign in, and test the flows its change touches in the running app, then report pass or fail with the evidence.