triage
npx skills add https://github.com/wyman101/triage-ai --skill triage
Agent 安装分布
Skill 文档
Triage â Collaborative AI analysis with Claude, Gemini and Codex
Run triage-ai to launch Claude Code, Gemini CLI and OpenAI Codex as a collaborative review team. Each model independently explores the codebase, then findings are merged with consensus scoring into one prioritized report. Works for code review, plan review, security audits, architecture analysis, bug hunts, and getting second opinions on AI-generated code. When multiple models independently flag the same issue, confidence is high.
Prerequisites
triage-ai must be installed globally:
npm install -g triage-ai
At least one AI CLI must be installed and authenticated:
- Claude Code:
npm install -g @anthropic-ai/claude-codethenclaude auth login - Gemini CLI:
npm install -g @google/gemini-clithengemini auth login - OpenAI Codex:
npm install -g @openai/codexthen runcodex(follow the login prompts)
Run triage-ai ready to verify which models are available.
How to Run
IMPORTANT: Run the triage command in the background using run_in_background: true on the Bash tool. This lets you relay progress to the user as it happens instead of showing a truncated bash window.
triage-ai "<user's prompt>" --nice 10 --timeout 300 --verbose
Common invocations
# Full 3-model review
triage-ai "find bugs and security issues"
# Single model, quick check
triage-ai --models claude "quick security scan"
# Review only uncommitted changes
triage-ai --diff-only "check my changes for bugs"
# Save report + remember findings in project memory
triage-ai --remember --out report.md "full security audit"
# Preview patches without applying
triage-ai --dry-run "fix the SQL injection"
# Restrict models to pre-gathered context only (faster, no filesystem exploration)
triage-ai --context-only "review this code for issues"
While triage is running
- Tell the user: “Running triage with Claude, Gemini and Codex in parallel â I’ll relay progress as each model completes.”
- Check the output file periodically (every 15-20s) to relay status updates
- Look for these markers in the output:
=== triage-ai vX.Y.Z ==== startup confirmed (version check)[phase:N/6] name â Title= phase transition (N of 6 total phases)[assess] ModelNameâ¦= model still running (with elapsed time)[assess] ModelName â= model completed (with finding count and time)[assess] ModelName â= model failed (with error hint)=== TRIAGE COMPLETE ==== all done â read full output=== REPORT START ===/=== REPORT END ==== report body delimiters
- When you see a model complete, tell the user immediately, e.g. “Codex finished â 5 findings in 12.3s”
Interpreting results
- Auth failures: If a model shows “not authenticated” or “rate limited”, tell the user the fix:
- Claude:
claude auth login - Gemini:
gemini auth login - Codex: run
codexinteractively (follow the login prompts)
- Claude:
- Severity levels: S0 = blockers (fix now), S1 = high, S2 = medium, S3 = low
- Consensus findings (2+ models agree): highest confidence â present these first
- Prose responses: “(prose)” in model results means the model responded but couldn’t produce structured findings
- Context truncation:
â Context was truncatedin summary means large files were cut short â warn the user
After triage completes
- Show a summary: “X models completed, Y findings (Z consensus)”
- If any model failed, explain why and how to fix it
- Present findings in a table: severity, title, consensus status
- Show S0/S1 findings with full detail
- For S2/S3, provide a brief list unless the user asks for more
- If patches were generated, offer to show or apply them
- ALWAYS ask the user before implementing any fixes â never auto-implement