red-team

red-team is an agent for Claude Code from curtischoutw/claude-institution. It costs 69 tokens per session (701 once invoked), scanned A, original, MIT.

A review agent that examines code or designs for security risks and ways they may fail. It checks inputs, permissions, secrets, concurrent operations, partial failures, and injection attacks, where untrusted data changes a command or query.

In plain words
What is it for?
Use it to perform a structured security and failure-mode review and document findings with code locations and reproduction steps when verified.
Why use it?
It helps expose problems that may appear with malicious input, unusual environments, simultaneous operations, or interrupted processing.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: reads .claude/ paths; mentions subagents.

Good fit Use it to perform a structured security and failure-mode review and document findings with code locations and reproduction steps when verified.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/curtischoutw/claude-institution/red-team
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/curtischoutw/claude-institution

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 red-team

README.md
[![agentmods](https://agentmods.dev/badge/agents/curtischoutw/claude-institution/red-team/github.svg)](https://agentmods.dev/agents/curtischoutw/claude-institution/red-team)
Your own site
<a href="https://agentmods.dev/agents/curtischoutw/claude-institution/red-team"><img src="https://agentmods.dev/badge/agents/curtischoutw/claude-institution/red-team/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 red-team

Your own site · 80×15
<a href="https://agentmods.dev/agents/curtischoutw/claude-institution/red-team"><img src="https://agentmods.dev/badge/agents/curtischoutw/claude-institution/red-team.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 701 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.00069 $0.00701
Opus 5 $0.00034 $0.00351
Sonnet 5 $0.00014 $0.00140
Haiku 4.5 $0.00007 $0.00070

Measured 9d ago against content hash f981422af7e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

red-team 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 9d 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.

institution/agents/red-team.md · 42 lines

What it actually says

你是對抗審查小組裡的「安全與失效模式」鏡頭。任務是把你收到的程式碼或設計當作 攻擊目標,找出它在惡意輸入、異常環境、併發、部分失敗下會怎麼壞掉。

取材自 Miguok/fable-harness 的 red-team subagent 設計,綁回本專案自己的判準: ~/.claude/rules-lib/uplift.md 方法 3(對抗自查:「假設 3 個月後出大問題,最可能是什麼」)。

固定攻擊清單(逐項檢查,不可跳過)

  1. 輸入邊界:null/空值/零/超大輸入/編碼異常(BOM、多餘空白、非 ASCII)。
  2. 權限與機密:權限檢查、機密外洩、路徑穿越(path traversal)、權限提升。
  3. 併發與競態:多執行緒/多 process 同時操作,鎖是否正確、是否有 TOCTOU。
  4. 部分失敗:中途失敗留下的髒狀態、空輸入是否會靜默覆蓋既有資料。
  5. 注入:往 shell/SQL/eval/模板引擎傳入未消毒的資料。

每一項都必須用工具實際驗證(讀程式碼找出處理路徑、必要時用 Bash 構造測試輸入 實跑),禁止只憑描述做推理判斷。查不到證據的項目,明說「無法驗證」而不是假裝已查。

何時判某項不適用

該攻擊面在此程式碼路徑中確實不存在(例如根本沒有 shell 呼叫)才可標記不適用, 且要寫出判斷依據,不能只是「應該用不到」。

輸出格式(必須是這個 YAML 信封)

verdict: REFUTED | SURVIVED
confidence: high | medium | low
attack_findings:
  - surface: "<輸入邊界|權限機密|併發競態|部分失敗|注入>"
    location: "<檔案:行號>"
    consequence: "<實際會發生什麼,附驗證方式或重現步驟>"
n_a_items:
  - item: "<清單中判定不適用的項目>"
    rationale: "<為什麼不適用,附證據>"
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. 9d ago First seen · 42 lines · 69 tokens per session scan A f981422af7e8

Subscribe to this mod's changes

red-team is an agent published in the GitHub repository curtischoutw/claude-institution (5 stars, last pushed 8d ago), licensed MIT. It adds 69 tokens to every session and 701 once invoked, about $0.0003 per session on Opus 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-31.

Related

Other agents, from other repositories

code-reviewer

Adversarial code quality reviewer spawned by the speq-implement orchestrator after implementation completes. Reviews only the provided changed-files list against the plan and returns tagged findings — fixes nothing itself.

marconae/speq-skill · 42 tokens

reviewer-data-integrity

Use this agent when you need to review database migrations, data models, or any code that manipulates persistent data. This includes checking migration safety, validating data constraints, ensuring transaction boundaries are correct, and verifying that referential integrity and privacy requirements are maintained.…

wsauret/flywheel · 253 tokens

reviewer-performance

Use this agent when you need to analyze code for performance issues, optimize algorithms, identify bottlenecks, or ensure scalability. This includes reviewing database queries, memory usage, caching strategies, and overall system performance. The agent should be invoked after implementing features or when performance…

wsauret/flywheel · 345 tokens

scramjet:command-reviewer

Use when a proposed or authored Scramjet command change warrants independent holistic review.

LeanAndMean/scramjet · 24 tokens

scramjet:independent-command-assessor

Use when another reviewer has produced command findings that require fresh independent adjudication before fixes are authorized.

LeanAndMean/scramjet · 29 tokens

deliberator-balthasar

Use this agent only when the Open Magi skill requests Balthasar deliberation. Balthasar evaluates architecture, boundaries, maintainability, long-term evolution, and design tradeoffs. Return a Magi report only; do not edit files or run commands.

ladiossoop5star/open_magi · 59 tokens