AiCodeCompiler 0.2.1

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global AiCodeCompiler --version 0.2.1
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local AiCodeCompiler --version 0.2.1
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=AiCodeCompiler&version=0.2.1
                    
nuke :add-package AiCodeCompiler --version 0.2.1
                    

AI Code Compiler

Compiles C# solutions into structured markdown that AI agents can reference for instant, accurate codebase understanding.

Quick Start

# Install
dotnet tool install --global AiCodeCompiler --source https://api.nuget.org/v3/index.json

# Compile (auto-detects .sln in current directory)
cd path/to/your/project
compile-for-ai

# Watch mode (auto-recompile on changes)
compile-for-ai watch

# Explicit solution path
compile-for-ai -s path/to/YourSolution.sln

What It Does

Generates a .codemap/ folder next to your solution containing:

File Content
index.md Solution overview — projects, key types, quick links
architecture.md Detected patterns (ASP.NET, EF Core), DI registrations
dependency-graph.md Mermaid diagram of project references
projects/<Name>/overview.md Per-project summary with dependencies
projects/<Name>/endpoints.md API routes, HTTP methods, auth, request/response types
projects/<Name>/services.md Business logic classes with method signatures
projects/<Name>/models.md DTOs, entities, records, enums
projects/<Name>/interfaces.md Contracts with their implementations

Why?

AI agents spend multiple iterations understanding code structure before making correct changes. This tool pre-compiles your codebase into a structured format agents understand immediately — reducing iteration cycles when vibe coding.

Options

compile-for-ai
  -s, --solution <path>   Path to .sln (auto-detected if not specified)
  -o, --output <path>     Output directory (default: .codemap/ next to .sln)
  -v, --verbose           Show detailed progress

What Gets Extracted

  • Project structure — dependencies, references, target frameworks
  • Types — classes, interfaces, records, enums with members
  • API endpoints — routes, HTTP methods, auth, request/response types
  • EF Core entities — models, relationships, DbContext config
  • DI registrations — service → implementation with lifetimes
  • Call graph — cross-type method call relationships

Requirements

  • .NET 9 SDK
  • A C# solution (.sln) file

Source Code

GitHub Repository

Product Compatible and additional computed target framework versions.
.NET net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
0.9.2 111 4/2/2026
0.9.1 107 4/2/2026
0.9.0 111 4/2/2026
0.8.1 110 4/2/2026
0.8.0 99 4/1/2026
0.7.0 95 4/1/2026
0.6.1 95 4/1/2026
0.6.0 109 4/1/2026
0.5.0 100 4/1/2026
0.4.0 101 4/1/2026
0.3.1 102 4/1/2026
0.3.0 114 4/1/2026
0.2.1 93 4/1/2026
0.2.0 99 4/1/2026
0.1.1 103 4/1/2026
0.1.0 108 4/1/2026