Skip to content

feat(agents): add red-team mode - #9

Open
xavier-arosemena wants to merge 2 commits into
jtgsystems:mainfrom
xavier-arosemena:feat/red-team-mode
Open

xavier-arosemena wants to merge 2 commits into
jtgsystems:mainfrom
xavier-arosemena:feat/red-team-mode

Conversation

@xavier-arosemena

Copy link
Copy Markdown

What

Adds a domain-agnostic red team mode: it takes a proposal (architecture,
code change, plan, strategy, prompt, process) and attacks its assumptions to
return severity-ranked findings plus concrete options — MITIGATE,
REDESIGN, ACCEPT — and a final verdict of HARDEN, REDESIGN,
ACCEPT WITH CONTROLS or SOUND.

Existing adversarial modes are domain-bound (penetration-tester,
security-auditor), scope-bound (code-skeptic, bullshit-detection-analyst
for claims, anti-fiction-sentinel for success claims) or use adversarial
thinking as one lens among many (cognitive-multi-thinker). None takes the
proposal itself as the systematic target of a constructive attack.

Files

  • agents/meta-orchestration/general/red-team.yaml — flat agent schema, same
    keys as the other files under agents/ (slug, name, category,
    subcategory, description, roleDefinition, whenToUse, groups,
    version, lastUpdated, customInstructions); same category as its closest
    sibling, bullshit-detection-analyst.
  • custom_modes.yaml — matching entry appended (306 modes).

Validation

  • python3 scripts/validate_custom_modes.py custom_modes.yaml -> pass, 306 modes.
  • Parity asserted programmatically: the agents/ file and the
    custom_modes.yaml entry parse to identical slug, name, description,
    roleDefinition, whenToUse, groups and customInstructions values.
  • Every mode cross-referenced by whenToUse (bullshit-detection-analyst,
    penetration-tester, code-reviewer, security-auditor,
    architect-reviewer, anti-fiction-sentinel, risk-manager) exists in
    custom_modes.d/ and in agents/.

Two things to flag

  1. python3 scripts/validate_custom_modes.py agents/meta-orchestration/general/red-team.yaml
    exits 1 with Top-level contains unsupported keys, because
    validate_document() requires customModes to be the only top-level key.
    This is not specific to this file: the same command exits 1 for all 233
    existing files under agents/. The new file follows the established flat
    agents/ schema, and the custom_modes.yaml entry (the form the validator
    supports) passes.
  2. The mode is not added to .roomodes, because CONTRIBUTING.md does not ask
    for it. If it should ship in the compiled set, python3 scripts/generate_roomodes.py
    will include it.

jtgsystems and others added 2 commits September 3, 2026 01:32
Adds a domain-agnostic red team mode that stress-tests a proposal by
attacking its assumptions and returning severity-ranked findings plus
concrete options (mitigate / redesign / accept).

The mode fills a gap: existing adversarial modes are either domain-bound
(penetration-tester, security-auditor), scope-bound (code-skeptic,
bullshit-detection-analyst for claims, anti-fiction-sentinel for success
claims) or treat adversarial thinking as one lens among many
(cognitive-multi-thinker). None takes the proposal itself as the
systematic target of a constructive attack with an explicit
HARDEN / REDESIGN / ACCEPT / SOUND verdict.

Contents:
- agents/meta-orchestration/general/red-team.yaml (flat agent schema, as
  used by the other 233 files under agents/)
- custom_modes.yaml: matching entry appended (306 modes)

Validation:
- python3 scripts/validate_custom_modes.py custom_modes.yaml -> pass (306 modes)
- parity asserted: the agents/ file and the custom_modes.yaml entry parse to
  identical slug/name/description/roleDefinition/whenToUse/groups/
  customInstructions values
- all cross-referenced modes (bullshit-detection-analyst, penetration-tester,
  code-reviewer, security-auditor, architect-reviewer, anti-fiction-sentinel,
  risk-manager) exist in custom_modes.d/ and agents/
- YAML parses (python3 -c 'yaml.safe_load(...)')

Notes:
- scripts/validate_custom_modes.py exits 1 for a flat agents/ document
  ("Top-level contains unsupported keys"); this is true of all 233 existing
  files under agents/ as well, because validate_document() requires
  customModes as the only top-level key. The file follows the same flat
  schema as its siblings.
- The mode is not present in .roomodes; regenerate with
  python3 scripts/generate_roomodes.py if it should ship in the compiled set.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants