Shortest lets teams describe browser tests in plain language and executes them with Playwright, driven by Anthropic models through a TypeScript API.
Overview
Shortest is an AI-assisted testing framework built on Playwright. You write tests as readable scenarios in TypeScript files, and the tool uses an Anthropic API key to interpret instructions, drive the browser, and assert outcomes.
The shortest init command installs the dev dependency, scaffolds shortest.config.ts, seeds environment variables, and updates gitignore entries. Tests support callbacks for extra assertions, lifecycle hooks, chaining, and natural-language API checks alongside UI flows.
GitHub login scenarios can include two-factor setup guidance, and Mailosaur integrates for email verification. CI usage runs headless with secrets for the model provider.
A separate web application backs Antiwork's hosted product, but the published npm package targets embedding Shortest directly inside your application's test suite.
Key features
- Plain-language test definitions
- Playwright browser automation
- Anthropic model execution
- Init CLI scaffolding
- Test chaining and hooks
- GitHub 2FA login support
- Mailosaur email checks
- Headless CI execution
Use cases
- Describe UI tests in English
- Regression runs on pull requests
- Login flows with 2FA
- API checks mixed with browser steps