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

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 stepWhat the report holds
A shell commandThe command, with secrets hidden.
A file written, edited or patchedThe file path only, never what is in the file.
A file read or searchedReported 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 searchedThe web address or the search words.
A call to a connected toolThe 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:

FieldMeaning
kindOne of the five kinds above.
textThe command, path, address or tool call, cut to 1,500 characters after secrets are hidden.
outside_projectYes or no: is a changed file outside your project folder.
session_idThe agent’s own session label, so steps from one session group together.
the task idOnly if you set one, so the step is shown as belonging to that task.
modelOnly if you set one or the tool reports one. It is only as honest as the tool.
providerOnly 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

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.

FileWhat it isFor
.avowgate/agent_watch.pyThe hook itself.Claude Code, Codex, Cursor
.claude/settings.local.jsonYour address, product id and key, and the hook entry.Claude Code
.avowgate/watch.envYour address, product id and key, readable only by you.Codex, Cursor
.codex/hooks.jsonThe hook entry. Codex skips a new hook until you approve it with /hooks.Codex
.cursor/hooks.jsonThe hook entries.Cursor
.opencode/plugins/avowgate-watch.jsThe plugin itself.OpenCode
.avowgate/opencode.envYour address, product id and key.OpenCode (bash)
.avowgate/start-opencode.shA launcher that loads that file, then starts OpenCode.OpenCode (bash)
.avowgate/opencode.ps1The same connection file for PowerShell.OpenCode (PowerShell)
.avowgate/start-opencode.ps1The same launcher for PowerShell.OpenCode (PowerShell)
AGENTS.md and CLAUDE.mdYour 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
.gitignoreLines 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

How to remove it

  1. Delete the .avowgate/ folder.
  2. Remove the Agent Watch hook entry from the settings file for your agent (.claude/settings.local.json, .codex/hooks.json or .cursor/hooks.json), or delete .opencode/plugins/avowgate-watch.js. The .bak copy the script saved holds your settings from before.
  3. Delete the block in AGENTS.md and CLAUDE.md between the lines that start with <!-- avowgate-rules:start and end with <!-- avowgate-rules:end -->.
  4. 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.