q-watch

q-watch is a command for Claude Code from assafkip/investigators-copilot. It costs 0 tokens per session (693 once invoked), scanned A, original, MIT.

A monitoring command that checks saved URLs and profiles for changes and records each change in an investigation's evidence store. It can use a self-hosted change-detection service or compare cleaned page content locally.

In plain words
What is it for?
Use it to add or remove watched URLs, poll pages, compare their normalised content, and route detected changes into the case evidence record.
Why use it?
It avoids repeatedly checking sources by hand and keeps a dated record of detected changes. The local option needs no server, while the service option can monitor URLs through changedetection.io.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 skills/osint/scripts/watch.py add "<url>" --label "<label>".

Part of the investigators-copilot plugin — 6 skills, 24 commands, 1 agent, 2 hooks shipped together

Good fit Use it to add or remove watched URLs, poll pages, compare their normalised content, and route detected changes into the case evidence record.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/assafkip/investigators-copilot
agentmods
npx agentmods add commands/assafkip/investigators-copilot/q-watch

Made for: Claude Code.

Or install investigators-copilot, the plugin that ships this one along with the rest of its 6 skills, 24 commands, 1 agent, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for q-watch

README.md
[![agentmods](https://agentmods.dev/badge/commands/assafkip/investigators-copilot/q-watch/github.svg)](https://agentmods.dev/commands/assafkip/investigators-copilot/q-watch)
Your own site
<a href="https://agentmods.dev/commands/assafkip/investigators-copilot/q-watch"><img src="https://agentmods.dev/badge/commands/assafkip/investigators-copilot/q-watch/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for q-watch

Your own site · 80×15
<a href="https://agentmods.dev/commands/assafkip/investigators-copilot/q-watch"><img src="https://agentmods.dev/badge/commands/assafkip/investigators-copilot/q-watch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 693 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.00693
Opus 5.5 $0.00000 $0.00277
Sonnet 5.5 $0.00000 $0.00139
Haiku 4.5 $0.00000 $0.00069

Measured 15d ago against content hash fe9789fc4d84, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

q-watch scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 15d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/q-watch.md · 30 lines

What it actually says

Monitor case URLs and profiles for changes, and route every change into the evidence chain.

Active case: read the case folder name from the first line of .active-case (written by /q-begin and /q-new-case). The watch store lives at investigations/<case>/memory/watch.jsonl (append-only). If .active-case is missing or empty, ask the founder which case to use.

Backends (auto-selected):

  • changedetection -- when CHANGEDETECTION_URL and CHANGEDETECTION_API_KEY are set, URLs are registered in a self-hosted changedetection.io (tagged with the case name) and its last_changed is read on each poll. Start one with docker run -d -p 5000:5000 --name changedetection dgtlmoon/changedetection.io, then Settings > API for the key.
  • local -- no server needed: watch.py fetches each URL itself and compares a SHA-256 of the normalised body (scripts/styles stripped). An empty body is an error, never a "change".
  • Optional: a self-hosted sosse (AGPL, separate service, never imported) can crawl and diff whole sites on a schedule; use it alongside this store, not instead of the EV capture step.

Steps:

  1. Parse $ARGUMENTS: add <url> [label], remove <url>, list, or poll [--capture]. Default is list.
  2. Run the matching command:
    python3 skills/osint/scripts/watch.py add "<url>" --label "<label>"
    python3 skills/osint/scripts/watch.py list
    python3 skills/osint/scripts/watch.py poll                # report only
    python3 skills/osint/scripts/watch.py poll --capture      # changed URLs -> capture-evidence.sh --batch
    python3 skills/osint/scripts/watch.py remove "<url>"
    
  3. poll is bounded: --max 50 watches and --deadline 300 seconds per run by default. If it reports watches left over, say so; do not loop it.
  4. A changed result is a LEAD (T3). Only the EV-NNNN item created by --capture (through capture-evidence.sh) may be cited. If the batch capture fail-stops (INCOMPLETE item), stop and tell the founder which URL and why (.claude/rules/evidence-capture-protocol.md).
  5. For a social profile, prefer capture-evidence.sh <url> <slug> --social on the changed URL so media lands in the same EV item.
  6. Report: watches polled, changed (with the new EV IDs), errors (URL + error), and anything not polled this run.

Rules:

  • Never edit watch.jsonl by hand; it is an append-only history.
  • Login walls / challenge pages / 403s on poll are blocked extractions: stop and tell the founder (.claude/rules/q-investigation.md).

Argument: $ARGUMENTS (optional: add <url> [label] | remove <url> | list | poll [--capture])

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 15d ago First seen · 30 lines · 0 tokens per session scan A fe9789fc4d84

Subscribe to this mod's changes

q-watch is a command published in the GitHub repository assafkip/investigators-copilot (77 stars, last pushed 28d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 693 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-15.

Related

q-watch compared with commands from other repositories

q-watch next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
q-watchassafkip/investigators-copilotCommand7728d agoMITA0Claude Code
q-client-questionsassafkip/huntkitCommand531mo agoMITA0Claude Code
q-new-caseassafkip/huntkitCommand531mo agoMITA0Claude Code
q-screenshotsassafkip/huntkitCommand531mo agoMITA0Claude Code
q-endassafkip/huntkitCommand531mo agoMITA0Claude Code
q-intakeassafkip/huntkitCommand531mo agoMITA0Claude Code
q-osintassafkip/huntkitCommand531mo agoMITA0Claude Code