diffhound
DiffHound (by Continuum) — Zero-Noise AI Anti-Regression Engine
English | 中文说明
“The Hound that catches the regressions rabbits miss.”
Continuum is an industrial-grade, deterministic memory manifold and PR gatekeeper.
It equips AI coding assistants (Cursor, Claude Code, Windsurf) and CI/CD pipelines with zero-noise regression interception—preventing new AI sessions from repeating bugs your team has already solved.
🐕 What is DiffHound?
With over 40% of code now generated by AI, engineering teams are drowning in PR review fatigue. Existing AI reviewers (CodeRabbit, Greptile) flood pull requests with dozens of superficial comments on style and variable naming, causing human reviewers to suffer alert blindness.
DiffHound enforces one dogmatic principle:
Zero-Noise Law: If an incoming PR does not break a historical fix or violate an architectural post-mortem, it stays 100% silent and exits 0. It only speaks when a true regression is intercepted.
Pull Request Unified Diff
│
▼
DiffHound AST Hunk Extraction
│
▼
Continuum Causal Temporal Manifold
(750 bounded physical slots, < 100 μs)
│
┌─────────────────┴─────────────────┐
│ │
Score < Threshold Score >= Threshold
(0 Regressions Risk) (Historical Anchor Hit!)
│ │
▼ ▼
• Exit Code 0 • Exit Code 1 (Block Merge)
• ZERO Comment Spam • Laser-Focused Warning Table:
(Zero-Noise) - File & Line Number
- Historical Commit Hash
- Post-Mortem RemediationRelated MCP server: claude-engram
⚡ Key Highlights
100% Native Rust Standard Library: Zero external crate dependencies. Compiles standalone in
< 2 secondswith zero runtime bloat.Physical $O(K)$ Bounded Memory: State is strictly constrained to 750 slots (Hot working memory + Cold candidate manifold).
Sub-Millisecond Execution: Retrospective causal scoring runs in
< 3 msinside GitHub Actions.Microsecond Zero-Loss Persistence: Complete snapshot in tens of kilobytes, atomic write + parent directory
fsyncwith checksum verification.Dual Form Factors:
DiffHound CLI & Action: Local developer tool & GitHub Actions CI Gatekeeper.
Continuum MCP Server: Integrated stdio protocol for Cursor, Claude Code, Windsurf.
🚀 Quickstart
1. Run 1-Shot CI Installer
Add DiffHound zero-noise regression protection to any Git repository with one command:
curl -fsSL https://raw.githubusercontent.com/reacherwu/diffhound/main/crates/diffhound-cli/install-ci.sh | bash2. Standalone CLI Review
# Build & install diffhound globally
cargo install --path crates/diffhound-cli
# Review current branch against main before pushing
diffhound review --base origin/main --fail-on-regression3. Add to GitHub Actions (.github/workflows/diffhound.yml)
name: DiffHound Anti-Regression Guard
on: [pull_request]
jobs:
guard:
name: DiffHound Zero-Noise PR Guard
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: reacherwu/diffhound@main
with:
fail-on-regression: true
threshold: '0.65'🛠️ MCP Integration (Cursor / Claude / Windsurf)
Continuum provides a built-in, zero-dependency Model Context Protocol server.
Cursor (~/.cursor/mcp.json):
{
"mcpServers": {
"continuum": {
"command": "continuum-cli",
"args": ["mcp"]
}
}
}Claude Code / Claude Desktop:
claude mcp add continuum continuum-cli mcp🔬 Benchmark: DiffHound vs. Traditional AI Reviewers
Metric | Traditional Cloud AI Reviewer | Naive Vector Store | DiffHound (Pure Rust) |
Analysis Latency | 4,200 ms – 8,500 ms | 120 ms – 350 ms | 2.4 ms (2,410 μs) |
CI Memory Overhead | > 1.2 GB (Node/Python runtime) | > 450 MB | < 12 MB (Zero-runtime) |
Spam Comments on Clean PRs | 8 – 24 comments | 0 | 0 (Zero-Noise Law) |
Historical Root Exemption | ❌ No (Penalized by recency) | ❌ No | ✅ Yes (Causal Bridge) |
External API Dependencies | OpenAI / Anthropic Key required | Vector DB required | None (100% Local / Self-Hosted) |
📄 Academic Citation & Prior Art
The foundational two-tier manifold and retrospective causal revision architecture were independently derived and archived on CERN Zenodo:
Paper: Continuum: A Deterministic O(K)-Bounded Two-Tier Memory Manifold for Resilient Autonomous Agents under Temporal Alert Storms
Author: Jun Wu
📜 License
Released under the GNU Affero General Public License v3.0 (AGPL-v3). Free and open-source for developers and teams locally.
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted memory for AI agents that learns from outcomes — one key across Claude, Cursor & ChatGPT.
Shared memory for AI coding agents. Save once, reuse from Cursor, Claude Code, Codex.
Persistent memory for Claude Code, Cursor and Codex. Facts retire when they change.
Shared memory for coding agents. Stop re-explaining your codebase every session.
Related MCP Servers
- AlicenseAqualityDmaintenanceHybrid semantic + keyword memory across all your projects. Works with Cursor, Claude Code, and your team.111MIT
- AlicenseBqualityBmaintenancePersistent memory and session intelligence for AI coding assistants. Auto-tracks mistakes, decisions, and context via hooks. Mines your full session history for patterns, predictions, and cross-session search.2116MIT
- AlicenseAqualityAmaintenanceLocal-first memory layer for AI coding agents — captures issues, attempts, fixes, and decisions, and warns at git commit before you repeat a mistake.17372 PyPI823MIT
- AlicenseAqualityFmaintenanceSelf-improving, verifiable memory for AI coding agents. Learns how you work, stops repeating mistakes, models each project, recalls the right lesson at the right moment. Every memory is signed and tamper-evident. Local-first.82Apache 2.0