What problem does it solve?
CLI tools often hang on interactive prompts, produce unclear errors, or lack discoverable help, causing AI coding agents like Claude Code to get stuck or resort to fragile workarounds like piping 'yes' into commands.
Core Features & Use Cases
- Non-interactivity verification: Scenario tests assert that agents never use workarounds like
yes |, expect -c, or piping newlines into stdin.
- Error recovery testing: Scenarios where the agent makes mistakes (wrong command, missing argument, auth failure) and must self-correct using
--help and error output.
- Judge-based evaluation: Uses @langwatch/scenario with a user simulator and judge agent to score whether the CLI was used correctly.
- Use Case: You maintain a deployment CLI and want to prove Claude Code can run every command without hanging on confirmation prompts before shipping it to users.
Quick Start
Write a scenario test that has an AI agent discover and run my CLI's commands, and flag any command that requires interactive input.