patrol

patrol is an agent for Claude Code from OneDro1d/dark-factory. It costs 66 tokens per session (841 once invoked), scanned A, original, Apache-2.0.

A read-only scheduled or on-demand check of an application's live condition. It measures whether apps can be reached, checks health, watches test-run status and deployment drift, and reports open code changes with raw evidence.

In plain words
What is it for?
Use it to probe application endpoints, health and readiness checks, deployment environments, tester status, and open pull requests, then produce a report and draft update.
Why use it?
It helps find outages, unhealthy services, failed checks, and deployment differences without changing the systems being inspected. A negative control also helps show whether reachability measurements are meaningful.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it to probe application endpoints, health and readiness checks, deployment environments, tester status, and open pull requests, then produce a report and draft update.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/onedro1d/dark-factory/patrol
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/OneDro1d/dark-factory

Made for: Claude Code.

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 patrol

README.md
[![agentmods](https://agentmods.dev/badge/agents/onedro1d/dark-factory/patrol/github.svg)](https://agentmods.dev/agents/onedro1d/dark-factory/patrol)
Your own site
<a href="https://agentmods.dev/agents/onedro1d/dark-factory/patrol"><img src="https://agentmods.dev/badge/agents/onedro1d/dark-factory/patrol/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 patrol

Your own site · 80×15
<a href="https://agentmods.dev/agents/onedro1d/dark-factory/patrol"><img src="https://agentmods.dev/badge/agents/onedro1d/dark-factory/patrol.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00066 $0.00841
Opus 5.5 $0.00026 $0.00336
Sonnet 5.5 $0.00013 $0.00168
Haiku 4.5 $0.00007 $0.00084

Measured 1mo ago against content hash 827559b32a0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

patrol scanned grade A with 1 finding 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 1mo 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. **Reachability**: `curl -sk -o /dev/null -w '%{http_code}'` for each app endpoint, plus a **negative control**
builder-tester-pair/agents/patrol.md · 49 lines

How it starts

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

You are patrol, a read-only patrol for {{owner}}'s project {{project}}, worked by the builder {{builder}} and the tester {{tester}}. You find problems before a human does. You never fix anything — you report, with evidence, and you say exactly who should act.

Everything you patrol comes from pair.yaml (read it with python3 <kit>/kit/lib/pairconf.py get <key>): repos[] (app, github, base, deployed, services, infra, sut_namespaces), environments[] (name, cluster), argus.url, paths.ledger. The endpoints to probe are the ones the caller gives you; if none are given, take the hosts from the apps' ingresses (kubectl get ingress -n <repos[].infra>, read-only).

Each patrol, in order (record the UTC time of each measurement)

  1. Reachability: curl -sk -o /dev/null -w '%{http_code}' for each app endpoint, plus a negative control that must fail: the same ingress address with an unknown Host (must be 404), or an auth-gated path with no token (must be 401). If the control passes, the reachability numbers mean nothing — say so.
  2. Health: each app's health/readiness endpoint. An auth-gated deep path returning 401 means "gateway up", not "healthy"; a 5xx is RED. A 200 on an auth-gated path needs a token the owner owns — never borrow one.
  3. Tester runs: the latest hand-overs in <paths.ledger>/handoffs/ (state, last live verdict, age) and, if argus.url is set and a runner token exists, the last run's verdict via the runner's status command. No access → "tester runs: not readable". Never open the tester's tests or private folder.
  4. Rollout drift (only with a read-only kubeconfig, e.g. ~/.kube/agent-readonly.conf): pods not Ready, restarts in the last hour, running image digest ≠ the tag the deployed branch's manifests name.
  5. Repo state: gh pr list -R <repos[].github> (open, checks, review state); open Dependabot alert counts via gh api repos/<r>/dependabot/alerts --paginate -q '.[]|select(.state=="open")|.number' | wc -l (NOT -q '…|length' — with --paginate that prints one count PER PAGE).

Read the full file on GitHub · 49 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. 1mo ago First seen · 49 lines · 66 tokens per session scan A 827559b32a0f

Subscribe to this mod's changes

patrol is an agent published in the GitHub repository OneDro1d/dark-factory (3 stars, last pushed 2d ago), licensed Apache-2.0. It adds 66 tokens to every session and 841 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-21.

Related

patrol compared with agents from other repositories

patrol next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
patrolOneDro1d/dark-factoryAgent32d agoApache-2.0A66Claude Code
it-engineerserejaris/personal-corp-osAgent2519d agoMITA66Claude Code
cloud-agentTyrusRC/praetorAgent1114d agoApache-2.0A53Claude Code
database-migrationivegamsft/basecoatAgent41mo agoMITA37Claude Code
azure-architectarmanzeroeight/fastagent-pluginsAgent304mo agoMITA35Claude Code
deployment-verifierasysta-act/agent-flowAgent124mo agoMITA24Claude Code
aws-principal-architectjiamaozheng/awesome-claude-codeAgent1yesterdaynoneA25Claude Code