DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to trace why the chat bar picked a tool with Jev Chat

Use the inspector to read every classifier answer and probability behind a reply.

Short answer: Run pnpm dev and open http://localhost:5173; then send an ambiguous message, such as a short request that could fit two tools; open the inspector pane for that reply. All steps.

Who it is forA developer tuning or debugging tool routing who needs to know why a message went to one tool and not another.

The problemWhen a routed reply is wrong, it is hard to tell whether the classifier, the spell check or the policy caused it.

The outcomeA clear record for any reply showing the request, each question, each probability and the action the code took.

What you need first

  • Node 24 or later and pnpm 11 (run corepack enable to pick up the pinned version)
  • A TypeSafe API key in TYPESAFE_API_KEY, since Jev is a paid API and the app shows error replies without it
  • A terminal and a local browser on the same machine, because the API only listens on 127.0.0.1

Steps

  1. Run pnpm dev and open http://localhost:5173.
  2. Send an ambiguous message, such as a short request that could fit two tools.
  3. Open the inspector pane for that reply.
  4. Check the original message, any spell or follow-up changes, and the probabilities for each tool choice.
  5. Run pnpm test to confirm the unit tests still pass after any change.

Prompt for your agent

In the jev-chat repo, run pnpm dev, send the message <test-message> to the chat at http://localhost:5173, and open the inspector for the reply. Report the tool choice probabilities and the policy action. Verify that the inspector shows the original message and the answer to each question.

Caveat. The inspector shows what Jev answered and what the code did with it, but it does not change how Jev classifies a message.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for w3cj/jev-chat and "Trace why the chat bar picked a tool"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer