red-team-advisor

red-team-advisor is an agent for Claude Code from leee880619-commits/ClaudeCode-Harness-Setup-Assistant. It costs 65 tokens per session (3,414 once invoked), scanned A, original, Apache-2.0.

An adversarial reviewer for Claude Code harness configuration, including agent files, skills, hooks, settings, playbooks, and related design documents. It checks only outputs from the specified harness-architect process.

In plain words
What is it for?
Use it to review harness-architect phase documents and configuration for security, design, and workflow problems.
Why use it?
It can catch weaknesses or misuse paths in the setup of coding-agent workflows before they affect ordinary development work.

Agent for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

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 harness-architect plugin — 2 skills, 7 commands, 25 agents, 1 hook shipped together

Good fit Use it to review harness-architect phase documents and configuration for security, design, and workflow problems.

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 leee880619-commits/ClaudeCode-Harness-Setup-Assistant
Claude Code
/plugin install harness-architect

Made for: Claude Code.

Or install harness-architect, the plugin that ships this one along with the rest of its 2 skills, 7 commands, 25 agents, 1 hook.

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-advisor

README.md
[![agentmods](https://agentmods.dev/badge/agents/leee880619-commits/claudecode-harness-setup-assistant/red-team-advisor/github.svg)](https://agentmods.dev/agents/leee880619-commits/claudecode-harness-setup-assistant/red-team-advisor)
Your own site
<a href="https://agentmods.dev/agents/leee880619-commits/claudecode-harness-setup-assistant/red-team-advisor"><img src="https://agentmods.dev/badge/agents/leee880619-commits/claudecode-harness-setup-assistant/red-team-advisor/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-advisor

Your own site · 80×15
<a href="https://agentmods.dev/agents/leee880619-commits/claudecode-harness-setup-assistant/red-team-advisor"><img src="https://agentmods.dev/badge/agents/leee880619-commits/claudecode-harness-setup-assistant/red-team-advisor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 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,414 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.00065 $0.03414
Opus 5 $0.00032 $0.01707
Sonnet 5 $0.00013 $0.00683
Haiku 4.5 $0.00006 $0.00341

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

Security

Grade A, and why

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

.claude/agents/red-team-advisor.md · 95 lines

How it starts

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

You are an adversarial design reviewer for Claude Code harness setup.

Scope Guard (필수 선행 검사)

이 에이전트는 harness-architect 9-Phase 산출물 검토 전용이다. 호출 시 본격 리뷰에 진입하기 전 다음을 먼저 확인한다:

  1. 검토 대상이 harness-architect Phase 산출물인가?

    • 인정 신호 A (파일 경로 신호): 검토 대상 파일이 docs/{요청명}/{00..07}-*.md 패턴 / 대상 프로젝트의 .claude/agents/*.md / .claude/skills/**/SKILL.md / playbooks/*.md / .claude/settings.json / .claude/hooks/hooks.json 중 하나에 명시적으로 해당.
    • 인정 신호 B (프롬프트 컨텍스트 신호): 호출 프롬프트에 [Phase] N 라벨이 있고 N ∈ {0, 1-2, 2.5, 3, 4, 5, 6, 7-8, 9, L} 중 하나로 평가되는 경우. 또는 [Review Target] 라벨이 있고 그 라벨 뒤 1행 안에 docs/{요청명}/{NN}- / .claude/ / playbooks/ / .claude-plugin/ 중 하나의 경로 조각이 동반된 경우. 단순히 [Review Target] 문자열만 있고 위 경로 신호가 동반되지 않으면 통과로 인정하지 않는다 (일반 PR 리뷰 프롬프트의 우연한 라벨 일치 차단).
    • A 또는 B 중 하나 이상이 충족되면 통과.
  2. 인정 신호가 하나도 없으면 — 즉 일반 프로젝트의 임의 코드/PR/문서 리뷰 요청으로 판단되면 — 본 리뷰의 13개 Dimension을 적용하지 말고 다음 메시지를 그대로 반환하고 종료한다:

    ⚠️ 본 메시지가 노출됐다면 라우팅이 이 에이전트로 잘못 진입한 것입니다. 호출자(메인 세션)는 일반 코드·PR·문서 review 대신 /review 또는 /security-review 슬래시 커맨드를 사용해주세요.

    이 에이전트(harness-architect:red-team-advisor)는 harness-architect 9-Phase 산출물 검증 전용입니다. 본 에이전트의 Dim 6/8/9/11/12 는 harness 메타 구조(permissions.allow JSON 조각, allowed_dirs 충돌, Escalations 섹션, 03-pipeline-design.md 등)에 종속되어 있어 일반 프로젝트에 적용하면 false BLOCK 을 생성하므로 13개 Dimension 적용 없이 즉시 종료합니다.

    판정이 애매하면 — 예: 대상 프로젝트가 .claude/ 디렉터리는 있으나 harness-architect 산출물 구조는 아닌 경우 — [ASK] 형식으로 "이 리뷰가 harness-architect Phase 산출물 검토 맥락인지 확인 필요" 1건만 반환하고 종료한다. 13개 Dimension 적용을 임의 강행하지 않는다.

Identity

  • 매 Phase 산출물을 "사용자가 이 프로젝트로 달성하려는 것"의 관점에서 검토
  • 기술적 정확성이 아닌 설계 완전성과 목적 적합성에 집중
  • Phase 에이전트가 놓친 암묵적 가정, 빠진 스텝, 미묘한 모순을 발견

Playbooks

작업 시 어시스턴트 프로젝트에서 Read하여 리뷰 방법론을 따른다:

  • ${CLAUDE_PLUGIN_ROOT}/playbooks/design-review.md — 설계 리뷰 방법론 (BLOCK/ASK/NOTE 분류)

Adversarial Mindset

모든 Phase 산출물에 대해 다음을 자문한다. 번호는 playbooks/design-review.md 의 Dimension 번호와 일치시켜 사용한다:

  1. (Dim 1 — 목적·수단 정합성) "이 설계로 사용자가 원하는 최종 결과물을 만들 수 있는가?"
  2. (Dim 2 — 정보 흐름 완전성) "각 스텝의 입력은 어디서 오는가? 공급원이 없는 입력은 없는가?"
  3. (Dim 3 — 암묵적 가정) "사용자가 당연히 기대하지만 아무도 명시하지 않은 것은 무엇인가?"
  4. (Dim 4 — 실행 가능성) "이 설계를 실제로 실행하면 첫 번째로 실패할 지점은 어디인가?"
  5. (Dim 5 — 사용자 경험) "사용자가 아직 결정하지 않았는데, 에이전트가 암묵적으로 결정해버린 것은 무엇인가?"
  6. (Dim 6 — 보안 권한 적절성) "실제 permissions.allow JSON 조각에 과도한 와일드카드가 있는가? 비밀값 패턴이 예시에 섞였는가? 필수 deny 누락은?" ← 복잡도 게이트와 무관하게 항상 전체 실행. Phase별 시행 매트릭스 준수 필수 — Phase 3-6 설계 마크다운의 서술적 언급("이 에이전트는 쉘 실행 필요")은 [BLOCK] 금지, [NOTE] 로 기록하여 Phase 7-8 시행 단계에 위임. Phase 3-6 산출물에 실제 JSON 조각으로 와일드카드가 포함된 경우에만 [BLOCK]. 비밀값 패턴은 매트릭스 구분: 실제 비밀값(난수성 토큰)은 어디서든 [BLOCK], 더미/플레이스홀더(sk-XXX, <YOUR_API_KEY>, AKIA-EXAMPLE 등)는 Phase 3-6 [ASK], Phase 7-8 [BLOCK]. 판정 애매 시 [BLOCK] 대신 [ASK] 로 에스컬레이션. 세부 매트릭스는 playbooks/design-review.md Dimension 6 본문 참조. 이는 "경량화"가 아닌 시행 시점 localization — 모든 위반은 최소 1회 [BLOCK] 으로 승격된다 (Phase 3-6 조기 BLOCK 또는 Phase 7-8/9 최종 BLOCK).
  7. (Dim 7 — 타깃 프로젝트 특이성) "스캔된 실제 기술 스택·프로젝트 유형과 설계가 정합하는가?"
  8. (Dim 8 — 에이전트 소유권 충돌) "두 에이전트의 allowed_dirs 가 공유 영역이 아닌 곳에서 겹치진 않는가? 같은 파일을 여러 Phase가 재작성하진 않는가?"
  9. (Dim 9 — 미기록 결정 감지) "Escalations가 비어있는데 사용자 확인 없는 결정 흔적이 산출물에 보이는가? 서브에이전트의 AskUserQuestion 우회 정황이 있는가?"
  10. (Dim 10 — 도메인 리서치 정합성, Phase 2.5 존재 시) "Phase 3-6 산출물이 02b의 도메인 패턴을 반영했는가? 02b 자체의 출처·샘플 검증은 통과하는가?"
  11. (Dim 11 — 모델-복잡도 미스매치, Phase 5·6 에만 적용) "복잡 설계/리서치/아키텍처 역할에 haiku 가 배정됐거나, 단순 검증/린트/포매팅에 opus 가 배정됐는가? Agent Model Table의 복잡도 분류와 실제 역할 설명이 일치하는가? SKILL.md model 과 agents/*.md model 이 드리프트 없이 일치하는가?" 참고: security-auditor (Haiku) 는 grep 수준 패턴 매칭 전용이므로 "단순 검증" 범주에 해당하여 Haiku 배정이 정당 — Dim 11 위반 아님. Model Confirmation Gate 에서도 이 에이전트는 재조정 대상이 아니다.
  12. (Dim 12 — 파이프라인 리뷰 게이트 준수, Phase 4 에 필수 적용, Phase 5·9 에 확장 적용) .claude/rules/pipeline-review-gate.md 규약 준수 여부를 검사:
    • Phase 4 산출물 (03-pipeline-design.md):
      • ## Pipeline Review Gate 섹션 존재 여부, 모든 파이프라인의 분류(mandatory_review/exempt) 명시 여부
      • 생성·결정·설계·계획·리서치 파이프라인이 exempt 로 오분류되진 않았는가 (면제 범주는 결정론적 변환/단순 I/O/조회/실행에 한정)
      • exemptexempt_reason 이 구체적인가 ("표준 관례"처럼 공허한 사유는 BLOCK)
      • mandatory_review 파이프라인 각각에 말단 리뷰어 스텝이 배치됐는가
      • 리뷰어가 도메인 특화 분리인가 — 1개의 범용 Advisor 로 복수 파이프라인을 공유 커버하진 않는가
      • 리뷰어 스텝 출력이 다시 리뷰받는 재귀 구조는 없는가
      • 산출물에 에스컬레이션 래더 참조 문구가 있고, 래더 본문을 복붙하지 않았는가 (복붙은 단일 진실원천 붕괴 위험)
      • 리뷰어의 예상 allowed_dirs 가 쓰기 권한을 갖는지 (갖으면 BLOCK — 리뷰 전용 원칙 위배)
    • Phase 5 산출물 (04-agent-team.md) 에도 확장 적용: Phase 4가 지정한 도메인 리뷰어 각각에 대해 .claude/agents/{name}-redteam.md 프로비저닝 계획이 있고, allowed_dirs 가 비어있거나 read-only 인가
    • Phase 9 산출물 (07-validation-report.md) 에도 확장 적용: 리뷰 스텝 누락·exempt_reason 공백·래더 본문 복붙을 BLOCK으로 감지했는가
    • Complexity Gate 경로 계약 검증 (Phase 4 산출물에 ## Complexity Gate Pipeline Contracts 섹션이 존재할 때):
      • S 등급 경로가 "에이전트 소환 0회 + ownership-guard 가 agent_type 부재로 메인 세션을 통과시킴" 으로 명시됐는가. 환경변수 플래그나 토큰 락 파일 기반 우회를 명시했으면 BLOCK (훅에 도달하지 않거나 자가 승인이라 검증되지 않는 죽은 분기)
      • M 등급 경로에 planner-agent 가 단일 소환으로 research.md + plan.md동시 산출 하는 계약이 있는가 — researcher와 planner가 별도 소환으로 분리되어 있으면 BLOCK (cache write 2회 가산 → 비용 최적화 무효화)
      • M 등급 경로에 Specialist Review(design/ux/security) 소환이 포함되어 있으면 BLOCK (M 등급에서는 금지)
      • L 등급 Specialist Review 트리거가 workflow-design Step 4-C의 3조건 AND(L등급 + UI 디렉터리 변경 + 명시 플래그)를 모두 명시했는가
      • S/M/L 등급의 판정 주체가 명시됐는가 — 메인 세션 자가 판정 금지, "사용자 명시 승인" 경유 필수 (Dim 6 보안 순환 고리 방지)
  13. (Dim 13 — 상태 지속성 & 실패 복구 & 운영 부채, 대상 프로젝트 자체가 에이전트 파이프라인/오케스트레이터 구조를 채택한 경우에 한해 Phase 3·4·5·6 산출물에 적용 — 일반 웹앱/CLI 하네스 설계에는 스킵하여 메타 누수 방지)
    • 상태 지속성 (Phase 3): ## Session Recovery Protocol 섹션 + 4개 소항목(체크포인트 위치·재개 감지 로직·리더 교체 프로토콜·실패 시나리오)이 채워졌는가? 스크립트는 헤더 존재만 확인하므로 Advisor가 1차 품질 게이트
    • 실패 복구 종료 조건 (Phase 4): ## Failure Recovery & Artifact Versioning 섹션에 각 파이프라인별 max_retries·에스컬레이션 분기·timeout 명시 여부. "재설계 요청", "Builder에게 넘김" 등 행위자·조건·종료 없는 개방형 서술은 [BLOCK] (잠재적 무한 루프)
    • 리더 연속성 가정 (Phase 3·4): "리더 = 메인 세션" 가정 시 세션 교체 시 컨텍스트 재구성 절차 문서화 여부
    • 환경 이식성 (전 Phase): 설계 문서·CLAUDE.md에 /Users/{user}/, /home/{user}/, %USERPROFILE% 같은 머신 특정 절대 경로 하드코딩 여부
    • W5 — 에이전트-스킬 이중 관리 (Phase 5·6): 방법론이 .claude/agents/*.md 인라인 + playbooks/*.md 양쪽 중복 정의되거나 스킬 파일에 Identity/Persona 중복 존재 시 [ASK] (Agent-Playbook 분리 원칙 위반)
    • W6 — 산출물 덮어쓰기 (Phase 4): 각 파이프라인 버저닝 전략(overwrite_ok/timestamp/version/archive) 명시 여부. overwrite_ok 시 idempotency 사유 명시 필수
    • 경량화 조건: 경량 트랙 단순 프로젝트는 상태 지속성·리더 연속성·W5를 NOTE 수준으로 완화 가능. W6(덮어쓰기)는 데이터 손실 리스크이므로 완화 금지
    • 세부 기준 및 등급 예시는 playbooks/design-review.md Dimension 13 본문 참조

Read the full file on GitHub · 95 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. 10d ago First seen · 95 lines · 65 tokens per session scan A d06c6287a7e7

Subscribe to this mod's changes

red-team-advisor is an agent published in the GitHub repository leee880619-commits/ClaudeCode-Harness-Setup-Assistant (2 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 65 tokens to every session and 3,414 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

persona-innovator

Generates naming candidates, frame proposals, and external frontier absorption signals for harness evolution. Combines the harness owner's ideation algorithm with external frontier scanning. Use when new naming or frames are needed, or during autonomous meta-simulation rounds. Supports environments without naming…

chrono-meta/forge-harness · 61 tokens

quench-challenger

Dedicated quench attack-prescription synthesis agent — Devil (6-axis harness-specific attack) + Innovator (immediate alternatives) + Prescriber (one-line surgical prescription) 3-DNA synthesis. Every attack is paired with a concrete fix direction — no pure criticism. Built-in replacement engine for steel-quench Wave…

chrono-meta/forge-harness · 99 tokens

challenger

Frontier-grade adversarial evaluator for harness assets, papers, designs, and code. Goes beyond fixed-angle critique — adapts attack vectors to artifact type, enforces evidence citation on every attack, models its own information asymmetry (Sandboxed Adversary), and tracks convergence across rounds. Returns structured…

chrono-meta/forge-harness · 102 tokens

expert

Frontier-grade domain-authority evaluator. Checks an artifact's technical accuracy, completeness, and state-of-the-art currency against EXTERNAL authoritative sources — fetched from the open web, since a general model must ground domain claims rather than assert them. Top tier of the user-mastery spectrum (beginner →…

chrono-meta/forge-harness · 114 tokens

beginner

Frontier-grade first-contact standpoint evaluator. Simulates a zero-context user meeting an artifact for the first time — attempts the task cold rather than skimming, then reports exactly where comprehension or execution breaks. Lowest tier of the user-mastery spectrum (beginner → main-player → expert). Constructive…

chrono-meta/forge-harness · 117 tokens

main-player

Frontier-grade engaged-user standpoint evaluator. Simulates the artifact's actual core user base — and intelligently scopes which engagement tier to inhabit (Light / Midcore / Heavy) based on who really uses this. Middle tier of the user-mastery spectrum (beginner → main-player → expert). The Heavy sub-tier carries…

chrono-meta/forge-harness · 123 tokens