What Agent Watch sends, runs and changes on your computer
Last updated: November 20, 2026
Agent Watch puts a small hook (or, for OpenCode, a plugin) next to your coding agent. Before a step runs, it tells your AvowGate what the step is. You should know exactly what that means before you install it. This page says what is sent, where it goes, what runs, which files the setup script changes, what the hook cannot do, and how to take it all out again. Tests check the main claims here against the code (what is sent, where it goes, what can run, which files change) and fail if the code changes without this page changing. They cannot check everything, so the code is still the final word.
In short
- It sends reports to one place: your own AvowGate address, and nowhere else.
- It uses built-in tools only. The hook is one plain-text file that needs
python3; the OpenCode plugin is one plain-text file that needs nothing extra. Neither starts any other program. - A report is short and cleaned first. It holds the command, the file path or the web address, not the contents of your files. Keys and passwords are hidden on your computer before anything is sent, on a best effort basis.
- It lets your agent carry on if anything goes wrong. It gives up after one second, and only an explicit refusal from AvowGate stops a step.
- It is a window and not a sandbox. It shows what the agent’s tool reports. It does not contain the agent.
What is sent for each step
The hook looks at the step your agent is about to take and sends one short report for it. These are the only kinds of step it reports:
| Kind of step | What the report holds |
|---|---|
| A shell command | The command, with secrets hidden. |
| A file written, edited or patched | The file path only, never what is in the file. |
| A file read or searched | Reported only when the path looks like a key, a password file, an .env file, a cloud or command-line settings file or a token file. An ordinary read sends nothing. |
| A web page fetched or searched | The web address or the search words. |
| A call to a connected tool | The tool’s name and the first 300 characters of what the agent passed it. That can include whatever the agent chose to pass, so treat it like a command. |
Every report is made of these fields and no others:
| Field | Meaning |
|---|---|
kind | One of the five kinds above. |
text | The command, path, address or tool call, cut to 1,500 characters after secrets are hidden. |
outside_project | Yes or no: is a changed file outside your project folder. |
session_id | The agent’s own session label, so steps from one session group together. |
| the task id | Only if you set one, so the step is shown as belonging to that task. |
model | Only if you set one or the tool reports one. It is only as honest as the tool. |
provider | Only if you set one. |
The hook does not open your files, and it does not send file contents, what a tool prints back, or the conversation. The only files it reads are its own settings file, watch.env, when it has one, and a certificate file if you set one.
Keys and passwords
Before a report leaves your computer the hook hides the things that look like secrets: well-known key formats, values after words like password, token or secret, --password style flags, logins inside web addresses and long random-looking strings. It does this on a best effort basis. A secret in an unusual shape can get through, and AvowGate hides secrets again on its side. If a step could carry a secret you cannot afford to show, do not rely on this.
Where reports go
Only to your own AvowGate address, the one the setup script wrote for you. The only other address in the hook is a fallback to your own computer (localhost), used if no address is set. It makes no other connection. The OpenCode plugin works the same way. If your server uses its own certificate, an optional setting points the hook at that certificate file.
Once there, the reports are kept for 7 days on Free, 90 days on Builder and 365 days on Team, and red actions are kept for at least 90 days on every plan. The audit trail page and the privacy policy say more.
What runs on your computer
- The hook is started by your agent before each step with
python3 .avowgate/agent_watch.py. It uses only Python’s built-in libraries and starts no other program. It does not install anything from the internet, now or later. - The OpenCode plugin is a single JavaScript file that OpenCode loads from
.opencode/plugins/. It uses only Node’s built-in modules. - The setup script runs once, in your project folder, after it shows you what it will change and waits for your yes. It needs
bash,curlandpython3(or Windows PowerShell with Python). Read it before you run it; it is plain text.
Which files the setup script writes
Only inside the folder you run it in. If a settings file already exists, the script keeps your other settings and saves a backup next to it with .bak on the end first. Which files are written depends on the agent you pick.
| File | What it is | For |
|---|---|---|
.avowgate/agent_watch.py | The hook itself. | Claude Code, Codex, Cursor |
.claude/settings.local.json | Your address, product id and key, and the hook entry. | Claude Code |
.avowgate/watch.env | Your address, product id and key, readable only by you. | Codex, Cursor |
.codex/hooks.json | The hook entry. Codex skips a new hook until you approve it with /hooks. | Codex |
.cursor/hooks.json | The hook entries. | Cursor |
.opencode/plugins/avowgate-watch.js | The plugin itself. | OpenCode |
.avowgate/opencode.env | Your address, product id and key. | OpenCode (bash) |
.avowgate/start-opencode.sh | A launcher that loads that file, then starts OpenCode. | OpenCode (bash) |
.avowgate/opencode.ps1 | The same connection file for PowerShell. | OpenCode (PowerShell) |
.avowgate/start-opencode.ps1 | The same launcher for PowerShell. | OpenCode (PowerShell) |
AGENTS.md and CLAUDE.md | Your workspace’s agent rules, in one marked block. Anything else in these files is kept. The rules are plain text inside the setup script, so you can read them first. | All |
.gitignore | Lines that keep the connection files out of version control. | All |
The script you download is itself a file (avowgate-setup.sh, or avowgate-setup.ps1 on PowerShell). Nothing outside the folder is changed.
The key it creates
The setup script trades a one-time code (it works once and lasts 15 minutes) for an Agent key with read and write access. The key appears in Settings under a name like setup claude-code, with the date. The key is never printed on screen. It is saved in the file listed above for your agent, and the script git-ignores that file.
That key sits in your project folder, and your agent can read files in your project folder. With it the agent can read and write requirements, tests and results in your AvowGate. It cannot sign off a risk, accept a risk or dismiss a finding: only a person signed in can.
Where the hook code comes from
The setup script downloads the hook, or the plugin, from your own AvowGate server, signed in with the new key. It is not signed and the script does not check it against a fingerprint. That means you are trusting your own AvowGate server for it, the same as for the setup script. Read the downloaded file once; it is one plain-text file.
When something goes wrong
Agent Watch is built to get out of the way. If your AvowGate cannot be reached, answers badly, or takes longer than one second, the hook gives up and lets the step run. The hook fails open on purpose: a broken connection never freezes your agent.
Only one thing stops a step: an explicit refusal from AvowGate, which happens only after a person has switched on refusing red actions, paused the agents, or set an automatic pause. The agent then sees the reason. A person can change that in the Watch tab.
Separately, there is an optional deploy guard, gate_guard.py. It refuses commands that look like a deploy while your gate is blocked. The setup script does not install it. If you add it, it asks your AvowGate for the gate result and waits up to 15 seconds, and by default it lets the command run if AvowGate cannot be reached.
What it cannot do
- Agent Watch is not a sandbox. It shows what the agent’s tool reports before each step. A program the agent starts can do more than its command line shows, and a determined agent can try to disguise a command. Treat red and amber as a reason to look, not as proof that everything else is fine.
- It sees only what runs through the hook. An agent session that does not load the hook, or that removes it, is not watched and is not stopped.
- It is only as honest as the tool. The step, the model name and the provider are reported by the agent’s tool. Some tools do not pass every step to hooks; for example, Codex does not pass its own web search.
- Cursor tells AvowGate about a file edit after it has happened, so a file edit in Cursor can be shown but not refused. Shell commands and connected-tool calls in Cursor are asked about before they run.
- Rules in
AGENTS.mdandCLAUDE.mdare guidance. An agent can ignore them.
How to remove it
- Delete the
.avowgate/folder. - Remove the Agent Watch hook entry from the settings file for your agent (
.claude/settings.local.json,.codex/hooks.jsonor.cursor/hooks.json), or delete.opencode/plugins/avowgate-watch.js. The.bakcopy the script saved holds your settings from before. - Delete the block in
AGENTS.mdandCLAUDE.mdbetween the lines that start with<!-- avowgate-rules:startand end with<!-- avowgate-rules:end -->. - In AvowGate, open Settings and revoke the key named setup followed by your agent and the date. From that moment the old key stops working, even if a copy is left somewhere.
Revoking the key is the step that matters most: removing the files stops the reports, and revoking the key shuts the door.
Questions this page answers
Does Agent Watch send my code to AvowGate?
No file contents are sent. It sends the command, the file path or the web address of each step, and the first 300 characters of a connected tool’s arguments, after hiding secrets on a best effort basis.
Does Agent Watch send anything anywhere except my AvowGate?
No. The only address it uses is your own AvowGate address.
Can Agent Watch freeze or slow my agent?
It waits at most one second for AvowGate and lets the step run on any error. It stops a step only when a person has asked AvowGate to refuse red actions or paused the agents.
How do I get rid of it?
Delete the files above and revoke the key in Settings.