Metadata-Version: 2.5
Name: thinkerwave-metis
Version: 0.1.0
Summary: Metis by ThinkerWave: measure, improve and prove the instructions your AI agent runs on.
Project-URL: Homepage, https://thinkerwave.ai
Project-URL: Source, https://github.com/thinkerwave-ai/thinkerwave
License-Expression: Apache-2.0
License-File: LICENSE
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.10
Requires-Dist: httpx>=0.27
Requires-Dist: pydantic>=2.6
Requires-Dist: pyyaml>=6
Provides-Extra: bedrock
Requires-Dist: boto3>=1.34; extra == 'bedrock'
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == 'dev'
Requires-Dist: ruff>=0.5; extra == 'dev'
Provides-Extra: mcp
Requires-Dist: mcp>=2.3; extra == 'mcp'
Description-Content-Type: text/markdown

# Metis by ThinkerWave

**Make a cheap model reliable enough to run unattended.**

Fewer confident wrong answers. Same answer on every run. Escalate, don't guess.

Metis measures how reliable your AI agent is on your own labelled cases, improves its instructions,
and proves the improvement on cases it never trained on. Measuring is free and runs on your machine,
with no account. It works for any agent whose answers you can check: triage, root-cause analysis,
classification, extraction, contract review, routing, compliance checks.

From the Metis paper (draft, 1 Dec 2026): on a telecom root-cause task, a cheap model with a Metis
instruction matched a frontier model's net score with about half the wrong answers, at 1/13 of the cost.
See [`examples/`](examples) for the numbers and how to rerun the tasks yourself.

## Install

```bash
pip install thinkerwave-metis        # the `metis` command
pipx run --spec thinkerwave-metis metis --version
npx thinkerwave-metis --version      # needs uv (it fetches Python itself), or pipx (which needs Python)
```

Python 3.10 or newer. Package `thinkerwave-metis`, import `metis`, command `metis`, MCP server `metis-mcp`.

## Try it

```bash
metis init                 # writes metis/agent.yaml, instruction.md, cases.jsonl
# edit metis/agent.yaml: say what the agent decides, and pick your model
export ANTHROPIC_API_KEY=...
metis check                # a reliability card: right, wrong, escalated, consistency, cost
```

Full walk-through: [docs/quickstart.md](docs/quickstart.md).

## What it does

| Command | What | Needs |
|---|---|---|
| `metis check` | Runs your cases several times each and writes a card | your model key |
| `metis compare` | Two instructions or two models on the same cases; `--ci` gates a pull request | your model key |
| `metis cases` | Builds an answer key from your logs, with a local labelling page | nothing |
| `metis optimise` | Rewrites the instruction, then proves it on held-out cases | a Metis API key |
| `metis accept` | Shows the diff and makes the new instruction yours | nothing |

Your model calls go to your own provider with your own key. Only `metis optimise` talks to ThinkerWave,
and it shows you what it will send before the first call.

## Your agent, not just a prompt

If your agent is a LangChain graph, an OpenAI Agents SDK app or a service in any language, point
`agent.yaml` at it and Metis tests the real thing: [docs/endpoint-mode.md](docs/endpoint-mode.md).

## Docs

- [Quickstart](docs/quickstart.md)
- [Endpoint mode: bring your own agent](docs/endpoint-mode.md)
- [Why "same answer" is not "sure answer": what Metis promises](docs/deterministic-vs-consistent.md)
- [Security and privacy](docs/security.md)
- [Pricing](docs/pricing.md)
- [Examples: TeleLogs and ContractNLI](examples)

Cards from your own runs say "self-reported": measured by you, on your own cases.

Apache-2.0. Source: https://github.com/thinkerwave-ai/thinkerwave
