# Codebase Architect & Bug Guard (Devrith)

> Eliminate coding hallucinations and broken imports using AST-backed codebase engineering and verification.

Codebase Architect & Bug Guard (Devrith) is a free AI agent skill on Agensi by Divyam Gupta, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Divyam Gupta](https://www.agensi.io/creators/divyam-gupta)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.2
- Last updated: 2026-11-27
- Security: scan passed (2026-11-27); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/codebase-architect-bug-guard-devrith
- Tags: ai-agents, code-review, testing, python, typescript

## About this skill

Traditional AI coding agents often guess file paths, invent non-existent function signatures, and break dependency chains because they rely on stale context. This skill bridges the gap between LLM reasoning and the actual filesystem by integrating Devrith (arch-sidecar), an in-process AST co-processor.

### What it does
- **AST-Guided orientation** uses structural digests to map codebase skeletons without noise from dependencies or build artifacts.
- **Surgical context retrieval** locates 1-indexed code slices, cross-file callers, and companion tests based on feature descriptions.
- **Blast radius analysis** identifies downstream impacts and subsystem coupling before you modify shared logic or utilities.
- **Static preflight checks** catch undefined symbols, broken imports, and circular dependencies in milliseconds.
- **Evidence-backed verification** executes targeted test loops and generates a verification ledger to confirm behavioral success.

### How it works
1. **Orient** using `arch-sidecar digest` to understand the codebase DAG and module boundaries.
2. **Locate** targets using `arch-sidecar feature` to find exact lines and related test files.
3. **Execute** changes or refactors, utilizing `decouple` commands to move symbols without breaking imports.
4. **Verify** by running static checks and automated test loops to ensure zero hallucinations.

### Frameworks & tools
This tool supports Python, TypeScript, JavaScript, Go, Rust, Dart, Flutter, Kotlin, and Java. It integrates via the `arch-sidecar` CLI or as an MCP server for agents in Cursor or Claude Code.

### Why this beats prompting it yourself
Standard prompting relies on the agent's internal "memory" of the files it has seen, leading to hallucinations in large or complex repos. This skill forces the agent to ground every edit in real-time AST data, preventing broken builds and circular import cycles that manual prompts frequently miss.

### Use cases
- **Legacy code exploration** to quickly map symbols and dependencies in an unfamiliar repository.
- **Safe refactoring** of shared utilities by checking the impact on all downstream callers.
- **Automated PR prep** by running static preflights and verification ledgers before submission.
- **Feature implementation** with side-by-side creation of source logic and companion tests.

### Known limitations
Static analysis may flag false negatives for dynamic code using reflection, `getattr`, or `eval`. Requires the `arch-sidecar` binary to be installed in the agent environment.

## Requires

- MCP-enabled
- vitest
- Node.js
- jest
- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Codebase Architect & Bug Guard (Devrith) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does Devrith Arch Sidecar prevent the coding hallucinations common in standard AI agents?

This skill uses an AST (Abstract Syntax Tree) co-processor to provide real-time structural data, preventing the AI from guessing file paths or inventing function signatures that don't exist in your actual codebase.

### Which AI agents and IDEs are compatible with this skill?

It is compatible with any agent that supports the Model Context Protocol (MCP) or CLI execution, including popular environments like Cursor and Claude Code.

### What programming languages can I use with the AST-backed verification?

The skill supports a wide range of popular languages including Python, TypeScript, JavaScript, Go, Rust, Dart (Flutter), Kotlin, and Java.

### What is included in the purchase of this skill?

You will receive the Devrith Arch Sidecar skill configuration, access to the `arch-sidecar` CLI/MCP server integration, and comprehensive documentation for codebase orientation and verification workflows.

### What are the technical requirements for setting up the Arch Sidecar?

Setup involves installing the `arch-sidecar` binary in your agent's environment and connecting it as an MCP server; the skill then automatically handles codebase indexing and static preflight checks.

### Are there any specific codebase types where the static preflight checks might be limited?

While highly effective for standard structures, static analysis may encounter limitations with dynamic code execution, such as reflection or `eval` statements, which the agent will flag during the orientation phase.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
