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.
/plugin marketplace add Borda/AI-Rig/plugin install ossWrote 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.
[](https://agentmods.dev/agents/borda/ai-rig/repo-warden)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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}orvitality-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"
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.
- 18d ago Changed · +41 lines f0a791e2afdf
- 1mo ago Changed · -1 lines c7c758c2c1f8
- 1mo ago Changed · +38 lines 2917a3cc0d43
- 2mo ago Changed 35475dab2944
- 2mo ago Changed 63383cb3392d
- 3mo ago First seen · 220 lines · 91 tokens per session scan A bc766a5a1e6f
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.
repo-warden compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| repo-wardenBorda/AI-Rig | Agent | 31 | yesterday | Apache-2.0 | A | 91 | Claude Code |
| budget-sentinelhoangsonww/Claude-Code-Agent-Monitor | Agent | 1.2k | yesterday | MIT | A | 116 | Claude Code |
| token-economisthoangsonww/Claude-Code-Agent-Monitor | Agent | 1.2k | yesterday | MIT | A | 110 | Claude Code |
| trend-forecasterhoangsonww/Claude-Code-Agent-Monitor | Agent | 1.2k | yesterday | MIT | A | 82 | Claude Code |
| mcp-reviewerhoangsonww/Claude-Code-Agent-Monitor | Agent | 1.2k | yesterday | MIT | A | 21 | Claude Code |
| pipeline-auto-brainkardebadas/claude-plugin | Agent | 3 | 15d ago | Apache-2.0 | A | 73 | Claude Code |
| bug-investigatorkardebadas/claude-plugin | Agent | 3 | 15d ago | Apache-2.0 | A | 46 | Claude Code |