# Overview

Your agent passes every test you thought to write. Then a real customer shows up, changes their mind halfway through, leaves out the one detail that matters, and it falls over.

Zhanla finds those failures first. It runs in your terminal next to your code, sends simulated users at your agent, points to the exact turn where it went wrong, and proposes the fix as a draft pull request.

![A simulated customer catches a demo support agent sharing booking details too early.](https://zhanla.vercel.app/docs-media/demo/overview-conversation.png)

It works with single-turn and conversational agents, in Python or TypeScript.

**Diagram: The path from an agent to a fix**

```text
Find → Set up → Interview → Rubric → Eval and dataset → Run → Tune the judge → Refine → Draft PR
```

## One agent, start to finish

Pedalwise is a made-up support bot for a bike-rental shop. It looks up a booking, says which bikes are free, and cancels a booking. Everything below comes from real Zhanla runs on it.

**A rubric.** From the code and your answers, Zhanla drafted 11 rubric items, from privacy to cancellation rules.

![Pedalwise's rubric categories on the agent's steps.](https://zhanla.vercel.app/docs-media/demo/overview-rubric.png)

**A run.** Zhanla ran 24 dataset items locally. In the conversation above, an impatient customer gets a date and fee before the agent knows who they are.

**A report.** It groups failures into patterns, finds their root causes in the system prompt, and suggests a change.

![The report for that run.](https://zhanla.vercel.app/docs-media/demo/overview-report.png)

**The failing step.** The judge cites the turn, and the trajectory shows the calls around it.

![The ten steps of the failed conversation.](https://zhanla.vercel.app/docs-media/demo/overview-trajectory.png)

**A measured fix.** Zhanla rewrote the system prompt in a separate copy of the code and reran every dataset item. The score went from 22 to 24 of 24, and nothing regressed. Your results will vary.

![The change to the system prompt.](https://zhanla.vercel.app/docs-media/demo/overview-diff.png)

![What moved against the baseline.](https://zhanla.vercel.app/docs-media/demo/overview-measured.png)

You choose whether to open it as a draft PR.

## In your terminal

Start Zhanla in your agent's checkout, then chat or use slash commands.

![Zhanla on the Pedalwise repository.](https://zhanla.vercel.app/docs-media/demo/overview-terminal.png)

## Common questions

### How does Zhanla learn my agent?

Zhanla starts from your code: it reads the prompts, tools and flow, then [runs the agent and records a few real requests](https://zhanla.vercel.app/docs/test/set-up). Next, it [asks you a few questions about your users](https://zhanla.vercel.app/docs/test/rubric), each with an answer already drafted from what it read. Your answers become the rubric every reply is judged against.

### Does my code leave my machine?

Some of it does. Agent files, prompts and test conversations go through Zhanla's proxy to model providers. Your rubrics, evals, datasets, traces and fix diffs are stored [under your organization](https://zhanla.vercel.app/docs/how-it-works#where-data-lives). For production traffic, here's [exactly what is sent](https://zhanla.vercel.app/docs/production/tracing).

### Will Zhanla change my code without asking?

No, never without your agreement. Even if you turn on [yolo mode](https://zhanla.vercel.app/docs/how-it-works#guarantees) with Shift+Tab to approve edits in chat for you, [the tracing card](https://zhanla.vercel.app/docs/test/set-up#add-tracing) and [the fix loop](https://zhanla.vercel.app/docs/test/improve) still ask first. A draft PR only opens when you ask for one.

### Does it run my real agent?

Yes, on your machine and only [after you agree](https://zhanla.vercel.app/docs/test/set-up#allow-local-runs). Its tools really get called, so point it at test credentials and test data.

### Do I need a model API key?

Not for Zhanla. Its own model calls go through its hosted proxy, and Zhanla pays for them. Your agent still calls its model with your keys whenever Zhanla runs it. See [which calls are whose](https://zhanla.vercel.app/docs/model-keys).

### Which languages and frameworks work?

Python and TypeScript. The SDK traces [common model clients and agent frameworks](https://zhanla.vercel.app/docs/sdk/libraries) on its own, and you can record anything else by hand.

### Can it test agents that hold a conversation?

Yes. A [simulated user](https://zhanla.vercel.app/docs/test/multi-turn) follows a turn-by-turn plan for up to 20 turns, holding back details to see whether your agent asks for them.

### Can my coding agent use it?

Yes, as long as it [brings every approval back to you](https://zhanla.vercel.app/docs/test/coding-agent).

### Is Zhanla open source?

The Python and TypeScript SDKs are, under Apache-2.0. The terminal is proprietary.

### How do I get access?

Zhanla is invitation only for now. [Request an invitation](https://zhanla.vercel.app/docs/get-access) and we'll email you when a spot opens.

## Where to start

- [Run a first eval](https://zhanla.vercel.app/docs/quickstart): Install Zhanla and test an agent in your repository.

- [See how it works](https://zhanla.vercel.app/docs/how-it-works): Follow one example from the first test to a fix.

- [Use your coding agent](https://zhanla.vercel.app/docs/test/coding-agent): Drive Zhanla from Claude Code or Codex.

- [Get an invitation](https://zhanla.vercel.app/docs/get-access): Anyone can read these docs. Running Zhanla needs an invitation.

---

Source: https://zhanla.vercel.app/docs
Updated 2026-11-24. Checked against release candidate b60cdc94.
