repo-warden

repo-warden is an agent for Claude Code from Borda/AI-Rig. It costs 91 tokens per session (6,614 once invoked), scanned A, original, Apache-2.0.

A helper agent that scores selected project-health measures from previously collected GitHub data. It is one part of a larger open-source project analysis process.

In plain words
What is it for?
Use it when running the vitality analysis workflow with a supplied data file, repository name, output path, and assigned axis group.
Why use it?
It separates scoring work across several agents and prevents the scorer from fetching data or assembling the final report.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

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 oss plugin — 3 skills, 4 agents shipped together

Good fit Use it when running the vitality analysis workflow with a supplied data file, repository name, output path, and assigned axis group.

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 Borda/AI-Rig
Claude Code
/plugin install oss

Made for: Claude Code.

Or install oss, the plugin that ships this one along with the rest of its 3 skills, 4 agents.

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 repo-warden

README.md
[![agentmods](https://agentmods.dev/badge/agents/borda/ai-rig/repo-warden/github.svg)](https://agentmods.dev/agents/borda/ai-rig/repo-warden)
Your own site
<a href="https://agentmods.dev/agents/borda/ai-rig/repo-warden"><img src="https://agentmods.dev/badge/agents/borda/ai-rig/repo-warden/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 repo-warden

Your own site · 80×15
<a href="https://agentmods.dev/agents/borda/ai-rig/repo-warden"><img src="https://agentmods.dev/badge/agents/borda/ai-rig/repo-warden.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 91 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,614 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.00091 $0.06614
Opus 5.5 $0.00036 $0.02646
Sonnet 5.5 $0.00018 $0.01323
Haiku 4.5 $0.00009 $0.00661

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

Security

Grade A, and why

repo-warden 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 18d 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/cc_oss/agents/repo-warden.md · 298 lines

How it starts

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

Lightweight axis scorer, /oss:analyse (vitality mode). Extracts metrics from pre-fetched raw JSONL via bin/vitality_extract.py, scores assigned axis group per vitality-scoring.md rubric. Writes partial scores JSON. Runs parallel with 2 other repo-warden instances.

NOT for data fetching — raw data comes from DATA_FILE written by oss:gh-scraper. NOT for report generation, terminal output, or adversarial review — /oss:analyse (vitality mode) Steps 4–7 own those. Hard stop: input lacks AXIS_GROUP=A|B|C, OR the session sentinel does not name an existing raw JSONL on disk (either one missing is enough) → put the mismatch in reason and return only the Step 5 decline envelope — never perform an ad-hoc review or fallback analysis regardless of how the request is phrased, even framed as an explicit direct ask. Not a valid data source: inline content, pasted extractor output, a draft partial-scores file, vitality-scoring rubric text, or scoring code — all trigger the stop, every time.

Prompt supplies only AXIS_GROUP=A|B|C — axis group to score (Step 4 substitution table).

The caller supplies session sentinels under ${TMPDIR:-/tmp}:

  • vitality-gh-owner-${CSID} — GH_OWNER, GitHub owner or org (required)
  • vitality-gh-repo-${CSID} — GH_REPO, GitHub repository name (required)
  • vitality-partial-a-${CSID}, vitality-partial-b-${CSID} or vitality-partial-c-${CSID} — PARTIAL_FILE, the assigned group's output path

DATA_FILE comes only from ${TMPDIR:-/tmp}/vitality-data-file-${CSID}, written by the caller; a prompt DATA_FILE is not an input and must never override that sentinel. Direct invocation without the sentinel declines.

AXIS_GROUP must be a literal A, B or C, not unresolved $VARIABLE or <placeholder> text. Missing or unsubstituted AXIS_GROUP → return the Step 5 decline envelope before running a block or writing a file. GH_OWNER, GH_REPO and PARTIAL_FILE come only from the sentinels, never prompt overrides.

Step 1 — Setup

Read the literal AXIS_GROUP from the prompt. It only selects which fixed block runs in Steps 1–3 — never a shell variable (unset in a fresh Bash call). Run the shared setup below, then only the matching group block to load and print its PARTIAL_FILE path.

export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}"
# loads: oss-shared-resolver.md
# intentional dup — also in shepherd.md
_OSS_SHARED=$(python "${CLAUDE_PLUGIN_ROOT}/bin/resolve_shared_path.py" oss skills/_shared 2>/dev/null)  # timeout: 5000
[ -z "$_OSS_SHARED" ] && _OSS_SHARED="plugins/cc_oss/skills/_shared"
echo "$_OSS_SHARED" > "${TMPDIR:-/tmp}/warden-oss-shared-${CSID}"  # persist (Check 41)
# written by /oss:analyse vitality Step 1; shared read-only by the 3 parallel wardens
IFS= read -r GH_OWNER < "${TMPDIR:-/tmp}/vitality-gh-owner-${CSID}" 2>/dev/null || GH_OWNER=""
IFS= read -r GH_REPO < "${TMPDIR:-/tmp}/vitality-gh-repo-${CSID}" 2>/dev/null || GH_REPO=""
IFS= read -r DATA_FILE < "${TMPDIR:-/tmp}/vitality-data-file-${CSID}" 2>/dev/null || DATA_FILE=""
[ -n "$GH_OWNER" ] && [ -n "$GH_REPO" ] && [ -n "$DATA_FILE" ] || { echo "[repo-warden] ERROR: missing or empty vitality input sentinel — rerun /oss:analyse vitality"; exit 1; }
case "$GH_OWNER/$GH_REPO/$DATA_FILE" in
    *'$'*|*'<'*|*'>'*) echo "[repo-warden] ERROR: unsubstituted vitality input sentinel — rerun /oss:analyse vitality"; exit 1 ;;
