ContextCompiler 0.1.0-alpha.1

This is a prerelease version of ContextCompiler.
dotnet add package ContextCompiler --version 0.1.0-alpha.1
                    
NuGet\Install-Package ContextCompiler -Version 0.1.0-alpha.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ContextCompiler" Version="0.1.0-alpha.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ContextCompiler" Version="0.1.0-alpha.1" />
                    
Directory.Packages.props
<PackageReference Include="ContextCompiler" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ContextCompiler --version 0.1.0-alpha.1
                    
#r "nuget: ContextCompiler, 0.1.0-alpha.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ContextCompiler@0.1.0-alpha.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ContextCompiler&version=0.1.0-alpha.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=ContextCompiler&version=0.1.0-alpha.1&prerelease
                    
Install as a Cake Tool

ContextCompiler

ContextCompiler (CTXC) is a deterministic, pre-LLM compilation engine that transforms heterogeneous inputs into structured, auditable context artifacts.

It provides a modular pipeline to build, analyze, and export context for downstream systems such as LLMs, search, or automation — without invoking any AI model during compilation.


🚀 Overview

ContextCompiler compiles input data (files, directories, repositories) into a canonical Reasoning IR enriched with an Evidence system, then produces deterministic outputs such as:

  • Context prompts
  • Evidence indexes
  • Reasoning graphs
  • Reports and diagnostics

The system is designed to be:

  • Deterministic → same input, same output
  • Traceable → every output is backed by evidence
  • Modular → extensible through modules
  • Pre-LLM → no AI calls during compilation

🧩 Architecture

ContextCompiler is structured as a layered system:

ContextCompiler (this package) ↓ ContextCompiler.Core ↓ ContextCompiler.Abstractions

Modules integrate through:

ContextCompiler.Modules.Abstractions ↓ ContextCompiler.Modules.*


📦 Installation

dotnet add package ContextCompiler


⚡ Quick start

using ContextCompiler;

var compiler = ContextCompilerBuilder .Create() .AddDefaultModules() .Build();

await compiler.RunAsync("input-directory");


🧠 Core concepts

Reasoning IR

A canonical, immutable representation of the compiled context.


Evidence system

Each fragment is identified by:

  • EK (EvidenceKey) → stable identifier
  • ER (EvidenceRevision) → content-based revision

Context Views

Deterministic projections of the IR for specific purposes:

  • risk
  • spec
  • changes

Artifacts

Typical outputs:

  • prompt.context.md
  • evidence.index.json
  • reasoning.graph.json
  • security.report.md
  • context.health.json

🔌 Modules

ContextCompiler is extended through modules.

Modules are built against:

ContextCompiler.Modules.Abstractions

Examples of module types:

  • Readers
  • Transcoders
  • Guards
  • Views
  • Templates
  • Exporters

🛠 CLI

A command-line interface is available via:

dotnet tool install -g ContextCompiler.Cli

Usage:

ctxc compile ./input


🔢 Versioning

ContextCompiler follows Semantic Versioning:

  • 0.1.0-alpha.1
  • 0.1.0-preview.1
  • 0.1.0-rc.1
  • 1.0.0

For NuGet packages:

  • avoid +build metadata
  • use suffix-based builds if needed

Example:

0.1.0-preview.1.123


  • ContextCompiler.Abstractions → core contracts (IR, evidence, pipeline)
  • ContextCompiler.Modules.Abstractions → module contracts
  • ContextCompiler.Core → runtime engine
  • ContextCompiler.Modules.* → module implementations

📄 License

Licensed under the Apache License 2.0. See LICENSE.txt.

© 2026 Guillaume Baudrit

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.0-alpha.1 82 3/22/2026