Skip to main content
Read the Notte skill and follow its setup instructions when setting up Notte or building browser automation. This is the shared source for CLI setup, authentication, and the browser-to-code workflow.
traceroot is the open-source platform that continuously improves your AI agents using evidence from production. It works in four steps: trace your agent, detect the runs that miss the mark, investigate signals to find the fix, and verify it with evals. The runnable examples give an agent a Notte browser through Notte Browser MCP and ask it for the top Hacker News stories with their points. This guide walks through each step on them.

Trace

See each model call, tool call, and response, with inputs, outputs, latency, and cost. Get keys from Notte, your model provider, and your project in traceroot. If you self-host traceroot, also set TRACEROOT_HOST_URL to your API’s origin. Clone the Notte repository and open examples/traceroot.
Use Python 3.11 to 3.13 and uv. Set NOTTE_API_KEY, OPENAI_API_KEY, and TRACEROOT_API_KEY, then run uv sync --locked and uv run python hn_openai.py.The example turns on tracing with traceroot.initialize(integrations=[Integration.OPENAI_AGENTS]).Keep the Agents SDK’s tracing on: RunConfig(tracing_disabled=True) drops the agent’s spans. traceroot replaces the SDK’s default trace exporter, so the spans go to traceroot instead of OpenAI.
Each example wraps the run in a hacker_news.top_stories span, groups it under the Notte session ID, and prints the stories and the trace ID. Under that span, each step shows the model call with its tokens and cost, then the Notte tool the agent called, such as browser_action, browser_observe, or browser_scrape, with what the browser returned. Read the trace from your terminal with the traceroot CLI:
traceroot trace of a Claude model reading Hacker News through Notte Browser MCP with the Vercel AI SDK, showing four steps with model calls and browser_action, browser_observe and browser_scrape tool calls

Trace of a Vercel AI SDK agent: the model call and Notte tool calls in each step

The Notte key is sent in the MCP connection’s header, which the trace doesn’t record.

Other frameworks

The connection to Notte is the same for every framework, so turn on traceroot’s integration for the one you use:

Detect

Define what good behavior looks like. Detectors use LLM judges to flag runs that miss the mark. For a browser agent, a useful check is whether the answer is grounded in what the browser returned. Create a detector from the Hallucination template, set sampling to 100%, and use this prompt:
To see it flag a run, use uv run python hn_openai.py --broken. The flag introduces a prompt regression: the instructions tell the agent to skip scraping and answer from memory, so it returns stories that aren’t on Hacker News. The detector records a finding on each of those runs and none on the normal runs of the three examples.

Signals

traceroot groups findings of the same problem into a signal, and the traceroot Agent investigates it. For the prompt regression, the root cause analysis found the cause from the trace alone: the “don’t scrape it: answer from what you know” instruction, browser tools that were listed but never called, and stories taken from the model’s training data. It recommended removing the instruction and requiring a browser_scrape or browser_observe call before the final answer. Connect GitHub in traceroot’s settings so the agent can also investigate your code and pinpoint the fix down to the commit, file, and line.
traceroot signal 'States facts not established by the available evidence' with a root cause analysis quoting the agent's instruction not to scrape the page, and a count-over-time chart showing 3 of 6 traces affected

The signal for the prompt regression: root cause analysis, and how many traces it affects over time

Verify

Run evals against your datasets and compare versions to measure improvements and catch regressions. hn_eval.py evaluates the OpenAI agent on three Hacker News tasks. Its scorer, backed_by_front_page, checks each returned story’s title against the live front page from the Hacker News API and scores the share that matches. It doesn’t compare points or ranks, which change between the agent’s run and the check; the detector compares points with what the browser returned.
Both runs are recorded against the same dataset, so you can compare them case by case. The version with the regression scores 0 on every case. The fixed version scores 1 on each case where every story is on the front page. If Hacker News rate-limits the browser, the agent can return no stories or placeholder stories instead of an error; that case scores 0, and the eval shows you which run to inspect.

Detectors

Use LLM judges to flag runs that miss the mark.

traceroot Agent

Investigate signals with your GitHub code and open a fix pull request.

Evaluations

Compare versions on your datasets to measure improvements and catch regressions.

CLI

Give your coding agent traces, signals, and detector findings from the terminal.