
The First Architecture Intent Compiler & Autonomous Agent Orchestrator

Most AI tools just write code. Architect Genesis actually reads your architecture.
Understand your codebase topology in seconds. Detect severe anti-patterns, generate step-by-step refactoring execution plans, and dispatch Context-Aware AI Agents to autonomously fix technical debt without breaking Clean Architecture constraints.
v8.1.0 ships with 6 Phase 0 critical bugs that impact Genesis output quality. Use only for exploration, not production analysis.
See PHASE_0_CRITICAL_BUGS.md for complete list. Estimated fix time: 19 hours.
Current issues: - Standard library modules (fs, path, os, etc) incorrectly flagged as refactoring candidates - Prompt generation exceeds chat UI limits (500KB+ with 52 files) - Generated file extensions may be incorrect for non-TypeScript projects
execution-plan.md mapped strictly against your AST (Abstract Syntax Tree).architect package has been modularized:@girardelli/architect-core: The headless graph analysis and AST scoring engine.@girardelli/architect-agents: The autonomous workflows, LLM runtime, and AI Agent generator.@girardelli/architect: The CLI orchestrator and HTML reporting interface.architect pr-review . Action automatically drops highly visual architecture scorecards and Refactoring Plans directly inside your Pull Requests!composite: true TypeScript isolation.Architect runs entirely via GitHub Actions natively in your Pull Requests. Add the following file to .github/workflows/architecture-review.yml:
name: Architecture Review
on: [pull_request]
jobs:
architect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: camilooscargbaptista/architect@v8
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
npm install -g @girardelli/architect
# Scan the current directory and generate an HTML report
architect analyze .
# Audit and Generate AI Agents tailored for your stack
architect agents .
Architect is split into specialized packages. Depending on your use case, you can consume the entire CLI or just the core graphing engine for your proprietary SaaS:
| Package | Description | Status |
|---|---|---|
@girardelli/architect |
The command-line interface, Github Actions adapters, and HTML Report generators. | Active |
@girardelli/architect-core |
Pure graph analysis. AST Parsing, Anti-Pattern detection, and Architecture Scoring (0-100). | Active |
@girardelli/architect-agents |
AI Runtime. Maps core reports to autonomous refactoring workflows and custom templates. | Active |
Architect maps your codebase using advanced Tree-Sitter AST across languages (TypeScript, Python, Go, Java, Rust, Ruby, PHP). It understands import semantics, identifies cyclic dependencies, and categorizes layers (View, Core, Data, Infra).
Automatically catches architectural sins that humans miss in fast code reviews: * God Classes: Files that know too much and do too much. * Leaky Abstractions: DTOs or DB interfaces crossing into React Components. * Shotgun Surgery: Changes that force edits across 15 different files. * Spaghetti Modules: High O(N²) coupling with no clear interface boundary.
Architect doesn't spit out generic agent.md files. It detects your precise toolchain (e.g., NestJS, Prisma, Jest vs. FastAPI, SQLAlchemy, Pytest).
It dynamically generates an .agent/ folder containing:
* AGENTS: ORCHESTRATOR.md, BACKEND-DEVELOPER.md, TECH-DEBT-CONTROLLER.md
* RULES: Strict boundary rules and OWASP security constraints mapped to your language.
* WORKFLOWS: Automated execution plans for feature, bug, and refactor.
Every run produces a tiered Refactoring Plan: * Tier 1: Quick wins (Move variable, rename interface). * Tier 2: Strategic Hub-splits (Break God Class into Facades).
Your project is graded on a strict algorithm measuring: * Modularity: Is the codebase properly separated? * Coupling: How tightly intertwined are the files? * Cohesion: Do the files in a layer actually belong together? * Layering: Does the data flow linearly (UI -> Domain -> DB)?
We welcome contributions! See the workspaces internally to get started:
git clone https://github.com/camilooscargbaptista/architect.git
cd architect
npm install
npm run build
npm test
MIT License. Created to put Tech Leads back in control of their scaling repositories.
$ claude mcp add architect \
-- python -m otcore.mcp_server <graph>