Skip to main content
Glama

Devrith — Architectural Control Plane for AI-Written Code

arch-sidecar is the open-source engine powering Devrith. Free forever for individual developers.

License: MIT Python 3.9+ Model Context Protocol Glama MCP Server Tests Passing Empirical Case Study


70% fewer agent tool calls · 40% faster completions · <15ms static preflight · Zero exploratory file reads

Compatible with Claude Code, Cursor, Windsurf, Gemini CLI, and Antigravity.
Empirical benchmarks across 37,005 LOC (pre-registered). Read the full data →


What is Devrith?

AI coding agents are fast — but architecturally blind. They read whole files to find one function, make changes that break imports three layers up, and spin in loops catching errors they caused themselves.

Devrith is the architectural control plane that sits between your AI agent and your codebase. It gives agents surgical context (not whole files), catches compiler-grade hazards before code touches disk, and enforces architecture contracts across your entire repo — in milliseconds, with zero external dependencies.

Agent → arch-sidecar → Surgical context (500 tokens, not 50k)
                      → Pre-flight hazard check (<15ms)
                      → Feature plan with 1-indexed source + test paths

Related MCP server: Paparats: Local Semantic Code Search

🆓 Free for Individual Developers (This Repo)

The arch-sidecar CLI and MCP server are free, open-source (MIT), and always will be for individual developers.

⚡ One-Liner Install (Linux / macOS / WSL)

curl -fsSL https://raw.githubusercontent.com/Hackedghost64/arch-sidecar/main/install.sh | bash

Via uv, pipx, or pip

uv tool install git+https://github.com/Hackedghost64/arch-sidecar.git@v0.4.0
# or
pipx install git+https://github.com/Hackedghost64/arch-sidecar.git@v0.4.0
# or
pip install --upgrade git+https://github.com/Hackedghost64/arch-sidecar.git@v0.4.0
TIP

Botharch-sidecar and devrith are installed as identical entry points. Use whichever you prefer.

Install as an Antigravity / AGY Skill (Free)

Install the bundled Devrith skill directly into your AI coding environment via Agensi — free, one-click, no setup:

agy skill install devrith

Or find it at: agensi.io → Devrith

🛡️ Drop-in GitHub Action (CI PR Guard)

Add Devrith to any repository's CI in seconds. It runs in under 15 seconds, predicts PR blast radius against main, and catches breaking AST hazards before merging:

# .github/workflows/devrith.yml
name: Devrith Architectural Guard
on: [pull_request, push]

jobs:
  guard:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with:
          fetch-depth: 0
      - uses: Hackedghost64/arch-sidecar@main

🏢 Devrith Team — Coming Soon

The free CLI gets you surgical context and preflight for your own repos. Devrith Team extends this into an organization-wide architectural control plane:

Feature

Individual (Free)

Team (Paid)

Architectural Digest (digest)

✅

✅

Surgical Feature Context (feature)

✅

✅

Pre-flight Hazard Check (check)

✅

✅

Architecture Contract (.devrith.yml)

✅ auto-generated

✅ enforced org-wide

GitHub App Merge Gate

❌

✅ Blocks PRs that violate contracts

Multi-Repo Dependency Graph

❌

✅ Cross-service boundary enforcement

Team Policy Dashboard

❌

✅

Org-Wide Architecture Audit

❌

✅

Interested in early access or a pilot? → Open an issue or email devrith@pm.me


🚀 What's in v0.4.0

6-language polyglot architectural co-processor — Python, TypeScript/JS, Go, Rust, Dart/Flutter, Kotlin/Java. Zero external binaries, zero background daemons.

Core Commands

# 1. Architectural Digest — instant codebase skeleton (<100ms)
arch-sidecar digest ./my-repo

# 2. Feature Planning — surgical context for a task (~274ms)
arch-sidecar feature "add OAuth login" ./my-repo

# 3. Pre-flight Check — compiler-grade hazard detection (<15ms)
arch-sidecar check ./my-repo

# 4. Audit — full architectural health report
arch-sidecar audit ./my-repo

# 5. Deterministic AST Refactoring
arch-sidecar decouple "MyClass" ./my-repo

# 6. Verification after edits
arch-sidecar feature "add OAuth login" ./my-repo --verify

