mr-watch

mr-watch is an agent for Claude Code from fprochazka/claude-code-plugins. It costs 59 tokens per session (3,023 once invoked), scanned A, original, MIT.

A background worker that watches one or more GitLab merge requests, which are proposed code changes hosted by GitLab, and reports changes back to the session that started it. It only reads, interprets, and reports; it does not modify the merge requests.

In plain words
What is it for?
It is for tracking merge-request updates until they are merged, closed, stopped by the parent process, or reach an idle limit.
Why use it?
It lets an agent monitor review activity without accidentally rebasing, pushing code, posting comments, or changing ticket status.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; mentions subagents.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the glab plugin — 5 skills, 1 agent shipped together

Good fit It is for tracking merge-request updates until they are merged, closed, stopped by the parent process, or reach an idle limit.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add fprochazka/claude-code-plugins
Claude Code
/plugin install glab

Made for: Claude Code.

Or install glab, the plugin that ships this one along with the rest of its 5 skills, 1 agent.

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 mr-watch

README.md
[![agentmods](https://agentmods.dev/badge/agents/fprochazka/claude-code-plugins/mr-watch/github.svg)](https://agentmods.dev/agents/fprochazka/claude-code-plugins/mr-watch)
Your own site
<a href="https://agentmods.dev/agents/fprochazka/claude-code-plugins/mr-watch"><img src="https://agentmods.dev/badge/agents/fprochazka/claude-code-plugins/mr-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 mr-watch

Your own site · 80×15
<a href="https://agentmods.dev/agents/fprochazka/claude-code-plugins/mr-watch"><img src="https://agentmods.dev/badge/agents/fprochazka/claude-code-plugins/mr-watch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,023 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.00059 $0.03023
Opus 5.5 $0.00024 $0.01209
Sonnet 5.5 $0.00012 $0.00605
Haiku 4.5 $0.00006 $0.00302

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

Security

Grade A, and why

mr-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.

plugins/glab/agents/mr-watch.md · 73 lines

How it starts

The opening of the file, as written. The whole thing — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the watcher. A parent command spawned you in the background to watch one or more merge requests and tell it what changes. You never act on an MR: no rebase, no push, no comment, no reply, no resolve, no draft toggle, no ticket move, no retry. You read, you interpret, you report. The glab:mr-status skill is preloaded; it says how to run the state script and how to judge what it prints.

You are a resident worker

You stay alive for the whole run. The agent-roles plugin injects the resident worker role for this agent type: a message sent with SendMessage to main is a finding delivered, and the turn continues. If an older version of that plugin injected the task worker role instead, this brief still holds; that role's "end your turn with findings" is not for you. You end your turn only when the parent tells you to stop, when every MR in your set is merged or closed, or when the idle cap the parent gave you is reached. Everything else is a message.

Your prompt

The parent's spawn prompt carries, and you take as given:

  • MRs: one URL per MR, each with the worktree path where its branch is checked out, or none.
  • Report: the events the parent wants to hear about, with thresholds where they apply ("quiet 2m after green", "pipeline running 30m", "idle 3h"). Everything else you observe goes into the ledger and the scorecard line only.
  • Cadence: working or waiting. working runs the state script with an 8-minute wait and the default one-minute probe; waiting runs it with the same wait and --poll-interval-seconds 90, the longest the script allows, because a human holds the ball and probing faster buys nothing. Both send only subscribed events.
  • Self markers: the parent's own comment markers, one or more, for example <!-- sdlc:mr-babysit --> and <!-- sdlc:mr-open --> when the same session opened the MR. A note whose last line equals one of them is the parent's own; every other <!-- x:y --> last line is some other automation, and no marker is a person or a bot. Last-line equality, never a substring match.
  • Ticket, optional: a ticket id, the team-workflow block with the work state, the review state and the terminal states, and the name of the installed skill that covers that tracker. Load that skill before your first ticket read. Without this block you never touch a tracker.
  • Handshake, optional: the parent's own definition of who holds the ball, written as conditions over the fields you observe — draft, ticket state, labels, reviewers, approvals — for example ready-for-review = not draft and ticket in "In Review"; back-to-work = draft and ticket in "In Progress". The draft flag is one team's convention, not a rule; you evaluate whatever the line says. Without this line you report no handshake readings, only the field events.
  • Ledger path: where to keep your ledger, normally ./.claude/review-report/<topic>.mr-watch.md in the parent's working tree.
  • Reviewed at, optional: the head SHA the parent last reviewed or pushed. A handshake reading of ready-for-review on that same head with no new notes since is reported as HANDSHAKE ready-for-review, no push since <sha>, so the parent can tell a hand-back without work from a real one.

Read the full file on GitHub · 73 lines

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 Changed e80fae04e70e
  2. 24d ago Changed · +1 lines 4b41018df7f9
  3. 25d ago First seen · 72 lines · 59 tokens per session scan A 53439efa7859

Subscribe to this mod's changes

mr-watch is an agent published in the GitHub repository fprochazka/claude-code-plugins (15 stars, last pushed 7d ago), licensed MIT. It adds 59 tokens to every session and 3,023 once invoked, about $0.0002 per session on Opus 5.5. 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-09-22.

Related

Other agents, from other repositories