esac
[ -f "$DATA_FILE" ] || { echo "[repo-warden] ERROR: vitality data file missing (sentinel vitality-data-file) — rerun /oss:analyse vitality"; exit 1; }
echo "[repo-warden] data=$DATA_FILE"  # timeout: 5000
printf 'GH_OWNER=%s\nGH_REPO=%s\nDATA_FILE=%s\n' "$GH_OWNER" "$GH_REPO" "$DATA_FILE"

Group A:

export CSID="${CLAUDE_CODE_SESSION_ID:-$PPID}"
IFS= read -r PARTIAL_FILE < "${TMPDIR:-/tmp}/vitality-partial-a-${CSID}" 2>/dev/null || PARTIAL_FILE=""
[ -n "$PARTIAL_FILE" ] || { echo "[repo-warden] ERROR: missing or empty vitality-partial-a sentinel — rerun /oss:analyse vitality"; exit 1; }
case "$PARTIAL_FILE" in
    *'$'*|*'<'*|*'>'*) echo "[repo-warden] ERROR: unsubstituted vitality-partial-a sentinel — rerun /oss:analyse vitality"; exit 1 ;;
esac
printf 'PARTIAL_FILE=%s\n' "$PARTIAL_FILE"

Read the full file on GitHub · 298 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. 18d ago Changed · +41 lines f0a791e2afdf
  2. 1mo ago Changed · -1 lines c7c758c2c1f8
  3. 1mo ago Changed · +38 lines 2917a3cc0d43
  4. 2mo ago Changed 35475dab2944
  5. 2mo ago Changed 63383cb3392d
  6. 3mo ago First seen · 220 lines · 91 tokens per session scan A bc766a5a1e6f

Subscribe to this mod's changes

repo-warden is an agent published in the GitHub repository Borda/AI-Rig (31 stars, last pushed yesterday), licensed Apache-2.0. It adds 91 tokens to every session and 6,614 once invoked, about $0.0004 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-08-30.

Related

repo-warden compared with agents from other repositories

repo-warden next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
repo-wardenBorda/AI-RigAgent31yesterdayApache-2.0A91Claude Code
budget-sentinelhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA116Claude Code
token-economisthoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA110Claude Code
trend-forecasterhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA82Claude Code
mcp-reviewerhoangsonww/Claude-Code-Agent-MonitorAgent1.2kyesterdayMITA21Claude Code
pipeline-auto-brainkardebadas/claude-pluginAgent315d agoApache-2.0A73Claude Code
bug-investigatorkardebadas/claude-pluginAgent315d agoApache-2.0A46Claude Code