As an MCP Server (Claude, Cursor, Windsurf, AGY)

{
  "mcpServers": {
    "devrith": {
      "command": "arch-sidecar",
      "args": ["serve"]
    }
  }
}

📊 Empirical Benchmarks

IMPORTANT

Pre-registered benchmarks across 37,005 LOC (anime-cli + movie-app):

Metric

With Devrith

Without

Agent tool calls

18

60 (70% reduction)

Wall-clock time

6m 19s

10m 32s (40% faster)

Exploratory read_file calls

0

28

Net token savings

21–27%

—

Hazard Recall (pallets/werkzeug, N=73): Caught 82.9% of breaking structural hazards before code touches disk (95% CI: 67.3%–91.9%).

Full data: CASE_STUDY.md · BENCHMARK_REPORT


🥊 Capability Matrix

Capability

Aider

Codemap

CALM

Devrith

Architectural Digest

✅

✅

✅

✅ (<100ms)

Surgical Symbol Context

Partial

✅

✅

✅ (~500 tokens)

Feature Workflow Planning

❌

❌

❌

✅

Deterministic AST Extraction

❌

❌

❌

✅ (1.8–16ms)

Circular Import Defense

❌

❌

⚠️

✅ Pre-flight

Scope Shadowing Analysis

❌

❌

❌

✅ Compiler-grade

Multi-language support

✅

Partial

Partial

✅ 6 languages

Team Merge Gate

❌

❌

❌

🔜 Devrith Team


🏗️ How the Open-Core Flywheel Works

1. Developer installs free arch-sidecar CLI
         ↓
2. First run auto-generates .devrith.yml (Architecture Contract) in repo
         ↓
3. Contract defines module boundaries, allowed dependency edges, language scope
         ↓
4. Developer commits .devrith.yml — repo now has an architecture contract
         ↓
5. Team sees the contract → installs Devrith Team GitHub App
         ↓
6. GitHub App enforces contract as a merge gate on every PR
         ↓
7. Org-wide architectural drift becomes impossible

The free tool creates the artifact (.devrith.yml) that makes the paid team layer valuable.


📖 Documentation


🔬 Technical Details

6-Language Polyglot Engine: Python, TypeScript/JS (.ts, .tsx, .js, .jsx), Go, Rust, Dart/Flutter, Kotlin/Java. Operates via lightweight in-process AST parsers with zero external binaries or background daemon processes.

Rare-Term IDF Scoring: Down-weights generic CRUD verbs (get, set, handle, process) and boosts domain-specific identifiers by up to +45, preventing search dilution.

Cross-Boundary Route & Environment Linking: Automatically bridges backend endpoints and frontend/mobile client files sharing HTTP routes or environment variables for cross-layer consistency.

Atomic Multi-Symbol Decoupling: Extract multiple symbols atomically across supported languages with automatic import migration, re-export shims, and transactional rollback if tests fail.

Known Boundaries: Static AST analysis cannot resolve runtime reflection (getattr, eval, exec), runtime monkeypatching (unittest.mock.patch), or dynamic mock patterns. Dynamic unit tests remain required for behavioral validation.


License

arch-sidecar (the CLI and MCP engine in this repo) is licensed under the MIT License. See LICENSE.

Devrith Team features (GitHub App, merge gate, org dashboard) are proprietary. © 2026 Devrith.


Built by Divyam Gupta · Get the free Agensi skill

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Persistent codebase knowledge layer for AI agents. Pre-digests codebases into structured knowledge (symbols, dependency graphs, co-change patterns, architectural decisions) and serves via MCP. 28 languages, 14 tools, ~85% token reduction.
      22 npm
      10
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Self-hosted semantic code search for AI coding agents. Indexes many repositories at once with tree-sitter AST chunking, local llama.cpp embeddings and Qdrant, so Claude Code, Cursor, Codex and any MCP client can find code by meaning, trace usages and callers, and read the git history behind each chunk. No API keys, and your code never leaves your machine.
      18
      36
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Provides AI coding agents with an embedded knowledge graph and architecture governance tools, enabling blast radius analysis, compliance checks, and smart context extraction from codebases.
      Apache 2.0