tinyeval
Evals framework for AI features that works with any language. One bash file, as few dependencies as possible.
$ tinyeval
support
✓ refund after the window 4.4s
✗ missing package 2.5s
judge: It promises a new package before asking for the order number.
reply: So sorry about that! I've sent a replacement your way...
1 of 2 evals failed (eval-results.json)
Quickstart
Ask your coding agent:
Set up evals with https://tinyeval.com/setup.md
Or set it up yourself. In your repo's root:
curl -fsSL https://tinyeval.com/install.sh | sh
tinyeval
install.sh adds ./tinyeval (commit it), evals/example.sh and an eval-results.json line in .gitignore. It also puts a tinyeval command in ~/.local/bin that runs the repo's ./tinyeval, so each repo keeps its own version. Teammates and CI run ./tinyeval with nothing to install. Then replace ask in the example with your AI call:
ask() { python3 bot.py "$1"; } # your AI call: input in, reply out
test_case "refund after the window" "Can I return shoes that arrived 40 days ago?"
contains "30 days"
judge "Says a refund isn't possible anymore, politely"
tinyeval needs bash 3.2 or later, which macOS, most Linux and Git for Windows come with (on Alpine, apk add bash). judge also uses curl.
Install with your package manager
The committed ./tinyeval needs nothing installed. To keep tinyeval in your manifest instead, every package ships the same runner plus a worker helper for your language, and Dependabot or Renovate can update it:
| Language | Install |
|---|
| Python | pip install tinyeval-cli or uv add --dev tinyeval-cli |
| JavaScript, TypeScript | npm install --save-dev tinyeval-cli |
| Ruby | bundle add tinyeval --group development |
| Go | go get -tool github.com/evalship-hq/tinyeval/go/cmd/tinyeval |
| Java, Kotlin, Scala | com.evalship:tinyeval from Maven Central |
| C# | dotnet tool install Tinyeval.Tool and dotnet add package Tinyeval |
| PHP | composer require --dev evalship/tinyeval |
| Rust | cargo install tinyeval and cargo add --dev tinyeval |
| Swift | .package(url: "https://github.com/evalship-hq/tinyeval-swift", from: "0.11.0") |
| Dart | dart pub add --dev tinyeval |
| Elixir | {:tinyeval, "~> 0.11", only: [:dev, :test], runtime: false} in mix.exs |
| Lua | luarocks install --tree lua_modules tinyeval |
| R | install.packages("tinyeval", repos = c("https://evalship-hq.r-universe.dev", getOption("repos"))) |
| Any, with Homebrew | brew install evalship-hq/tap/tinyeval |
| GitHub Actions | uses: evalship-hq/tinyeval-action@v0 |
Or start from a template repo with a support bot, its test cases and a CI workflow: Python, TypeScript, JavaScript, Go, Java, C#, Ruby, PHP, Rust, Kotlin, Swift, Dart, Elixir, C++, Scala, Lua or R.
Check every prompt change
With the tinyeval skill, your coding agent tests a change to a prompt, a model or an AI call before it finishes. It runs the change's test cases before and after, and keeps the inputs it would have tried by hand as test cases.
In Claude Code:
/plugin install tinyeval --marketplace evalship-hq/tinyeval
In Codex, Cursor, Gemini CLI and other agents that read skills:
npx skills add evalship-hq/tinyeval
Writing evals
Each file in evals/ is a suite. It defines ask and lists test cases.
ask makes your AI call. It gets the input as $1 and on stdin, and prints the reply. Use the code you already have: