[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-trail-of-bits-second-opinion":3,"mdc-zcr3tt-key":41,"related-org-trail-of-bits-second-opinion":1401,"related-repo-trail-of-bits-second-opinion":1558},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":29,"repoUrl":30,"updatedAt":31,"license":32,"forks":33,"topics":34,"repo":36,"sourceUrl":39,"mdContent":40},"second-opinion","perform external LLM code reviews","Runs external LLM code reviews (OpenAI Codex or Google Gemini CLI) on uncommitted changes, branch diffs, or specific commits. Use when the user asks for a second opinion, external review, codex review, gemini review, or mentions \u002Fsecond-opinion.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"trail-of-bits","Trail of Bits","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Ftrail-of-bits.png","trailofbits",[13,17,20,23,26],{"name":14,"slug":15,"type":16},"LLM","llm","tag",{"name":18,"slug":19,"type":16},"Code Review","code-review",{"name":21,"slug":22,"type":16},"OpenAI","openai",{"name":24,"slug":25,"type":16},"Gemini","gemini",{"name":27,"slug":28,"type":16},"Code Analysis","code-analysis",6139,"https:\u002F\u002Fgithub.com\u002Ftrailofbits\u002Fskills","2026-07-18T05:47:35.118779",null,541,[35],"agent-skills",{"repoUrl":30,"stars":29,"forks":33,"topics":37,"description":38},[35],"Trail of Bits Claude Code skills for security research, vulnerability detection, and audit workflows","https:\u002F\u002Fgithub.com\u002Ftrailofbits\u002Fskills\u002Ftree\u002FHEAD\u002Fplugins\u002Fsecond-opinion\u002Fskills\u002Fsecond-opinion","---\nname: second-opinion\ndescription: \"Runs external LLM code reviews (OpenAI Codex or Google Gemini CLI) on uncommitted changes, branch diffs, or specific commits. Use when the user asks for a second opinion, external review, codex review, gemini review, or mentions \u002Fsecond-opinion.\"\nallowed-tools: Bash Read Glob Grep AskUserQuestion\n---\n\n# Second Opinion\n\nShell out to external LLM CLIs for an independent code review powered by\na separate model. Supports OpenAI Codex CLI and Google Gemini CLI.\n\n## When to Use\n\n- Getting a second opinion on code changes from a different model\n- Reviewing branch diffs before opening a PR\n- Checking uncommitted work for issues before committing\n- Running a focused review (security, performance, error handling)\n- Comparing review output from multiple models\n\n## When NOT to Use\n\n- Neither Codex CLI nor Gemini CLI is installed\n- No API key or subscription configured for either tool\n- Reviewing non-code files (documentation, config)\n- You want Claude's own review (just ask Claude directly)\n\n## Safety Note\n\nGemini CLI is invoked with `--yolo`, which auto-approves all\ntool calls without confirmation. This is required for headless\n(non-interactive) operation but means Gemini will execute any\ntool actions its extensions request without prompting.\n\n## Quick Reference\n\n```\n# Codex (headless exec with structured JSON output)\ncodex exec --sandbox read-only --ephemeral \\\n  --output-schema codex-review-schema.json \\\n  -o \"$output_file\" - \u003C \"$prompt_file\"\n\n# Gemini (code review extension)\ngemini -p \"\u002Fcode-review\" --yolo -e code-review\n# Gemini (headless with diff — see references\u002F for full pattern)\ngit diff HEAD > \u002Ftmp\u002Freview-diff.txt\n{ printf '%s\\n\\n' 'Review this diff for issues.'; cat \u002Ftmp\u002Freview-diff.txt; } \\\n  | gemini -p - --yolo -m gemini-3.1-pro-preview\n```\n\n## Invocation\n\n### 1. Gather context interactively\n\nUse `AskUserQuestion` to collect review parameters in one shot.\nAdapt the questions based on what the user already provided\nin their invocation (skip questions they already answered).\n\nCombine all applicable questions into a single `AskUserQuestion`\ncall (max 4 questions).\n\n**Question 1 — Tool** (skip if user already specified):\n\n```\nheader: \"Review tool\"\nquestion: \"Which tool should run the review?\"\noptions:\n  - \"Both Codex and Gemini (Recommended)\" → run both in parallel\n  - \"Codex only\"                          → codex exec\n  - \"Gemini only\"                         → gemini CLI\n```\n\n**Question 2 — Scope** (skip if user already specified):\n\n```\nheader: \"Review scope\"\nquestion: \"What should be reviewed?\"\noptions:\n  - \"Uncommitted changes\" → git diff HEAD + untracked files\n  - \"Branch diff vs main\" → git diff \u003Cbranch>...HEAD (auto-detect default branch)\n  - \"Specific commit\"     → git diff \u003Csha>~1..\u003Csha> (follow up for SHA)\n```\n\n**Question 3 — Project context** (skip if neither CLAUDE.md nor AGENTS.md exists):\n\nCheck for CLAUDE.md first, then AGENTS.md in the repo root.\nOnly show this question if at least one exists.\n\n```\nheader: \"Project context\"\nquestion: \"Include project conventions file so the review\n  checks against your standards?\"\noptions:\n  - \"Yes, include it\"\n  - \"No, standard review\"\n```\n\n**Question 4 — Review focus** (always ask):\n\n```\nheader: \"Review focus\"\nquestion: \"Any specific focus areas for the review?\"\noptions:\n  - \"General review\"    → no custom prompt\n  - \"Security & auth\"   → security-focused prompt\n  - \"Performance\"       → performance-focused prompt\n  - \"Error handling\"    → error handling-focused prompt\n```\n\n### 2. Run the tool directly\n\nDo not pre-check tool availability. Run the selected tool\nimmediately. If the command fails with \"command not found\" or\nan extension is missing, report the install command from the\nError Handling table below and skip that tool (if \"Both\" was\nselected, run only the available one).\n\n## Diff Preview\n\nAfter collecting answers, show the diff stats:\n\n```bash\n# For uncommitted (tracked + untracked):\ngit diff --stat HEAD\ngit ls-files --others --exclude-standard\n\n# For branch diff:\ngit diff --stat \u003Cbranch>...HEAD\n\n# For specific commit:\ngit diff --stat \u003Csha>~1..\u003Csha>\n```\n\nIf the diff is empty, stop and tell the user.\n\nIf the diff is very large (>2000 lines changed), warn the user\nand ask whether to proceed or narrow the scope.\n\n## Skipping Inapplicable Checks\n\nAfter determining the diff scope, skip checks that don't apply\nto the files actually changed.\n\n### Dependency Scanning\n\nOnly run `\u002Fsecurity:scan-deps` when the diff touches dependency\nmanifest files. Check with:\n\n```bash\ngit diff --name-only \u003Cscope> \\\n  | grep -qiE '(package\\.json|package-lock|yarn\\.lock|pnpm-lock|Gemfile|\\.gemspec|requirements\\.txt|setup\\.py|setup\\.cfg|pyproject\\.toml|poetry\\.lock|uv\\.lock|Cargo\\.toml|Cargo\\.lock|go\\.mod|go\\.sum|composer\\.json|composer\\.lock|Pipfile)'\n```\n\nIf no dependency files are in the diff, skip the scan even when\nsecurity focus is selected. The scan analyzes the entire project's\ndependency tree regardless of diff scope, so it adds significant\ntime for zero value when dependencies weren't touched.\n\n## Auto-detect Default Branch\n\nFor branch diff scope, detect the default branch name:\n\n```bash\ngit symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD 2>\u002Fdev\u002Fnull \\\n  | sed 's@^refs\u002Fremotes\u002Forigin\u002F@@' || echo main\n```\n\n## Codex Invocation\n\nSee [references\u002Fcodex-invocation.md](references\u002Fcodex-invocation.md)\nfor full details on command syntax, prompt assembly, and the\nstructured output schema.\n\nSummary:\n- Uses `codex exec` (not `codex review`) for headless operation\n- Model: `gpt-5.5`, reasoning: `xhigh`\n- Uses OpenAI's published code review prompt (fine-tuned into the model)\n- Diff is generated manually and piped via stdin with the prompt\n- `--output-schema` produces structured JSON findings\n- `-o` captures only the final message (no thinking\u002Fexec noise)\n- All three scopes (uncommitted, branch, commit) support project\n  context and focus instructions (no limitations)\n- Falls back to `gpt-5.4` on auth errors\n- Output is clean JSON — parse and present findings by priority\n- Set `timeout: 600000` on the Bash call\n\n## Gemini Invocation\n\nSee [references\u002Fgemini-invocation.md](references\u002Fgemini-invocation.md)\nfor full details on flags, scope mapping, and extension usage.\n\nSummary:\n- Model: `gemini-3.1-pro-preview`, flags: `--yolo`, `-e`, `-m`\n- For uncommitted general review: `gemini -p \"\u002Fcode-review\" --yolo -e code-review`\n- For branch\u002Fcommit diffs: pipe `git diff` into `gemini -p`\n- Security extension name is `gemini-cli-security` (not `security`)\n- `\u002Fsecurity:analyze` is interactive-only — use `-p` with a\n  security prompt instead\n- Run `\u002Fsecurity:scan-deps` only when security focus is selected\n  AND the diff touches dependency manifest files (see Diff-Aware\n  Optimizations)\n- Set `timeout: 600000` on the Bash call\n\n**Scope mapping for `git diff`** (Gemini has no built-in scope flags):\n\n| Scope | Diff command |\n|-------|-------------|\n| Uncommitted | `git diff HEAD` + untracked (see codex-invocation.md) |\n| Branch diff | `git diff \u003Cbranch>...HEAD` |\n| Specific commit | `git diff \u003Csha>~1..\u003Csha>` |\n\n## Running Both\n\nWhen the user picks \"Both\" (the default):\n\n1. Run Codex and Gemini in parallel — issue both Bash tool\n   calls in a single response. Both commands are read-only\n   (they review diffs via external APIs) so there is no\n   shared state or git lock contention.\n2. Collect both results, then present with clear headers:\n\n```\n## Codex Review (gpt-5.5)\n\u003Ccodex output>\n\n## Gemini Review (gemini-3.1-pro-preview)\n\u003Cgemini output>\n```\n\nSummarize where the two reviews agree and differ.\n\n## Error Handling\n\n| Error | Action |\n|-------|--------|\n| `codex: command not found` | Tell user: `npm i -g @openai\u002Fcodex` |\n| `gemini: command not found` | Tell user: `npm i -g @google\u002Fgemini-cli` |\n| Gemini `code-review` extension missing | Tell user: `gemini extensions install https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fcode-review` |\n| Gemini `gemini-cli-security` extension missing | Tell user: `gemini extensions install https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsecurity` |\n| Model auth error (Codex) | Retry with `gpt-5.4` |\n| Empty diff | Tell user there are no changes to review |\n| Timeout | Inform user and suggest narrowing the diff scope |\n| Tool partially unavailable | Run only the available tool, note the skip |\n\n## Examples\n\n**Both tools (default):**\n```\nUser: \u002Fsecond-opinion\nClaude: [asks 4 questions: tool, scope, context, focus]\nUser: picks \"Both\", \"Branch diff\", \"Yes include CLAUDE.md\", \"Security\"\nClaude: [detects default branch = main]\nClaude: [shows diff --stat: 6 files, +103 -15]\nClaude: [assembles prompt with review instructions + CLAUDE.md + security focus + diff]\nClaude: [runs codex exec and gemini in parallel]\nClaude: [reads codex output file, parses structured findings]\nClaude: [presents both reviews, highlights agreements\u002Fdifferences]\n```\n\n**Codex only with inline args:**\n```\nUser: \u002Fsecond-opinion check uncommitted changes for bugs\nClaude: [scope known: uncommitted, focus known: custom]\nClaude: [asks 2 questions: tool, project context]\nUser: picks \"Codex only\", \"No context\"\nClaude: [shows diff --stat: 3 files, +45 -10]\nClaude: [writes prompt file with review instructions + diff]\nClaude: [runs codex exec, reads structured JSON output]\nClaude: [presents findings by priority with file:line refs]\n```\n\n**Gemini only:**\n```\nUser: \u002Fsecond-opinion\nClaude: [asks 4 questions]\nUser: picks \"Gemini only\", \"Uncommitted\", \"No\", \"General\"\nClaude: [shows diff --stat: 2 files, +20 -5]\nClaude: [runs gemini -p \"\u002Fcode-review\" --yolo -e code-review]\nClaude: [presents review]\n```\n\n**Large diff warning:**\n```\nUser: \u002Fsecond-opinion\nClaude: [asks questions] → user picks \"Both\", \"Uncommitted\", \"General\"\nClaude: [shows diff --stat: 45 files, +3200 -890]\nClaude: \"Large diff (3200+ lines). Proceed, or narrow the scope?\"\nUser: \"proceed\"\nClaude: [runs both reviews]\n```\n",{"data":42,"body":44},{"name":4,"description":6,"allowed-tools":43},"Bash Read Glob Grep AskUserQuestion",{"type":45,"children":46},"root",[47,55,61,68,98,104,127,133,147,153,165,171,178,191,203,214,223,232,241,251,256,265,275,284,290,295,301,306,512,517,522,528,533,539,552,631,636,642,647,727,733,745,750,861,867,878,882,1008,1023,1104,1110,1115,1129,1138,1143,1149,1321,1327,1335,1344,1352,1361,1369,1378,1386,1395],{"type":48,"tag":49,"props":50,"children":51},"element","h1",{"id":4},[52],{"type":53,"value":54},"text","Second Opinion",{"type":48,"tag":56,"props":57,"children":58},"p",{},[59],{"type":53,"value":60},"Shell out to external LLM CLIs for an independent code review powered by\na separate model. Supports OpenAI Codex CLI and Google Gemini CLI.",{"type":48,"tag":62,"props":63,"children":65},"h2",{"id":64},"when-to-use",[66],{"type":53,"value":67},"When to Use",{"type":48,"tag":69,"props":70,"children":71},"ul",{},[72,78,83,88,93],{"type":48,"tag":73,"props":74,"children":75},"li",{},[76],{"type":53,"value":77},"Getting a second opinion on code changes from a different model",{"type":48,"tag":73,"props":79,"children":80},{},[81],{"type":53,"value":82},"Reviewing branch diffs before opening a PR",{"type":48,"tag":73,"props":84,"children":85},{},[86],{"type":53,"value":87},"Checking uncommitted work for issues before committing",{"type":48,"tag":73,"props":89,"children":90},{},[91],{"type":53,"value":92},"Running a focused review (security, performance, error handling)",{"type":48,"tag":73,"props":94,"children":95},{},[96],{"type":53,"value":97},"Comparing review output from multiple models",{"type":48,"tag":62,"props":99,"children":101},{"id":100},"when-not-to-use",[102],{"type":53,"value":103},"When NOT to Use",{"type":48,"tag":69,"props":105,"children":106},{},[107,112,117,122],{"type":48,"tag":73,"props":108,"children":109},{},[110],{"type":53,"value":111},"Neither Codex CLI nor Gemini CLI is installed",{"type":48,"tag":73,"props":113,"children":114},{},[115],{"type":53,"value":116},"No API key or subscription configured for either tool",{"type":48,"tag":73,"props":118,"children":119},{},[120],{"type":53,"value":121},"Reviewing non-code files (documentation, config)",{"type":48,"tag":73,"props":123,"children":124},{},[125],{"type":53,"value":126},"You want Claude's own review (just ask Claude directly)",{"type":48,"tag":62,"props":128,"children":130},{"id":129},"safety-note",[131],{"type":53,"value":132},"Safety Note",{"type":48,"tag":56,"props":134,"children":135},{},[136,138,145],{"type":53,"value":137},"Gemini CLI is invoked with ",{"type":48,"tag":139,"props":140,"children":142},"code",{"className":141},[],[143],{"type":53,"value":144},"--yolo",{"type":53,"value":146},", which auto-approves all\ntool calls without confirmation. This is required for headless\n(non-interactive) operation but means Gemini will execute any\ntool actions its extensions request without prompting.",{"type":48,"tag":62,"props":148,"children":150},{"id":149},"quick-reference",[151],{"type":53,"value":152},"Quick Reference",{"type":48,"tag":154,"props":155,"children":159},"pre",{"className":156,"code":158,"language":53},[157],"language-text","# Codex (headless exec with structured JSON output)\ncodex exec --sandbox read-only --ephemeral \\\n  --output-schema codex-review-schema.json \\\n  -o \"$output_file\" - \u003C \"$prompt_file\"\n\n# Gemini (code review extension)\ngemini -p \"\u002Fcode-review\" --yolo -e code-review\n# Gemini (headless with diff — see references\u002F for full pattern)\ngit diff HEAD > \u002Ftmp\u002Freview-diff.txt\n{ printf '%s\\n\\n' 'Review this diff for issues.'; cat \u002Ftmp\u002Freview-diff.txt; } \\\n  | gemini -p - --yolo -m gemini-3.1-pro-preview\n",[160],{"type":48,"tag":139,"props":161,"children":163},{"__ignoreMap":162},"",[164],{"type":53,"value":158},{"type":48,"tag":62,"props":166,"children":168},{"id":167},"invocation",[169],{"type":53,"value":170},"Invocation",{"type":48,"tag":172,"props":173,"children":175},"h3",{"id":174},"_1-gather-context-interactively",[176],{"type":53,"value":177},"1. Gather context interactively",{"type":48,"tag":56,"props":179,"children":180},{},[181,183,189],{"type":53,"value":182},"Use ",{"type":48,"tag":139,"props":184,"children":186},{"className":185},[],[187],{"type":53,"value":188},"AskUserQuestion",{"type":53,"value":190}," to collect review parameters in one shot.\nAdapt the questions based on what the user already provided\nin their invocation (skip questions they already answered).",{"type":48,"tag":56,"props":192,"children":193},{},[194,196,201],{"type":53,"value":195},"Combine all applicable questions into a single ",{"type":48,"tag":139,"props":197,"children":199},{"className":198},[],[200],{"type":53,"value":188},{"type":53,"value":202},"\ncall (max 4 questions).",{"type":48,"tag":56,"props":204,"children":205},{},[206,212],{"type":48,"tag":207,"props":208,"children":209},"strong",{},[210],{"type":53,"value":211},"Question 1 — Tool",{"type":53,"value":213}," (skip if user already specified):",{"type":48,"tag":154,"props":215,"children":218},{"className":216,"code":217,"language":53},[157],"header: \"Review tool\"\nquestion: \"Which tool should run the review?\"\noptions:\n  - \"Both Codex and Gemini (Recommended)\" → run both in parallel\n  - \"Codex only\"                          → codex exec\n  - \"Gemini only\"                         → gemini CLI\n",[219],{"type":48,"tag":139,"props":220,"children":221},{"__ignoreMap":162},[222],{"type":53,"value":217},{"type":48,"tag":56,"props":224,"children":225},{},[226,231],{"type":48,"tag":207,"props":227,"children":228},{},[229],{"type":53,"value":230},"Question 2 — Scope",{"type":53,"value":213},{"type":48,"tag":154,"props":233,"children":236},{"className":234,"code":235,"language":53},[157],"header: \"Review scope\"\nquestion: \"What should be reviewed?\"\noptions:\n  - \"Uncommitted changes\" → git diff HEAD + untracked files\n  - \"Branch diff vs main\" → git diff \u003Cbranch>...HEAD (auto-detect default branch)\n  - \"Specific commit\"     → git diff \u003Csha>~1..\u003Csha> (follow up for SHA)\n",[237],{"type":48,"tag":139,"props":238,"children":239},{"__ignoreMap":162},[240],{"type":53,"value":235},{"type":48,"tag":56,"props":242,"children":243},{},[244,249],{"type":48,"tag":207,"props":245,"children":246},{},[247],{"type":53,"value":248},"Question 3 — Project context",{"type":53,"value":250}," (skip if neither CLAUDE.md nor AGENTS.md exists):",{"type":48,"tag":56,"props":252,"children":253},{},[254],{"type":53,"value":255},"Check for CLAUDE.md first, then AGENTS.md in the repo root.\nOnly show this question if at least one exists.",{"type":48,"tag":154,"props":257,"children":260},{"className":258,"code":259,"language":53},[157],"header: \"Project context\"\nquestion: \"Include project conventions file so the review\n  checks against your standards?\"\noptions:\n  - \"Yes, include it\"\n  - \"No, standard review\"\n",[261],{"type":48,"tag":139,"props":262,"children":263},{"__ignoreMap":162},[264],{"type":53,"value":259},{"type":48,"tag":56,"props":266,"children":267},{},[268,273],{"type":48,"tag":207,"props":269,"children":270},{},[271],{"type":53,"value":272},"Question 4 — Review focus",{"type":53,"value":274}," (always ask):",{"type":48,"tag":154,"props":276,"children":279},{"className":277,"code":278,"language":53},[157],"header: \"Review focus\"\nquestion: \"Any specific focus areas for the review?\"\noptions:\n  - \"General review\"    → no custom prompt\n  - \"Security & auth\"   → security-focused prompt\n  - \"Performance\"       → performance-focused prompt\n  - \"Error handling\"    → error handling-focused prompt\n",[280],{"type":48,"tag":139,"props":281,"children":282},{"__ignoreMap":162},[283],{"type":53,"value":278},{"type":48,"tag":172,"props":285,"children":287},{"id":286},"_2-run-the-tool-directly",[288],{"type":53,"value":289},"2. Run the tool directly",{"type":48,"tag":56,"props":291,"children":292},{},[293],{"type":53,"value":294},"Do not pre-check tool availability. Run the selected tool\nimmediately. If the command fails with \"command not found\" or\nan extension is missing, report the install command from the\nError Handling table below and skip that tool (if \"Both\" was\nselected, run only the available one).",{"type":48,"tag":62,"props":296,"children":298},{"id":297},"diff-preview",[299],{"type":53,"value":300},"Diff Preview",{"type":48,"tag":56,"props":302,"children":303},{},[304],{"type":53,"value":305},"After collecting answers, show the diff stats:",{"type":48,"tag":154,"props":307,"children":311},{"className":308,"code":309,"language":310,"meta":162,"style":162},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# For uncommitted (tracked + untracked):\ngit diff --stat HEAD\ngit ls-files --others --exclude-standard\n\n# For branch diff:\ngit diff --stat \u003Cbranch>...HEAD\n\n# For specific commit:\ngit diff --stat \u003Csha>~1..\u003Csha>\n","bash",[312],{"type":48,"tag":139,"props":313,"children":314},{"__ignoreMap":162},[315,327,353,376,386,395,438,446,455],{"type":48,"tag":316,"props":317,"children":320},"span",{"class":318,"line":319},"line",1,[321],{"type":48,"tag":316,"props":322,"children":324},{"style":323},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[325],{"type":53,"value":326},"# For uncommitted (tracked + untracked):\n",{"type":48,"tag":316,"props":328,"children":330},{"class":318,"line":329},2,[331,337,343,348],{"type":48,"tag":316,"props":332,"children":334},{"style":333},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[335],{"type":53,"value":336},"git",{"type":48,"tag":316,"props":338,"children":340},{"style":339},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[341],{"type":53,"value":342}," diff",{"type":48,"tag":316,"props":344,"children":345},{"style":339},[346],{"type":53,"value":347}," --stat",{"type":48,"tag":316,"props":349,"children":350},{"style":339},[351],{"type":53,"value":352}," HEAD\n",{"type":48,"tag":316,"props":354,"children":356},{"class":318,"line":355},3,[357,361,366,371],{"type":48,"tag":316,"props":358,"children":359},{"style":333},[360],{"type":53,"value":336},{"type":48,"tag":316,"props":362,"children":363},{"style":339},[364],{"type":53,"value":365}," ls-files",{"type":48,"tag":316,"props":367,"children":368},{"style":339},[369],{"type":53,"value":370}," --others",{"type":48,"tag":316,"props":372,"children":373},{"style":339},[374],{"type":53,"value":375}," --exclude-standard\n",{"type":48,"tag":316,"props":377,"children":379},{"class":318,"line":378},4,[380],{"type":48,"tag":316,"props":381,"children":383},{"emptyLinePlaceholder":382},true,[384],{"type":53,"value":385},"\n",{"type":48,"tag":316,"props":387,"children":389},{"class":318,"line":388},5,[390],{"type":48,"tag":316,"props":391,"children":392},{"style":323},[393],{"type":53,"value":394},"# For branch diff:\n",{"type":48,"tag":316,"props":396,"children":398},{"class":318,"line":397},6,[399,403,407,411,417,422,428,433],{"type":48,"tag":316,"props":400,"children":401},{"style":333},[402],{"type":53,"value":336},{"type":48,"tag":316,"props":404,"children":405},{"style":339},[406],{"type":53,"value":342},{"type":48,"tag":316,"props":408,"children":409},{"style":339},[410],{"type":53,"value":347},{"type":48,"tag":316,"props":412,"children":414},{"style":413},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[415],{"type":53,"value":416}," \u003C",{"type":48,"tag":316,"props":418,"children":419},{"style":339},[420],{"type":53,"value":421},"branc",{"type":48,"tag":316,"props":423,"children":425},{"style":424},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[426],{"type":53,"value":427},"h",{"type":48,"tag":316,"props":429,"children":430},{"style":413},[431],{"type":53,"value":432},">",{"type":48,"tag":316,"props":434,"children":435},{"style":339},[436],{"type":53,"value":437},"...HEAD\n",{"type":48,"tag":316,"props":439,"children":441},{"class":318,"line":440},7,[442],{"type":48,"tag":316,"props":443,"children":444},{"emptyLinePlaceholder":382},[445],{"type":53,"value":385},{"type":48,"tag":316,"props":447,"children":449},{"class":318,"line":448},8,[450],{"type":48,"tag":316,"props":451,"children":452},{"style":323},[453],{"type":53,"value":454},"# For specific commit:\n",{"type":48,"tag":316,"props":456,"children":458},{"class":318,"line":457},9,[459,463,467,471,475,480,485,489,494,499,503,507],{"type":48,"tag":316,"props":460,"children":461},{"style":333},[462],{"type":53,"value":336},{"type":48,"tag":316,"props":464,"children":465},{"style":339},[466],{"type":53,"value":342},{"type":48,"tag":316,"props":468,"children":469},{"style":339},[470],{"type":53,"value":347},{"type":48,"tag":316,"props":472,"children":473},{"style":413},[474],{"type":53,"value":416},{"type":48,"tag":316,"props":476,"children":477},{"style":339},[478],{"type":53,"value":479},"sh",{"type":48,"tag":316,"props":481,"children":482},{"style":424},[483],{"type":53,"value":484},"a",{"type":48,"tag":316,"props":486,"children":487},{"style":413},[488],{"type":53,"value":432},{"type":48,"tag":316,"props":490,"children":491},{"style":339},[492],{"type":53,"value":493},"~1..",{"type":48,"tag":316,"props":495,"children":496},{"style":413},[497],{"type":53,"value":498},"\u003C",{"type":48,"tag":316,"props":500,"children":501},{"style":339},[502],{"type":53,"value":479},{"type":48,"tag":316,"props":504,"children":505},{"style":424},[506],{"type":53,"value":484},{"type":48,"tag":316,"props":508,"children":509},{"style":413},[510],{"type":53,"value":511},">\n",{"type":48,"tag":56,"props":513,"children":514},{},[515],{"type":53,"value":516},"If the diff is empty, stop and tell the user.",{"type":48,"tag":56,"props":518,"children":519},{},[520],{"type":53,"value":521},"If the diff is very large (>2000 lines changed), warn the user\nand ask whether to proceed or narrow the scope.",{"type":48,"tag":62,"props":523,"children":525},{"id":524},"skipping-inapplicable-checks",[526],{"type":53,"value":527},"Skipping Inapplicable Checks",{"type":48,"tag":56,"props":529,"children":530},{},[531],{"type":53,"value":532},"After determining the diff scope, skip checks that don't apply\nto the files actually changed.",{"type":48,"tag":172,"props":534,"children":536},{"id":535},"dependency-scanning",[537],{"type":53,"value":538},"Dependency Scanning",{"type":48,"tag":56,"props":540,"children":541},{},[542,544,550],{"type":53,"value":543},"Only run ",{"type":48,"tag":139,"props":545,"children":547},{"className":546},[],[548],{"type":53,"value":549},"\u002Fsecurity:scan-deps",{"type":53,"value":551}," when the diff touches dependency\nmanifest files. Check with:",{"type":48,"tag":154,"props":553,"children":555},{"className":308,"code":554,"language":310,"meta":162,"style":162},"git diff --name-only \u003Cscope> \\\n  | grep -qiE '(package\\.json|package-lock|yarn\\.lock|pnpm-lock|Gemfile|\\.gemspec|requirements\\.txt|setup\\.py|setup\\.cfg|pyproject\\.toml|poetry\\.lock|uv\\.lock|Cargo\\.toml|Cargo\\.lock|go\\.mod|go\\.sum|composer\\.json|composer\\.lock|Pipfile)'\n",[556],{"type":48,"tag":139,"props":557,"children":558},{"__ignoreMap":162},[559,598],{"type":48,"tag":316,"props":560,"children":561},{"class":318,"line":319},[562,566,570,575,579,584,589,593],{"type":48,"tag":316,"props":563,"children":564},{"style":333},[565],{"type":53,"value":336},{"type":48,"tag":316,"props":567,"children":568},{"style":339},[569],{"type":53,"value":342},{"type":48,"tag":316,"props":571,"children":572},{"style":339},[573],{"type":53,"value":574}," --name-only",{"type":48,"tag":316,"props":576,"children":577},{"style":413},[578],{"type":53,"value":416},{"type":48,"tag":316,"props":580,"children":581},{"style":339},[582],{"type":53,"value":583},"scop",{"type":48,"tag":316,"props":585,"children":586},{"style":424},[587],{"type":53,"value":588},"e",{"type":48,"tag":316,"props":590,"children":591},{"style":413},[592],{"type":53,"value":432},{"type":48,"tag":316,"props":594,"children":595},{"style":424},[596],{"type":53,"value":597}," \\\n",{"type":48,"tag":316,"props":599,"children":600},{"class":318,"line":329},[601,606,611,616,621,626],{"type":48,"tag":316,"props":602,"children":603},{"style":413},[604],{"type":53,"value":605},"  |",{"type":48,"tag":316,"props":607,"children":608},{"style":333},[609],{"type":53,"value":610}," grep",{"type":48,"tag":316,"props":612,"children":613},{"style":339},[614],{"type":53,"value":615}," -qiE",{"type":48,"tag":316,"props":617,"children":618},{"style":413},[619],{"type":53,"value":620}," '",{"type":48,"tag":316,"props":622,"children":623},{"style":339},[624],{"type":53,"value":625},"(package\\.json|package-lock|yarn\\.lock|pnpm-lock|Gemfile|\\.gemspec|requirements\\.txt|setup\\.py|setup\\.cfg|pyproject\\.toml|poetry\\.lock|uv\\.lock|Cargo\\.toml|Cargo\\.lock|go\\.mod|go\\.sum|composer\\.json|composer\\.lock|Pipfile)",{"type":48,"tag":316,"props":627,"children":628},{"style":413},[629],{"type":53,"value":630},"'\n",{"type":48,"tag":56,"props":632,"children":633},{},[634],{"type":53,"value":635},"If no dependency files are in the diff, skip the scan even when\nsecurity focus is selected. The scan analyzes the entire project's\ndependency tree regardless of diff scope, so it adds significant\ntime for zero value when dependencies weren't touched.",{"type":48,"tag":62,"props":637,"children":639},{"id":638},"auto-detect-default-branch",[640],{"type":53,"value":641},"Auto-detect Default Branch",{"type":48,"tag":56,"props":643,"children":644},{},[645],{"type":53,"value":646},"For branch diff scope, detect the default branch name:",{"type":48,"tag":154,"props":648,"children":650},{"className":308,"code":649,"language":310,"meta":162,"style":162},"git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD 2>\u002Fdev\u002Fnull \\\n  | sed 's@^refs\u002Fremotes\u002Forigin\u002F@@' || echo main\n",[651],{"type":48,"tag":139,"props":652,"children":653},{"__ignoreMap":162},[654,685],{"type":48,"tag":316,"props":655,"children":656},{"class":318,"line":319},[657,661,666,671,676,681],{"type":48,"tag":316,"props":658,"children":659},{"style":333},[660],{"type":53,"value":336},{"type":48,"tag":316,"props":662,"children":663},{"style":339},[664],{"type":53,"value":665}," symbolic-ref",{"type":48,"tag":316,"props":667,"children":668},{"style":339},[669],{"type":53,"value":670}," refs\u002Fremotes\u002Forigin\u002FHEAD",{"type":48,"tag":316,"props":672,"children":673},{"style":413},[674],{"type":53,"value":675}," 2>",{"type":48,"tag":316,"props":677,"children":678},{"style":339},[679],{"type":53,"value":680},"\u002Fdev\u002Fnull",{"type":48,"tag":316,"props":682,"children":683},{"style":424},[684],{"type":53,"value":597},{"type":48,"tag":316,"props":686,"children":687},{"class":318,"line":329},[688,692,697,701,706,711,716,722],{"type":48,"tag":316,"props":689,"children":690},{"style":413},[691],{"type":53,"value":605},{"type":48,"tag":316,"props":693,"children":694},{"style":333},[695],{"type":53,"value":696}," sed",{"type":48,"tag":316,"props":698,"children":699},{"style":413},[700],{"type":53,"value":620},{"type":48,"tag":316,"props":702,"children":703},{"style":339},[704],{"type":53,"value":705},"s@^refs\u002Fremotes\u002Forigin\u002F@@",{"type":48,"tag":316,"props":707,"children":708},{"style":413},[709],{"type":53,"value":710},"'",{"type":48,"tag":316,"props":712,"children":713},{"style":413},[714],{"type":53,"value":715}," ||",{"type":48,"tag":316,"props":717,"children":719},{"style":718},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[720],{"type":53,"value":721}," echo",{"type":48,"tag":316,"props":723,"children":724},{"style":339},[725],{"type":53,"value":726}," main\n",{"type":48,"tag":62,"props":728,"children":730},{"id":729},"codex-invocation",[731],{"type":53,"value":732},"Codex Invocation",{"type":48,"tag":56,"props":734,"children":735},{},[736,738,743],{"type":53,"value":737},"See ",{"type":48,"tag":484,"props":739,"children":741},{"href":740},"references\u002Fcodex-invocation.md",[742],{"type":53,"value":740},{"type":53,"value":744},"\nfor full details on command syntax, prompt assembly, and the\nstructured output schema.",{"type":48,"tag":56,"props":746,"children":747},{},[748],{"type":53,"value":749},"Summary:",{"type":48,"tag":69,"props":751,"children":752},{},[753,774,793,798,803,814,825,830,843,848],{"type":48,"tag":73,"props":754,"children":755},{},[756,758,764,766,772],{"type":53,"value":757},"Uses ",{"type":48,"tag":139,"props":759,"children":761},{"className":760},[],[762],{"type":53,"value":763},"codex exec",{"type":53,"value":765}," (not ",{"type":48,"tag":139,"props":767,"children":769},{"className":768},[],[770],{"type":53,"value":771},"codex review",{"type":53,"value":773},") for headless operation",{"type":48,"tag":73,"props":775,"children":776},{},[777,779,785,787],{"type":53,"value":778},"Model: ",{"type":48,"tag":139,"props":780,"children":782},{"className":781},[],[783],{"type":53,"value":784},"gpt-5.5",{"type":53,"value":786},", reasoning: ",{"type":48,"tag":139,"props":788,"children":790},{"className":789},[],[791],{"type":53,"value":792},"xhigh",{"type":48,"tag":73,"props":794,"children":795},{},[796],{"type":53,"value":797},"Uses OpenAI's published code review prompt (fine-tuned into the model)",{"type":48,"tag":73,"props":799,"children":800},{},[801],{"type":53,"value":802},"Diff is generated manually and piped via stdin with the prompt",{"type":48,"tag":73,"props":804,"children":805},{},[806,812],{"type":48,"tag":139,"props":807,"children":809},{"className":808},[],[810],{"type":53,"value":811},"--output-schema",{"type":53,"value":813}," produces structured JSON findings",{"type":48,"tag":73,"props":815,"children":816},{},[817,823],{"type":48,"tag":139,"props":818,"children":820},{"className":819},[],[821],{"type":53,"value":822},"-o",{"type":53,"value":824}," captures only the final message (no thinking\u002Fexec noise)",{"type":48,"tag":73,"props":826,"children":827},{},[828],{"type":53,"value":829},"All three scopes (uncommitted, branch, commit) support project\ncontext and focus instructions (no limitations)",{"type":48,"tag":73,"props":831,"children":832},{},[833,835,841],{"type":53,"value":834},"Falls back to ",{"type":48,"tag":139,"props":836,"children":838},{"className":837},[],[839],{"type":53,"value":840},"gpt-5.4",{"type":53,"value":842}," on auth errors",{"type":48,"tag":73,"props":844,"children":845},{},[846],{"type":53,"value":847},"Output is clean JSON — parse and present findings by priority",{"type":48,"tag":73,"props":849,"children":850},{},[851,853,859],{"type":53,"value":852},"Set ",{"type":48,"tag":139,"props":854,"children":856},{"className":855},[],[857],{"type":53,"value":858},"timeout: 600000",{"type":53,"value":860}," on the Bash call",{"type":48,"tag":62,"props":862,"children":864},{"id":863},"gemini-invocation",[865],{"type":53,"value":866},"Gemini Invocation",{"type":48,"tag":56,"props":868,"children":869},{},[870,871,876],{"type":53,"value":737},{"type":48,"tag":484,"props":872,"children":874},{"href":873},"references\u002Fgemini-invocation.md",[875],{"type":53,"value":873},{"type":53,"value":877},"\nfor full details on flags, scope mapping, and extension usage.",{"type":48,"tag":56,"props":879,"children":880},{},[881],{"type":53,"value":749},{"type":48,"tag":69,"props":883,"children":884},{},[885,917,928,947,967,986,998],{"type":48,"tag":73,"props":886,"children":887},{},[888,889,895,897,902,904,910,911],{"type":53,"value":778},{"type":48,"tag":139,"props":890,"children":892},{"className":891},[],[893],{"type":53,"value":894},"gemini-3.1-pro-preview",{"type":53,"value":896},", flags: ",{"type":48,"tag":139,"props":898,"children":900},{"className":899},[],[901],{"type":53,"value":144},{"type":53,"value":903},", ",{"type":48,"tag":139,"props":905,"children":907},{"className":906},[],[908],{"type":53,"value":909},"-e",{"type":53,"value":903},{"type":48,"tag":139,"props":912,"children":914},{"className":913},[],[915],{"type":53,"value":916},"-m",{"type":48,"tag":73,"props":918,"children":919},{},[920,922],{"type":53,"value":921},"For uncommitted general review: ",{"type":48,"tag":139,"props":923,"children":925},{"className":924},[],[926],{"type":53,"value":927},"gemini -p \"\u002Fcode-review\" --yolo -e code-review",{"type":48,"tag":73,"props":929,"children":930},{},[931,933,939,941],{"type":53,"value":932},"For branch\u002Fcommit diffs: pipe ",{"type":48,"tag":139,"props":934,"children":936},{"className":935},[],[937],{"type":53,"value":938},"git diff",{"type":53,"value":940}," into ",{"type":48,"tag":139,"props":942,"children":944},{"className":943},[],[945],{"type":53,"value":946},"gemini -p",{"type":48,"tag":73,"props":948,"children":949},{},[950,952,958,959,965],{"type":53,"value":951},"Security extension name is ",{"type":48,"tag":139,"props":953,"children":955},{"className":954},[],[956],{"type":53,"value":957},"gemini-cli-security",{"type":53,"value":765},{"type":48,"tag":139,"props":960,"children":962},{"className":961},[],[963],{"type":53,"value":964},"security",{"type":53,"value":966},")",{"type":48,"tag":73,"props":968,"children":969},{},[970,976,978,984],{"type":48,"tag":139,"props":971,"children":973},{"className":972},[],[974],{"type":53,"value":975},"\u002Fsecurity:analyze",{"type":53,"value":977}," is interactive-only — use ",{"type":48,"tag":139,"props":979,"children":981},{"className":980},[],[982],{"type":53,"value":983},"-p",{"type":53,"value":985}," with a\nsecurity prompt instead",{"type":48,"tag":73,"props":987,"children":988},{},[989,991,996],{"type":53,"value":990},"Run ",{"type":48,"tag":139,"props":992,"children":994},{"className":993},[],[995],{"type":53,"value":549},{"type":53,"value":997}," only when security focus is selected\nAND the diff touches dependency manifest files (see Diff-Aware\nOptimizations)",{"type":48,"tag":73,"props":999,"children":1000},{},[1001,1002,1007],{"type":53,"value":852},{"type":48,"tag":139,"props":1003,"children":1005},{"className":1004},[],[1006],{"type":53,"value":858},{"type":53,"value":860},{"type":48,"tag":56,"props":1009,"children":1010},{},[1011,1021],{"type":48,"tag":207,"props":1012,"children":1013},{},[1014,1016],{"type":53,"value":1015},"Scope mapping for ",{"type":48,"tag":139,"props":1017,"children":1019},{"className":1018},[],[1020],{"type":53,"value":938},{"type":53,"value":1022}," (Gemini has no built-in scope flags):",{"type":48,"tag":1024,"props":1025,"children":1026},"table",{},[1027,1046],{"type":48,"tag":1028,"props":1029,"children":1030},"thead",{},[1031],{"type":48,"tag":1032,"props":1033,"children":1034},"tr",{},[1035,1041],{"type":48,"tag":1036,"props":1037,"children":1038},"th",{},[1039],{"type":53,"value":1040},"Scope",{"type":48,"tag":1036,"props":1042,"children":1043},{},[1044],{"type":53,"value":1045},"Diff command",{"type":48,"tag":1047,"props":1048,"children":1049},"tbody",{},[1050,1070,1087],{"type":48,"tag":1032,"props":1051,"children":1052},{},[1053,1059],{"type":48,"tag":1054,"props":1055,"children":1056},"td",{},[1057],{"type":53,"value":1058},"Uncommitted",{"type":48,"tag":1054,"props":1060,"children":1061},{},[1062,1068],{"type":48,"tag":139,"props":1063,"children":1065},{"className":1064},[],[1066],{"type":53,"value":1067},"git diff HEAD",{"type":53,"value":1069}," + untracked (see codex-invocation.md)",{"type":48,"tag":1032,"props":1071,"children":1072},{},[1073,1078],{"type":48,"tag":1054,"props":1074,"children":1075},{},[1076],{"type":53,"value":1077},"Branch diff",{"type":48,"tag":1054,"props":1079,"children":1080},{},[1081],{"type":48,"tag":139,"props":1082,"children":1084},{"className":1083},[],[1085],{"type":53,"value":1086},"git diff \u003Cbranch>...HEAD",{"type":48,"tag":1032,"props":1088,"children":1089},{},[1090,1095],{"type":48,"tag":1054,"props":1091,"children":1092},{},[1093],{"type":53,"value":1094},"Specific commit",{"type":48,"tag":1054,"props":1096,"children":1097},{},[1098],{"type":48,"tag":139,"props":1099,"children":1101},{"className":1100},[],[1102],{"type":53,"value":1103},"git diff \u003Csha>~1..\u003Csha>",{"type":48,"tag":62,"props":1105,"children":1107},{"id":1106},"running-both",[1108],{"type":53,"value":1109},"Running Both",{"type":48,"tag":56,"props":1111,"children":1112},{},[1113],{"type":53,"value":1114},"When the user picks \"Both\" (the default):",{"type":48,"tag":1116,"props":1117,"children":1118},"ol",{},[1119,1124],{"type":48,"tag":73,"props":1120,"children":1121},{},[1122],{"type":53,"value":1123},"Run Codex and Gemini in parallel — issue both Bash tool\ncalls in a single response. Both commands are read-only\n(they review diffs via external APIs) so there is no\nshared state or git lock contention.",{"type":48,"tag":73,"props":1125,"children":1126},{},[1127],{"type":53,"value":1128},"Collect both results, then present with clear headers:",{"type":48,"tag":154,"props":1130,"children":1133},{"className":1131,"code":1132,"language":53},[157],"## Codex Review (gpt-5.5)\n\u003Ccodex output>\n\n## Gemini Review (gemini-3.1-pro-preview)\n\u003Cgemini output>\n",[1134],{"type":48,"tag":139,"props":1135,"children":1136},{"__ignoreMap":162},[1137],{"type":53,"value":1132},{"type":48,"tag":56,"props":1139,"children":1140},{},[1141],{"type":53,"value":1142},"Summarize where the two reviews agree and differ.",{"type":48,"tag":62,"props":1144,"children":1146},{"id":1145},"error-handling",[1147],{"type":53,"value":1148},"Error Handling",{"type":48,"tag":1024,"props":1150,"children":1151},{},[1152,1168],{"type":48,"tag":1028,"props":1153,"children":1154},{},[1155],{"type":48,"tag":1032,"props":1156,"children":1157},{},[1158,1163],{"type":48,"tag":1036,"props":1159,"children":1160},{},[1161],{"type":53,"value":1162},"Error",{"type":48,"tag":1036,"props":1164,"children":1165},{},[1166],{"type":53,"value":1167},"Action",{"type":48,"tag":1047,"props":1169,"children":1170},{},[1171,1194,1216,1241,1264,1282,1295,1308],{"type":48,"tag":1032,"props":1172,"children":1173},{},[1174,1183],{"type":48,"tag":1054,"props":1175,"children":1176},{},[1177],{"type":48,"tag":139,"props":1178,"children":1180},{"className":1179},[],[1181],{"type":53,"value":1182},"codex: command not found",{"type":48,"tag":1054,"props":1184,"children":1185},{},[1186,1188],{"type":53,"value":1187},"Tell user: ",{"type":48,"tag":139,"props":1189,"children":1191},{"className":1190},[],[1192],{"type":53,"value":1193},"npm i -g @openai\u002Fcodex",{"type":48,"tag":1032,"props":1195,"children":1196},{},[1197,1206],{"type":48,"tag":1054,"props":1198,"children":1199},{},[1200],{"type":48,"tag":139,"props":1201,"children":1203},{"className":1202},[],[1204],{"type":53,"value":1205},"gemini: command not found",{"type":48,"tag":1054,"props":1207,"children":1208},{},[1209,1210],{"type":53,"value":1187},{"type":48,"tag":139,"props":1211,"children":1213},{"className":1212},[],[1214],{"type":53,"value":1215},"npm i -g @google\u002Fgemini-cli",{"type":48,"tag":1032,"props":1217,"children":1218},{},[1219,1231],{"type":48,"tag":1054,"props":1220,"children":1221},{},[1222,1224,1229],{"type":53,"value":1223},"Gemini ",{"type":48,"tag":139,"props":1225,"children":1227},{"className":1226},[],[1228],{"type":53,"value":19},{"type":53,"value":1230}," extension missing",{"type":48,"tag":1054,"props":1232,"children":1233},{},[1234,1235],{"type":53,"value":1187},{"type":48,"tag":139,"props":1236,"children":1238},{"className":1237},[],[1239],{"type":53,"value":1240},"gemini extensions install https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fcode-review",{"type":48,"tag":1032,"props":1242,"children":1243},{},[1244,1254],{"type":48,"tag":1054,"props":1245,"children":1246},{},[1247,1248,1253],{"type":53,"value":1223},{"type":48,"tag":139,"props":1249,"children":1251},{"className":1250},[],[1252],{"type":53,"value":957},{"type":53,"value":1230},{"type":48,"tag":1054,"props":1255,"children":1256},{},[1257,1258],{"type":53,"value":1187},{"type":48,"tag":139,"props":1259,"children":1261},{"className":1260},[],[1262],{"type":53,"value":1263},"gemini extensions install https:\u002F\u002Fgithub.com\u002Fgemini-cli-extensions\u002Fsecurity",{"type":48,"tag":1032,"props":1265,"children":1266},{},[1267,1272],{"type":48,"tag":1054,"props":1268,"children":1269},{},[1270],{"type":53,"value":1271},"Model auth error (Codex)",{"type":48,"tag":1054,"props":1273,"children":1274},{},[1275,1277],{"type":53,"value":1276},"Retry with ",{"type":48,"tag":139,"props":1278,"children":1280},{"className":1279},[],[1281],{"type":53,"value":840},{"type":48,"tag":1032,"props":1283,"children":1284},{},[1285,1290],{"type":48,"tag":1054,"props":1286,"children":1287},{},[1288],{"type":53,"value":1289},"Empty diff",{"type":48,"tag":1054,"props":1291,"children":1292},{},[1293],{"type":53,"value":1294},"Tell user there are no changes to review",{"type":48,"tag":1032,"props":1296,"children":1297},{},[1298,1303],{"type":48,"tag":1054,"props":1299,"children":1300},{},[1301],{"type":53,"value":1302},"Timeout",{"type":48,"tag":1054,"props":1304,"children":1305},{},[1306],{"type":53,"value":1307},"Inform user and suggest narrowing the diff scope",{"type":48,"tag":1032,"props":1309,"children":1310},{},[1311,1316],{"type":48,"tag":1054,"props":1312,"children":1313},{},[1314],{"type":53,"value":1315},"Tool partially unavailable",{"type":48,"tag":1054,"props":1317,"children":1318},{},[1319],{"type":53,"value":1320},"Run only the available tool, note the skip",{"type":48,"tag":62,"props":1322,"children":1324},{"id":1323},"examples",[1325],{"type":53,"value":1326},"Examples",{"type":48,"tag":56,"props":1328,"children":1329},{},[1330],{"type":48,"tag":207,"props":1331,"children":1332},{},[1333],{"type":53,"value":1334},"Both tools (default):",{"type":48,"tag":154,"props":1336,"children":1339},{"className":1337,"code":1338,"language":53},[157],"User: \u002Fsecond-opinion\nClaude: [asks 4 questions: tool, scope, context, focus]\nUser: picks \"Both\", \"Branch diff\", \"Yes include CLAUDE.md\", \"Security\"\nClaude: [detects default branch = main]\nClaude: [shows diff --stat: 6 files, +103 -15]\nClaude: [assembles prompt with review instructions + CLAUDE.md + security focus + diff]\nClaude: [runs codex exec and gemini in parallel]\nClaude: [reads codex output file, parses structured findings]\nClaude: [presents both reviews, highlights agreements\u002Fdifferences]\n",[1340],{"type":48,"tag":139,"props":1341,"children":1342},{"__ignoreMap":162},[1343],{"type":53,"value":1338},{"type":48,"tag":56,"props":1345,"children":1346},{},[1347],{"type":48,"tag":207,"props":1348,"children":1349},{},[1350],{"type":53,"value":1351},"Codex only with inline args:",{"type":48,"tag":154,"props":1353,"children":1356},{"className":1354,"code":1355,"language":53},[157],"User: \u002Fsecond-opinion check uncommitted changes for bugs\nClaude: [scope known: uncommitted, focus known: custom]\nClaude: [asks 2 questions: tool, project context]\nUser: picks \"Codex only\", \"No context\"\nClaude: [shows diff --stat: 3 files, +45 -10]\nClaude: [writes prompt file with review instructions + diff]\nClaude: [runs codex exec, reads structured JSON output]\nClaude: [presents findings by priority with file:line refs]\n",[1357],{"type":48,"tag":139,"props":1358,"children":1359},{"__ignoreMap":162},[1360],{"type":53,"value":1355},{"type":48,"tag":56,"props":1362,"children":1363},{},[1364],{"type":48,"tag":207,"props":1365,"children":1366},{},[1367],{"type":53,"value":1368},"Gemini only:",{"type":48,"tag":154,"props":1370,"children":1373},{"className":1371,"code":1372,"language":53},[157],"User: \u002Fsecond-opinion\nClaude: [asks 4 questions]\nUser: picks \"Gemini only\", \"Uncommitted\", \"No\", \"General\"\nClaude: [shows diff --stat: 2 files, +20 -5]\nClaude: [runs gemini -p \"\u002Fcode-review\" --yolo -e code-review]\nClaude: [presents review]\n",[1374],{"type":48,"tag":139,"props":1375,"children":1376},{"__ignoreMap":162},[1377],{"type":53,"value":1372},{"type":48,"tag":56,"props":1379,"children":1380},{},[1381],{"type":48,"tag":207,"props":1382,"children":1383},{},[1384],{"type":53,"value":1385},"Large diff warning:",{"type":48,"tag":154,"props":1387,"children":1390},{"className":1388,"code":1389,"language":53},[157],"User: \u002Fsecond-opinion\nClaude: [asks questions] → user picks \"Both\", \"Uncommitted\", \"General\"\nClaude: [shows diff --stat: 45 files, +3200 -890]\nClaude: \"Large diff (3200+ lines). Proceed, or narrow the scope?\"\nUser: \"proceed\"\nClaude: [runs both reviews]\n",[1391],{"type":48,"tag":139,"props":1392,"children":1393},{"__ignoreMap":162},[1394],{"type":53,"value":1389},{"type":48,"tag":1396,"props":1397,"children":1398},"style",{},[1399],{"type":53,"value":1400},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1402,"total":1557},[1403,1421,1431,1449,1464,1477,1489,1499,1512,1523,1535,1546],{"slug":1404,"name":1404,"fn":1405,"description":1406,"org":1407,"tags":1408,"stars":29,"repoUrl":30,"updatedAt":1420},"address-sanitizer","detect memory errors during fuzzing","AddressSanitizer detects memory errors during fuzzing. Use when fuzzing C\u002FC++ code to find buffer overflows and use-after-free bugs.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1409,1412,1415,1417],{"name":1410,"slug":1411,"type":16},"C#","c",{"name":1413,"slug":1414,"type":16},"Debugging","debugging",{"name":1416,"slug":964,"type":16},"Security",{"name":1418,"slug":1419,"type":16},"Testing","testing","2026-07-17T06:05:14.925095",{"slug":1422,"name":1422,"fn":1423,"description":1424,"org":1425,"tags":1426,"stars":29,"repoUrl":30,"updatedAt":1430},"aflpp","perform multi-core fuzzing of C\u002FC++ projects","AFL++ is a fork of AFL with better fuzzing performance and advanced features. Use for multi-core fuzzing of C\u002FC++ projects.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1427,1428,1429],{"name":1410,"slug":1411,"type":16},{"name":1416,"slug":964,"type":16},{"name":1418,"slug":1419,"type":16},"2026-07-17T06:05:12.433192",{"slug":1432,"name":1432,"fn":1433,"description":1434,"org":1435,"tags":1436,"stars":29,"repoUrl":30,"updatedAt":1448},"agentic-actions-auditor","audit GitHub Actions for security vulnerabilities","Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Codex, and GitHub AI Inference. Detects attack vectors where attacker-controlled input reaches AI agents running in CI\u002FCD pipelines, including env var intermediary patterns, direct expression injection, dangerous sandbox configurations, and wildcard user allowlists. Use when reviewing workflow files that invoke AI coding agents, auditing CI\u002FCD pipeline security for prompt injection risks, or evaluating agentic action configurations.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1437,1440,1443,1444,1447],{"name":1438,"slug":1439,"type":16},"Agents","agents",{"name":1441,"slug":1442,"type":16},"CI\u002FCD","ci-cd",{"name":27,"slug":28,"type":16},{"name":1445,"slug":1446,"type":16},"GitHub Actions","github-actions",{"name":1416,"slug":964,"type":16},"2026-07-18T05:47:48.564744",{"slug":1450,"name":1450,"fn":1451,"description":1452,"org":1453,"tags":1454,"stars":29,"repoUrl":30,"updatedAt":1463},"algorand-vulnerability-scanner","scan Algorand smart contracts for vulnerabilities","Scans Algorand smart contracts for 11 common vulnerabilities including rekeying attacks, unchecked transaction fees, missing field validations, and access control issues. Use when auditing Algorand projects (TEAL\u002FPyTeal).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1455,1458,1459,1460],{"name":1456,"slug":1457,"type":16},"Audit","audit",{"name":27,"slug":28,"type":16},{"name":1416,"slug":964,"type":16},{"name":1461,"slug":1462,"type":16},"Smart Contracts","smart-contracts","2026-07-18T05:47:43.989063",{"slug":1465,"name":1465,"fn":1466,"description":1467,"org":1468,"tags":1469,"stars":29,"repoUrl":30,"updatedAt":1476},"ask-questions-if-underspecified","clarify requirements before implementation","Clarify requirements before implementing. Use when serious doubts arise.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1470,1473],{"name":1471,"slug":1472,"type":16},"Engineering","engineering",{"name":1474,"slug":1475,"type":16},"Productivity","productivity","2026-07-17T06:05:33.543262",{"slug":1478,"name":1478,"fn":1479,"description":1480,"org":1481,"tags":1482,"stars":29,"repoUrl":30,"updatedAt":1488},"atheris","fuzz Python code with Atheris","Atheris is a coverage-guided Python fuzzer based on libFuzzer. Use for fuzzing pure Python code and Python C extensions.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1483,1486,1487],{"name":1484,"slug":1485,"type":16},"Python","python",{"name":1416,"slug":964,"type":16},{"name":1418,"slug":1419,"type":16},"2026-07-17T06:05:14.575191",{"slug":1490,"name":1490,"fn":1491,"description":1492,"org":1493,"tags":1494,"stars":29,"repoUrl":30,"updatedAt":1498},"audit-augmentation","augment code graphs with audit findings","Augments Trailmark code graphs with external audit findings from SARIF static analysis results, weAudit annotation files, and version-gated Trailmark 0.4.x binary-analysis graph exports. Maps findings to graph nodes by file and line overlap, creates severity-based subgraphs, and enables cross-referencing findings with pre-analysis data (blast radius, taint, etc.). Use when projecting SARIF results onto a code graph, overlaying weAudit annotations, importing binary graph findings, cross-referencing Semgrep, CodeQL, or binary-analysis findings with call graph data, or visualizing audit findings in the context of code structure.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1495,1496,1497],{"name":1456,"slug":1457,"type":16},{"name":27,"slug":28,"type":16},{"name":1416,"slug":964,"type":16},"2026-08-01T05:44:54.920542",{"slug":1500,"name":1500,"fn":1501,"description":1502,"org":1503,"tags":1504,"stars":29,"repoUrl":30,"updatedAt":1511},"audit-context-building","build architectural context for code analysis","Enables ultra-granular, line-by-line code analysis to build deep architectural context before vulnerability or bug finding.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1505,1508,1509,1510],{"name":1506,"slug":1507,"type":16},"Architecture","architecture",{"name":1456,"slug":1457,"type":16},{"name":27,"slug":28,"type":16},{"name":1471,"slug":1472,"type":16},"2026-07-18T05:47:40.122449",{"slug":1513,"name":1513,"fn":1514,"description":1515,"org":1516,"tags":1517,"stars":29,"repoUrl":30,"updatedAt":1522},"audit-prep-assistant","prepare codebases for security audits","Prepares codebases for security review using Trail of Bits' checklist. Helps set review goals, runs static analysis tools, increases test coverage, removes dead code, ensures accessibility, and generates documentation (flowcharts, user stories, inline comments).",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1518,1519,1520,1521],{"name":1456,"slug":1457,"type":16},{"name":27,"slug":28,"type":16},{"name":1471,"slug":1472,"type":16},{"name":1416,"slug":964,"type":16},"2026-07-18T05:47:39.210985",{"slug":1524,"name":1524,"fn":1525,"description":1526,"org":1527,"tags":1528,"stars":29,"repoUrl":30,"updatedAt":1534},"burpsuite-project-parser","parse Burp Suite project files","Searches and explores Burp Suite project files (.burp) from the command line. Use when searching response headers or bodies with regex patterns, extracting security audit findings, dumping proxy history or site map data, or analyzing HTTP traffic captured in a Burp project.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1529,1530,1533],{"name":1456,"slug":1457,"type":16},{"name":1531,"slug":1532,"type":16},"CLI","cli",{"name":1416,"slug":964,"type":16},"2026-07-17T06:05:33.198077",{"slug":1536,"name":1536,"fn":1537,"description":1538,"org":1539,"tags":1540,"stars":29,"repoUrl":30,"updatedAt":1545},"c-review","audit C and C++ code","Performs comprehensive C\u002FC++ security review for memory corruption, integer overflows, race conditions, and platform-specific vulnerabilities. Use when auditing native C\u002FC++ applications, reviewing daemons or services for memory safety, or hunting integer overflow \u002F use-after-free \u002F race conditions in userspace code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1541,1542,1543,1544],{"name":1456,"slug":1457,"type":16},{"name":1410,"slug":1411,"type":16},{"name":27,"slug":28,"type":16},{"name":1416,"slug":964,"type":16},"2026-07-17T06:05:11.333374",{"slug":1547,"name":1547,"fn":1548,"description":1549,"org":1550,"tags":1551,"stars":29,"repoUrl":30,"updatedAt":1556},"cairo-vulnerability-scanner","scan Cairo and StarkNet contracts for vulnerabilities","Scans Cairo\u002FStarkNet smart contracts for 6 critical vulnerabilities including felt252 arithmetic overflow, L1-L2 messaging issues, address conversion problems, and signature replay. Use when auditing StarkNet projects.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1552,1553,1554,1555],{"name":1456,"slug":1457,"type":16},{"name":27,"slug":28,"type":16},{"name":1416,"slug":964,"type":16},{"name":1461,"slug":1462,"type":16},"2026-07-18T05:47:42.84568",111,{"items":1559,"total":1605},[1560,1567,1573,1581,1588,1593,1599],{"slug":1404,"name":1404,"fn":1405,"description":1406,"org":1561,"tags":1562,"stars":29,"repoUrl":30,"updatedAt":1420},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1563,1564,1565,1566],{"name":1410,"slug":1411,"type":16},{"name":1413,"slug":1414,"type":16},{"name":1416,"slug":964,"type":16},{"name":1418,"slug":1419,"type":16},{"slug":1422,"name":1422,"fn":1423,"description":1424,"org":1568,"tags":1569,"stars":29,"repoUrl":30,"updatedAt":1430},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1570,1571,1572],{"name":1410,"slug":1411,"type":16},{"name":1416,"slug":964,"type":16},{"name":1418,"slug":1419,"type":16},{"slug":1432,"name":1432,"fn":1433,"description":1434,"org":1574,"tags":1575,"stars":29,"repoUrl":30,"updatedAt":1448},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1576,1577,1578,1579,1580],{"name":1438,"slug":1439,"type":16},{"name":1441,"slug":1442,"type":16},{"name":27,"slug":28,"type":16},{"name":1445,"slug":1446,"type":16},{"name":1416,"slug":964,"type":16},{"slug":1450,"name":1450,"fn":1451,"description":1452,"org":1582,"tags":1583,"stars":29,"repoUrl":30,"updatedAt":1463},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1584,1585,1586,1587],{"name":1456,"slug":1457,"type":16},{"name":27,"slug":28,"type":16},{"name":1416,"slug":964,"type":16},{"name":1461,"slug":1462,"type":16},{"slug":1465,"name":1465,"fn":1466,"description":1467,"org":1589,"tags":1590,"stars":29,"repoUrl":30,"updatedAt":1476},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1591,1592],{"name":1471,"slug":1472,"type":16},{"name":1474,"slug":1475,"type":16},{"slug":1478,"name":1478,"fn":1479,"description":1480,"org":1594,"tags":1595,"stars":29,"repoUrl":30,"updatedAt":1488},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1596,1597,1598],{"name":1484,"slug":1485,"type":16},{"name":1416,"slug":964,"type":16},{"name":1418,"slug":1419,"type":16},{"slug":1490,"name":1490,"fn":1491,"description":1492,"org":1600,"tags":1601,"stars":29,"repoUrl":30,"updatedAt":1498},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1602,1603,1604],{"name":1456,"slug":1457,"type":16},{"name":27,"slug":28,"type":16},{"name":1416,"slug":964,"type":16},77]