explaingit

dhanraj176/agentwatch

Analysis updated 2026-07-26

1PythonAudience · developerComplexity · 3/5Setup · easy

TLDR

AgentWatch is a local tool that watches what your AI agent does and shows it live in your browser. It flags risky moments when untrusted content, like a web page, tries to leave your machine through an upload.

Mindmap

mindmap
  root((repo))
    What it does
      Live dashboard
      Flags data leaks
      Tracks tool calls
    Tech stack
      Python
      SQLite
      Browser UI
    Use cases
      Catch poisoned data
      Watch agent activity
      Run quick demo
    Setup
      Pip install
      Wrap launch command
      Port 8787
    Limitations
      Matching-based only
      Stdio transport only
      Observes not blocks

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Watch your AI agent's tool calls live in your browser.

USE CASE 2

Catch a poisoned web page trying to send your data elsewhere.

USE CASE 3

Run a 60-second demo to see how leak detection works without setup.

USE CASE 4

Inspect all agent activity history in a local SQLite file.

What is it built with?

PythonSQLite

How does it compare?

dhanraj176/agentwatch0xustaz/streamgatea-bissell/unleash-lite
Stars111
LanguagePythonPythonPython
Setup difficultyeasyhardhard
Complexity3/54/54/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

You must run your agent using the stdio transport method and launch it by prepending the agentwatch command to your normal start command.

The license for this repository is not specified, so you should assume default copyright restrictions apply unless you contact the author.

In plain English

{"i":0,"repo":"dhanraj176/agentwatch","stars":1,"lang":"Python","ok":true,"char_count":2034,"text":"AI agents like Claude Code and Cursor can read files, fetch web pages, and call tools using your real credentials. The problem is that an agent trusts whatever it reads. A poisoned web page or document can quietly instruct it to send your data somewhere it should not go, and normally nobody can see that happening. AgentWatch is a local tool that sits between your agent and its servers, shows every tool call on a live dashboard, and flags when untrusted data flows out to an external destination.\n\nThe tool watches every tool call your agent makes and displays it live in your browser. It detects data leaks by tracking data from where it is read, such as a web page, to where it goes, like an outbound upload. When untrusted content leaves your machine, AgentWatch flags the flow and explains the risk in a plain sentence anyone can read. It never modifies your traffic, so it cannot corrupt your agent's communication.\n\nInstallation involves cloning the repository and running a pip install command. You then wrap your existing server launch command with \"agentwatch run --\" and everything after the dashes runs unchanged. A dashboard command opens a local web page at port 8787 where you can watch your agent's activity stream in real time. There is also a 60-second demo that shows the tool catching a synthetic leak without needing a real agent setup.\n\nThe dashboard shows a verdict banner that turns green when things are safe and red the moment a risky flow is detected. It displays summary stats like total events, tool calls, files touched, and data leaks. Every tool call gets a risk indicator and a plain-English explanation on risky rows. All data is stored in a local SQLite file you can inspect with any standard tool, and AgentWatch itself makes no network calls.\n\nThe tool has some limitations worth knowing. Its detection is matching-based, meaning if the AI model transforms data before sending it, the match can fail and the leak goes undetected. It only observes and flags risky flows rather than blocking them. It supports only the stdio transport method, and its classification of which tools count as untrusted sources or outbound destinations is built-in rather than configurable. Future plans include an enforcement mode that blocks risky flows and support for more transport types."}

Copy-paste prompts

Prompt 1
I have an MCP server I launch with `python my_server.py`. Show me exactly how to wrap that command with AgentWatch so I can see its tool calls on the dashboard.
Prompt 2
Write a fake poisoned text file that, when read by an AI agent, instructs it to upload the contents of a local file to an external URL. I want to test if AgentWatch catches the leak.
Prompt 3
I ran `agentwatch dashboard` and opened port 8787. Explain what the green and red verdict banner means and how to read the summary stats.
Prompt 4
I want to inspect my AgentWatch history. Show me a Python snippet to open the local SQLite database and print the most recent 10 tool calls.

Frequently asked questions

What is agentwatch?

AgentWatch is a local tool that watches what your AI agent does and shows it live in your browser. It flags risky moments when untrusted content, like a web page, tries to leave your machine through an upload.

What language is agentwatch written in?

Mainly Python. The stack also includes Python, SQLite.

What license does agentwatch use?

The license for this repository is not specified, so you should assume default copyright restrictions apply unless you contact the author.

How hard is agentwatch to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is agentwatch for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.