Observed since 20 Oct, 20:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Maintains architectural integrity as AI writes code.
Before an AI writes code, it should prove that the code deserves to exist.
Aedile is an engineering intelligence layer for AI coding assistants. Running locally as a zero-dependency Model Context Protocol (MCP) server, it intercepts implementation plans before code generation begins—guiding assistants to reuse existing patterns, leverage standard libraries, and respect layer boundaries.
Install the package directly from GitHub:
pip install git+https://github.com/aaryanrwt/aedile.git
Generate the local prompt rulesets (.cursorrules and .claudeprompt templates):
python -m aedile compile-rules
Add the MCP server command python -m aedile to your coding assistant (e.g. Cursor or Claude Code). See SUPPORTED_AGENTS.md for step-by-step setup guides.
The assistant plans to write a custom JWT helper, unaware that src/shared/auth.py already contains a token generator. It installs a new library, adds 40 lines of wrapper code, and increases reasoning costs.
The assistant consults Aedile during its planning step:
AI: "I'm going to create jwt.py."
Aedile: "Existing helper found: src/shared/auth.py. Reuse create_token()."
AI: "Understood. Importing src.shared.auth and writing 1 line instead of 40."
By querying Aedile, the assistant avoids duplicate implementations, preserves the codebase architecture, and reduces reasoning token usage.
Aedile hooks into the assistant's planning loop via the Model Context Protocol (MCP). Before code is written, Aedile evaluates the proposed changes:
graph TD
A[User Prompt] --> B[AI Assistant Plans Change]
B --> C{Aedile Consult Tool}
C -->|Scan Symbols| D[Similarity & Reuse Check]
C -->|Analyze Imports| E[Cycle & Boundary Check]
D --> F[Consolidated Advice]
E --> F
F --> G[Assistant Generates Optimal Code]
We designed Aedile to enforce a structured Decision Ladder—directing the assistant to check codebase reuse, standard libraries, and pre-installed dependencies before drafting new logic.
We measured the execution of backend engineering tasks (such as token authentication and endpoint refactoring) across multiple runs. Full parameters are documented in results.json and compiled in BENCHMARKS.md.
| Metric | Without Aedile | Prompt-Only Rules | With Aedile |
|---|---|---|---|
| Reasoning Cost (Avg Tokens) | 1,850 | 1,100 | 350 |
| Context Window Size (Tokens) | 4,200 | 5,100 | 1,200 |
| Duplicate Code Written | Yes | Yes | No |
| Tool Calls Executed | 3 | 2 | 1 |
Aedile represents a shift in how codebase constraints are enforced:
.cursorrules text) decay and suffer from "prompt drift" in long sessions. Aedile queries real-time codebase symbols and active dependencies dynamically via a single MCP tool (aedile_consult).Aedile intentionally trades process startup latency (~100ms) for dynamic codebase verification. We optimized traversal by using SHA-256 increment caching, keeping scan times under 40ms. Symbol parsing is currently optimized for Python workspaces, with TypeScript/JavaScript support planned next.
Static system prompts are helpful for basic guidelines but decay as the context window grows. AI models suffer from "prompt drift" and will ignore static text. Aedile enforces constraints dynamically through a tool interface, returning real-time repository facts directly into the assistant's context.
No. Aedile is fully offline-first. Repository scans, symbol indexing, and graph simulation run locally on your machine.
We welcome contributions to Aedile. Please review our CONTRIBUTING.md and CODE_OF_CONDUCT.md.
Aedile is open-source software licensed under the MIT License.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0 | 10 Jul 2026 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 20:10 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:e72c26f209693b490011e3f57f1ada5fce295be601555ec85f7127236274c6c2