Skip to main content
Nookku

Nookku

(நோக்கு - to observe)

Nookku: an evaluation harness for vertical AI agents

You build a chat agent, for example a support agent for a shop. You test it from Claude Code or Codex, as your users talk to it. Nookku carries each message and each reply byte for byte, so the harness model does not retype a message and does not see a reply. Nookku records the test, and an audit proves that the record is exact. Then a model or a person evaluates the agent against your app spec.

Nookku is for developers of chat agents. It runs on your computer, and it has no hosted service. docs/faq.md tells why a prompt alone does not keep the messages exact. CONSTITUTION.md says what Nookku does not do.

CI PyPI Python versions License

Try it with no model

This quickstart needs no harness and no model. It runs from a clean checkout. A script sends 3 messages to the toy shop agent of this repo. Nookku records both sides and audits them.

uv tool install nookku
git clone https://github.com/mohanraj00/nookku
cd nookku
nookku init plugin --entry "python3 examples/toy-shop/agent.py"
nookku register <<'EOF'
{"model_apis": [], "backends": [], "mcp_servers": [], "databases": [], "other": []}
EOF
nookku check
nookku run --script examples/toy-shop/script.jsonl --no-evaluate

nookku register gives the egress answer: the toy shop calls no service, so the answer has 5 empty lists (SPEC.md section 7.11). nookku check sends one message and shows the reply. nookku run sends each message of the script to the agent (CLI reference). It prints the test id and the test folder, then this:

Turns: 3 of 3 messages
Audit: exit 0
Trace: 0 model items in 3 turns, no findings.
PASS

To read each message and each reply of the test, run nookku transcript. To see the test on the chat page, run nookku chat in a separate terminal, and open the URL that it prints. This is the page of that test:

The Nookku chat page of a scripted test of the toy shop agent. It shows 3 turns. The agent replies with a numbered refund policy, the shipping cities, and a table of 2 prices. Under each reply are a thumbs up, a thumbs down, a comment box and the turn time. The page ends with the message box.

Data: the record of the test and the method of the capture, with nookku 0.4.3 and no harness or model. In 0.4.3, the command nookku chat had the name nookku page.

Install

uv tool install nookku

It needs Python 3.10 or later, and it has no runtime dependencies (pyproject.toml). The docs are for version 0.7.0. To upgrade, end each running test, then run uv tool upgrade nookku. docs/how-to/upgrade.md gives each step, also for verbatim-relay 0.3.x and earlier.

Next steps

  1. Test the toy shop in Claude Code. docs/getting-started.md gives each step with its real output. Type the prompt nookku start, talk to the agent, then type nookku end. The end writes audit.json and report.md in the test folder .nookku/tests/<test-id>/.
  2. Connect your app. In the harness, in the project folder of your app, type !nookku setup. Then type the prompt "Follow the Nookku setup guide, and connect a test to this app." docs/how-to/test-your-app.md gives each step. Your app's code does not change: a thin entry in .nookku/ starts it.
  3. Choose a relay. The plugin and the project hooks work in Claude Code and in Codex, with the same rules (docs/how-to/choose-a-relay.md).
  4. Test an agent in a cluster. Give the tap the Service URL of the agent (HTTP tap guide). In a kind cluster, 5 of 5 messages and 5 of 5 replies were exact in each of 3 forms of the tap (data, method).
  5. Gate a release. Run a declared set of tests and get one verdict (docs/how-to/gate-a-release.md).

A sample report

At the end of a test, the harness model reads the record and writes report.md in the test folder. This is an excerpt of a real report. Nookku 0.6.0 and Claude Code 2.1.319 wrote it, with the project hooks, in a test of the toy shop with a model. The app has a planted bug: its refund tool compares euros with cents. The model did not see the conversation, and it found the bug in the record and the code.

# Test 20261121-060821-5a2a: evaluation

| Class | Turn | Evidence | Issue |
|---|---|---|---|
| business_rule | 2 | trace.jsonl:10, app.py:60, RULES.md:5 | The app paid a €80 refund right away: `shop.refund` input `{"order": "5120", "amount_eur": 80}` → result `{"refund": "RF-966883", "amount_eur": 80, "status": "paid"}`. RULES.md:5 says "A refund above €50 needs the approval of a manager. The refund waits for the approval, and the manager pays it." The cause is a unit mismatch at app.py:60: `if args["amount_eur"] > APPROVAL_LIMIT_CENTS:` compares euros (80) with cents (`APPROVAL_LIMIT_CENTS = 5000`, app.py:28). So in practice the approval check only fires above €5000. state.json:14-19 now holds the paid refund `RF-966883` on order 5120, and there is no `approvals` entry. |
...

The full report has 2 rows and 9 notes. Data: proofs/report/hooks-claude-code.json. Method: docs/results.md. A report is a model answer, so check its evidence. Read the results of a test tells you how.

How it works

