Borrowing it
Nothing to install: this file belongs to ManSio/mscodebase-intelligence. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ManSio/mscodebase-intelligence/main/.opencode/command/redteam.mdgit clone --depth 1 https://github.com/ManSio/mscodebase-intelligenceWrote 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/commands/mansio/mscodebase-intelligence/redteam)<a href="https://agentmods.dev/commands/mansio/mscodebase-intelligence/redteam"><img src="https://agentmods.dev/badge/commands/mansio/mscodebase-intelligence/redteam/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/commands/mansio/mscodebase-intelligence/redteam"><img src="https://agentmods.dev/badge/commands/mansio/mscodebase-intelligence/redteam.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.00012 | $0.00437 |
| Opus 5.5 | $0.00005 | $0.00175 |
| Sonnet 5.5 | $0.00002 | $0.00087 |
| Haiku 4.5 | $0.00001 | $0.00044 |
Grade A, and why
redteam 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 26d 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.
What it actually says
You are running the RED TEAM phase. You are not the author here. Assume the work is wrong until the attack fails to land.
Rules of engagement
- Attack the design, not the author's confidence. "This is well-tested" is not a defence.
- Cover at least 3 of 5 categories: concurrency/races · boundaries · dependency failure · TOCTOU · abuse of the metric.
- At least 2 attacks without a defence means the plan is not ready. Do not start coding. Say so and stop.
- A control that cannot fail is worthless. For each guard, name the input that would make it fail. If you cannot, that is a finding.
- Your own first draft is a target too. Most real defects found this way are in the code written minutes ago.
What usually actually breaks
- the tool reports a plausible number over an empty or partial population
- the reason a gate fired is never asserted — only the verdict is
- two "independent" checks share an author, a rule, or a population
- the metric can be raised without changing the thing it measures
- a missing dependency looks identical to a small result
- state that outlives the test it belongs to (a cached
.pyc, a snapshot taken from an already-dirty file, afinallythat restores the corrupted version)
Output
## RED TEAM — <subject>
| # | category | attack | defence | status |
|---|---|---|---|---|
| RT1 | TOCTOU | | | 🔴 / 🟡 / ✅ |
**Attacks without a defence:** N — code is blocked until this is 0.
**Attacks that found a real defect in our own code:** N (list them first)
If an attack found a defect in your own recent work, that is the headline. Do not bury it under the ones that failed.
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.
- 26d ago First seen · 46 lines · 12 tokens per session scan A 67c01f94e07d
redteam is a command published in the GitHub repository ManSio/mscodebase-intelligence (3 stars, last pushed 5d ago), licensed MIT. It adds 12 tokens to every session and 437 once invoked, about $0.0000 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-10-04.
Other commands, from other repositories
ui-aqa-flow-test-report-analysis
Phase 7 Test Report Analysis of ui-aqa-flow.
api-aqa-flow-execution-and-report-analysis
Phase 6 Execution & Report Analysis of api-aqa-flow (USER INTERACTION REQUIRED).
ui-aqa-flow-code-analysis
Phase 3 Code Analysis of ui-aqa-flow.
verify-pr
Verify a PR's frontend changes through browser automation.
test-run
Run E2E tests with qa-use CLI.
setup
Connect this workspace to Scalix Cloud — verify the API key, test the MCP endpoint, and optionally install the CLI.