triage

📁 wyman101/triage-ai 📅 2 days ago
3
总安装量
3
周安装量
#56272
全站排名
安装命令
npx skills add https://github.com/wyman101/triage-ai --skill triage

Agent 安装分布

opencode 3
claude-code 3
github-copilot 3
codex 3
kimi-cli 3
gemini-cli 3

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-code then claude auth login
  • Gemini CLI: npm install -g @google/gemini-cli then gemini auth login
  • OpenAI Codex: npm install -g @openai/codex then run codex (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

  1. Tell the user: “Running triage with Claude, Gemini and Codex in parallel — I’ll relay progress as each model completes.”
  2. Check the output file periodically (every 15-20s) to relay status updates
  3. 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
  4. 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 codex interactively (follow the login prompts)
  • 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 truncated in summary means large files were cut short — warn the user

After triage completes

  1. Show a summary: “X models completed, Y findings (Z consensus)”
  2. If any model failed, explain why and how to fix it
  3. Present findings in a table: severity, title, consensus status
  4. Show S0/S1 findings with full detail
  5. For S2/S3, provide a brief list unless the user asks for more
  6. If patches were generated, offer to show or apply them
  7. ALWAYS ask the user before implementing any fixes — never auto-implement