AngelSix.ContextMap
1.0.1
dotnet add package AngelSix.ContextMap --version 1.0.1
NuGet\Install-Package AngelSix.ContextMap -Version 1.0.1
<PackageReference Include="AngelSix.ContextMap" Version="1.0.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="AngelSix.ContextMap" Version="1.0.1" />
<PackageReference Include="AngelSix.ContextMap"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add AngelSix.ContextMap --version 1.0.1
#r "nuget: AngelSix.ContextMap, 1.0.1"
#:package AngelSix.ContextMap@1.0.1
#addin nuget:?package=AngelSix.ContextMap&version=1.0.1
#tool nuget:?package=AngelSix.ContextMap&version=1.0.1
AngelSix.ContextMap
On-build code context maps for .NET. Add the package to one project and every successful build refreshes a precomputed cheat sheet of your codebase, so cheaper or local AI models can navigate it without re-deriving the architecture.
What it does
After the project builds, it reads the already-built assemblies (no MSBuild workspace, so no project-load failures) and writes into AgentDocumentation/ContextMap/:
Structure.json— deterministic structural map: project graph, types, interface implementers, base types, and the public and internal member surface.Digest.md— a compact, names-only summary for quick orientation.
Output is deterministic and sorted, so it only changes when your code structure actually changes (no diff churn). It is fast (a few hundred milliseconds), build-only, and non-fatal: a failure never breaks your build.
Install
Add it to the project at the top of your dependency graph (the app or host project), so it runs once, after its dependencies have built:
<PackageReference Include="AngelSix.ContextMap" Version="0.1.0" PrivateAssets="all" />
That is all. The package's MSBuild targets wire up the after-build step automatically.
Configure (optional)
Set any of these in the consuming project:
| Property | Default | Meaning |
|---|---|---|
ContextMapEnabled |
true |
Master switch. |
ContextMapRunOnBuild |
true |
Run after each build (set false to only run on demand). |
ContextMapAssemblyPrefix |
first dot-segment of the assembly name | Which assemblies are "yours". |
ContextMapScanRoot |
the folder above the project | Where to find the built assemblies. |
ContextMapOutputDirectory |
<git-root>/AgentDocumentation/ContextMap |
Where the map is written. Set this in a monorepo where the git root is not the project root. |
ContextMapIncludeInternal |
true |
Include internal types and members. |
ContextMapExcludePatterns |
*.Tests;*.Test |
Assembly-name globs to skip. |
What it does not do
It does not build a call graph or write the intent layer (Subsystems.md); those are heavier, on-demand steps handled separately. This package is the fast, every-build structural layer only.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.