tester ──> harness ──> relay ──────> tap ──stdin/stdout──> entry ──> your app
                         │            │
                         ▼            ▼
                    relay.jsonl    tap.jsonl
            (what you typed      (what the agent
             and saw)             received and sent)
                         │            │
                         └─> audit <──┘   exit 0 clean, 1 break, 2 invalid record
  • Harness: Claude Code or Codex, where you type your test messages.
  • Relay: the command nookku hook, which the plugin or the project hooks run in the harness. It carries each message and each reply, and the model writes neither.
  • Tap: a proxy in front of your agent. It forwards each byte with no change, and records what the agent received and sent.
  • Entry: a thin wrapper that starts your app and speaks one JSON line in and one JSON line out.
  • Audit: a program that compares the two records byte for byte, and names each break.

docs/architecture.md shows this flow with each part, and has diagrams of one turn, the test lifecycle and the trace.

Two processes write two records, and the audit compares them byte for byte. It reports 13 break classes (SPEC.md section 3.3). It fails closed: it never reports clean on a record that it cannot read. 112 audit cases, 21 contract cases, 62 trace cases, 3 gateway cases, 15 seal cases, 16 notes cases, 7 receiver cases, 35 discovery cases and 19 database cases in conformance/ test the spec (cases, tests).

A test also records what your app did. It copies the session files of the app's own Agent SDK or Codex sessions. It records the backend calls, the direct model calls and the OpenTelemetry spans of the app. docs/architecture.md shows each part.

Results

Proof Plugin, Claude Code 2.1.319 Plugin, Codex 0.169.0 Project hooks, Claude Code 2.1.319 Project hooks, Codex 0.169.0
Messages reach the agent byte for byte 10/10 10/10 10/10 10/10
Replies reach the tester byte for byte 10/10 10/10 10/10 10/10
Same, with a system prompt that tells the model to rewrite both 5/5 5/5 5/5 5/5
Model call to the agent denied, agent receives nothing yes yes yes yes
Audit finds planted faults 5/5 5/5 5/5 5/5
After the test, the model has no memory of the conversation, and reads it from the transcript yes yes yes yes

Each column ran on nookku 0.6.0 on 2026-11-21. Data: plugin in Claude Code, plugin in Codex, project hooks in Claude Code, project hooks in Codex, evaluation. Method: docs/results.md.

Under pressure, the mechanism had 0 breaks in 1,000 turns. The test had 40 scripted conversations in each harness, 5 or 20 turns long. They had refusals, HTTP 500 errors, questions back to the tester and ambiguous messages. Each turn was a new harness call. I registered the design before the first run. Method, data and the one deviation: docs/results.md.

Docs

The how-to rows are in the order of the tasks of a test: choose, connect, run, read the results, evaluate against a spec, fix. The row after them has the tasks that maintain Nookku.

Kind Pages
Tutorial Get started
How-to: choose Choose a relay
How-to: connect your app Test your own app, Connect your agent, HTTP tap, Test a streaming agent, Isolate an Agent SDK session, Add a backend, Model calls and OpenTelemetry
How-to: run a test Claude Code plugin, Claude Code project hooks, Codex
How-to: gate a release Gate a CI job on a verdict, Gate a release with a set of tests, Gate a rollout on a gate result
How-to: read the results Read the results of a test, Import a finding record into another test suite
How-to: measure a verifier Measure a verifier on seeded false claims
How-to: evaluate against a spec Evaluate your app against its spec
How-to: fix Troubleshooting, Recover a stuck test
How-to: maintain Upgrade, Remove
Reference CLI, Configuration, Records, Glossary, SPEC.md, Results
Explanation Architecture, Limits, FAQ, Worked evaluations

The full map is docs/index.md. Read docs/limits.md before you trust a result: the deny is best effort, and the entry is not audited.

Contribute

Read CONTRIBUTING.md and the code of conduct. The pages for contributors are in docs/contributing/, for example Run the proofs and Code quality. Report a security problem as SECURITY.md says.

License

Apache-2.0. See LICENSE.

Metadata

Release files for nookku 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nookku 0.7.0
File Size Uploaded Provenance Actions
nookku-0.7.0.tar.gz 1.2 MB With provenance Details for nookku-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nookku 0.7.0
File Interpreter ABI Platform Actions
nookku-0.7.0-py3-none-any.whl Python 3 none any Details for nookku-0.7.0-py3-none-any.whl

Total release size: 1.6 MB

Release files / nookku-0.7.0.tar.gz

Download URL nookku-0.7.0.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
bd723dcf0a96394d89cc7d6718edd5acd67e4aae13ac7064a9e44a175485e81f
BLAKE2b-256 checksum
How to use checksums
053ef727cf96fed401ba495c07cee3d8fc42575348173065f18f7826dcf16e30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Release files / nookku-0.7.0-py3-none-any.whl

Download URL nookku-0.7.0-py3-none-any.whl
Size 471.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94419f08cf41d7720f900f21672873f51f23bcd777bcf45adb0594bbea200024
BLAKE2b-256 checksum
How to use checksums
b97c5225f0732617bb95f908386b7edc80d731ad03850d44e4b219175c214b47
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

Security for nookku 0.7.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for nookku-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 28, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page