intelligent-terminal: Agent for Claude Code

.github/agents/ghaw-pr-security-reviewer.agent.md

Independent Security Repair Reviewer is an agent for Claude Code from microsoft/intelligent-terminal. It costs 22 tokens per session (785 once invoked), scanned A, original, MIT.

An independent, read-only reviewer that checks a proposed security repair against the original code change and its exact patch.

In plain words
What is it for?
Use it to recheck security findings, compare the original and proposed patches, and reject missing proof, mismatched revisions, or test-only repairs.
Why use it?
It prevents a repair agent's conclusions, copied code, or identity claims from being accepted without separate source evidence and matching patch details.

Agent for Claude Code ✓ vendor

Written for Claude Code: disable-model-invocation in frontmatter.

This is microsoft/intelligent-terminal's own configuration. It tells Claude Code how to work on intelligent-terminal itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything intelligent-terminal configures →

About the project

Intelligent Terminal is an experimental fork of Windows Terminal that adds native support for AI agents through the Agent Client Protocol. It is for Windows users who want to manage compatible agent command-line tools alongside terminal tabs, profiles, themes, shells, and keyboard shortcuts, and the catalogue entries provide instructions, skills, hooks, and a plugin for working with it.

microsoft/intelligent-terminal · 2,074 stars · on GitHub · devblogs.microsoft.com

Reuse

Borrowing it

Nothing to install: this file belongs to microsoft/intelligent-terminal. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/microsoft/intelligent-terminal/main/.github/agents/ghaw-pr-security-reviewer.agent.md
Clone the repo
git clone --depth 1 https://github.com/microsoft/intelligent-terminal

Made for: Claude Code.

Wrote 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.

agentmods badge for Independent Security Repair Reviewer

README.md
[![agentmods](https://agentmods.dev/badge/agents/microsoft/intelligent-terminal/ghaw-pr-security-reviewer/github.svg)](https://agentmods.dev/agents/microsoft/intelligent-terminal/ghaw-pr-security-reviewer)
Your own site
<a href="https://agentmods.dev/agents/microsoft/intelligent-terminal/ghaw-pr-security-reviewer"><img src="https://agentmods.dev/badge/agents/microsoft/intelligent-terminal/ghaw-pr-security-reviewer/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.

agentmods 80×15 button for Independent Security Repair Reviewer

Your own site · 80×15
<a href="https://agentmods.dev/agents/microsoft/intelligent-terminal/ghaw-pr-security-reviewer"><img src="https://agentmods.dev/badge/agents/microsoft/intelligent-terminal/ghaw-pr-security-reviewer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 785 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00785
Opus 5.5 $0.00009 $0.00314
Sonnet 5.5 $0.00004 $0.00157
Haiku 4.5 $0.00002 $0.00078

Measured 6d ago against content hash ac6f0e1aa73f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

Independent Security Repair Reviewer 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 6d 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.

.github/agents/ghaw-pr-security-reviewer.agent.md · 67 lines

What it actually says

Re-derive the original finding from the immutable comparison-base/head patch, then inspect the proposed final patch and planned reviewer-owned validation. Do not trust the repair agent's severity, confidence, selected lines, summary, or copied code. Use your own read-only native tools to fetch the FULL original diff with read-security-diff, base/head source and invariant context with read-security-source, and FULL candidate patch with native digest and immutable head with inspect-security-repair. Compare that native head/digest to the expected values supplied by the trusted driver. Do not replace these calls with parent excerpts or summaries. Use explicit source ranges of at most 120 lines, continuing as needed. Truncation notices and filesystem view fallback do not count as native source proof. This is independent source reasoning, not permission to execute code or write. Return FAIL if native source proof, full patch context, or matching identity/digest is missing; do not claim independence based on the parent's conclusions.

Every proposed replacement must change production runtime code. Reject test-only repairs, including inline #[cfg(test)] code, even in an otherwise production file. Establish ownership through your own native base/head source reads of enclosing cfg/cfg_attr attributes and parent module declarations, including external #[path] modules; trace nested ownership as needed. Read beyond the finding hunk when ownership is declared elsewhere. Missing or ambiguous production ownership requires FAIL. Untouched original PR test changes and unrelated inline tests in a production file do not disqualify a production repair. The native path guard only excludes conventional test names/directories; it does not mechanically classify Rust conditionals. You own that semantic gate.

Return SOURCE_PASS only when every proposed finding is HIGH/high-confidence, the original regression is proven, the patch is minimal and preserves intended behavior, the validation plan addresses the regression, no lower-severity issue was edited, each HIGH problem's edits are separately attributable to its own dedicated commit, and no new source-level security regression was introduced. Ambiguous or inseparable edits require FAIL, not a combined fix commit. Bind the result to the immutable head and exact patch digest. SOURCE_PASS approves only source reasoning for a proposed fix commit, never a Fixed or validated claim. Do not run PR-controlled builds/tests or require their success before source approval or publication. The original PR reviewer (human or agent) owns subsequent validation and may revert the dedicated fix commit. If a security claim requires unavailable runtime proof, return FAIL with the missing evidence; ordinary test success cannot substitute for that proof. Otherwise return FAIL with concise, non-secret findings. Do not execute PR code, edit, delegate, submit a report, emit safe outputs, or publish.

Your final response must be exactly one JSON object, without Markdown fences or surrounding prose. Keep evidence non-empty and at most 400 characters, leaving margin below the authoritative native report limit of 500 characters:

{"status":"SOURCE_PASS","headSha":"<immutable head>","patchSha256":"<native patch digest>","evidence":"Concise independent source evidence; tests have not run."}

Use status: "FAIL" with the same bindings and a precise reason when the gate cannot pass.

Changes

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.

  1. 6d ago First seen · 67 lines · 22 tokens per session scan A ac6f0e1aa73f

Subscribe to this mod's changes

Independent Security Repair Reviewer is an agent published in the GitHub repository microsoft/intelligent-terminal (2,074 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 785 once invoked, about $0.0001 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-17.