Litmus 🧪
Terminal UI for running LLM agent scenarios and comparing their performance.
Litmus executes coding tasks across multiple AI agents and models, runs tests against the results, and produces detailed evaluation reports — all from a single TUI.
What it does
- Detects agents installed on your system (Claude Code, Codex, Aider, Cursor Agent, KiloCode, OpenCode)
- Runs scenarios — each scenario is a coding task with tests and scoring criteria
- Evaluates results — an LLM judge scores agent and model performance across 20 criteria each
- Generates reports — HTML reports with per-scenario breakdowns, logs, and scores
Supported agents
| Agent | Binary | Model listing |
|---|---|---|
| Claude Code | claude |
Built-in list |
| Codex | codex |
Built-in list |
| OpenCode | opencode |
opencode models |
| KiloCode | kilocode |
kilocode models |
| Aider | aider |
aider --list-models |
| Cursor Agent | agent |
agent models |
Litmus auto-detects which agents are available and queries their model lists.
Quick start
Requires Python 3.12+.
pip install litmus-llm
litmus init # create a workspace with a sample scenario
litmus # open the TUI
Or run without installing via uv:
uvx --from litmus-llm litmus
Development setup
git clone https://github.com/ivkond/litmus.git
cd litmus
uv sync
uv run litmus
TUI workflow
- 📋 Models — select agents and models to test
- 🧩 Scenarios — pick which coding tasks to run
- ▶️ Run — watch execution progress in real time
- 📊 Analysis — review LLM-judged scores
- 📄 Reports — browse generated HTML reports
How it works
Each scenario lives in template/<id>/ and contains:
template/1-data-structure/
prompt.txt # Task description sent to the agent
task.txt # Detailed requirements
scoring.csv # Evaluation criteria
project/ # Starter code with tests
Execution pipeline per scenario:
uv sync -> agent call -> pytest -> collect logs
After all runs complete, an LLM judge evaluates the results using 20 agent criteria (tool efficiency, error recovery, reasoning depth...) and 20 model criteria (code correctness, instruction following, hallucination resistance...).
Configuration
On first launch, Litmus generates a config file with detected agents and their settings. Configure the analysis model (any OpenAI-compatible API) through the TUI settings screen.
Scenario packs
Litmus supports exporting and importing scenario archives (.litmus-pack ZIP files) for sharing test suites between machines or teams.
Project structure
src/litmus/
__init__.py # Entry point, workspace init
app.py # Main app, menu screen
agents.py # Agent registry, detection, model listing
run.py # Scenario execution engine
analysis.py # LLM-powered evaluation (20+20 criteria)
report.py # HTML report generation
pack/ # Scenario export/import
screens/ # TUI screens (models, scenarios, run, results, analysis)
Tech stack
- Textual — TUI framework
- Rich — terminal formatting
- Pydantic — structured evaluation models
- OpenAI SDK — LLM judge (any compatible API)
License
Metadata
Release files for litmus-llm 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| litmus_llm-0.3.1.tar.gz | 47.0 kB | Without provenance | Details for litmus_llm-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| litmus_llm-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for litmus_llm-0.3.1-py3-none-any.whl |
Total release size: 102.9 kB
Release files / litmus_llm-0.3.1.tar.gz
| Download URL | litmus_llm-0.3.1.tar.gz |
|---|---|
| Size | 47.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a895717e1dff8df8864fbb7dbab2fc4f5f6869f3eb4caf348a0ef7c2c1cc44e1
|
|
BLAKE2b-256 checksum How to use checksums |
c521f2330c286af7c7ec209dfbe6a894da9c536a702afe43228524df1e9068a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / litmus_llm-0.3.1-py3-none-any.whl
| Download URL | litmus_llm-0.3.1-py3-none-any.whl |
|---|---|
| Size | 55.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a65c8c3546fb1240fff816b3d55789bf49699daa50b20972f0e18d095b3eddc9
|
|
BLAKE2b-256 checksum How to use checksums |
416cea2c944e72abbd166fb2cff4f9354753f819d430533d1ae558e8ac60eac7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for litmus-llm 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.