DiffGate
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
| prompts | {} |
| resources | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| diffgate_analyzeA | Analyze a file for code review findings. Only flags risk on lines changed vs the git baseline (diff-aware). Pass |
| diffgate_check_stagedA | Check all staged (or working-tree) changes in a git repo for DiffGate findings. Returns overall tier, counts, and per-file findings across the whole diff, plus a |
| diffgate_deep_reviewA | Run an agentic deep review on a single high-impact (orange) finding. The model uses real repo tools (grep, read_file, find_references, git_blame) to investigate blast radius before rendering a verdict. |
| diffgate_explainA | Get a concise AI explanation for a DiffGate finding. Faster than diffgate_deep_review — a single LLM call with no tool loops. |
| diffgate_capabilitiesA | Report which DiffGate layers are active (core / code graph / LLM), which tools you can call right now without an error, and the agent autonomy budget (fix limit, escalation, trust source). Call this once up front so you know what's available instead of discovering it via thrown errors. |
| diffgate_guidelinesA | Review the diff against the repo's own coding guideline files (AGENTS.md, CLAUDE.md, .cursorrules, etc.), scoped per directory (nearest file wins). IMPORTANT: if the result has mode='host', NO external model was used — this is a SELF-REVIEW, not an independent gate: YOU (the calling agent) evaluate each group's |
| diffgate_feedbackA | Record a reviewer's verdict on a finding so DiffGate learns. verdict 'dismiss' suppresses that same flagged code (ruleId + code) in future reviews (noise reduction); 'confirm' marks it as a real, valued catch. Stored in .diffgate/learnings.json at the repo root. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| review-workflow | The end-to-end self-check to run before surfacing a diff: capabilities → analyze → triage each finding by its rung → escalate or dismiss. Use at the start of a coding task so the human only sees what needs their judgment. |
| triage-finding | Decide what to do with a single finding from its tier/trust/rung — without over-escalating to a human or silently rewriting correct code. Pass the finding's fields. |
| setup-diffgate | Write a .diffgate.json and wire the gate (pre-commit hook, MCP, optional AI) with low-noise defaults so the team is not flooded with advisory findings. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| capabilities | Active layers (core/graph/llm), callable tools, and the agent autonomy budget for this repo. |
| rules | Every rule DiffGate applies in this repo (id, tier, blocking, pack) after config overrides. |
| learnings | The team's recorded verdicts — noise suppressions and confirmed catches — from .diffgate/learnings.json. |
| protocol | The trust × rung ladder for acting on findings without over-escalating to a human. |
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/srbsa/diffgate'
If you have feedback or need assistance with the MCP directory API, please join our Discord server