Repo2C4.Agent 1.1.0

dotnet tool install --global Repo2C4.Agent --version 1.1.0
                    
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 Repo2C4.Agent --version 1.1.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Repo2C4.Agent&version=1.1.0
                    
nuke :add-package Repo2C4.Agent --version 1.1.0
                    

Repo2C4 Agent

Repo2C4 Agent is a local .NET architecture-documentation agent built with Microsoft Agent Framework. It acts as an independent client of Repo2C4.Mcp, using evidence-first analysis, bounded validation/correction and explicit human approval before protected writes.

Install

dotnet tool install --global Repo2C4.Agent
dotnet tool install --global Repo2C4.Mcp

The Agent requires .NET 10 and the Repo2C4 MCP server. LikeC4 is installed separately for validation.

Ollama example

repo2c4-agent \
  --provider ollama \
  --model YOUR_LOCAL_MODEL \
  --repository-root "/absolute/path/to/repository" \
  --goal "Document the current C1 and C2 architecture conservatively."

Without --write-destination, the Agent performs analysis/validation only and does not persist managed .c4 files.

OpenAI example

Hosted AI requires explicit consent and an environment-provided credential:

export OPENAI_API_KEY="from-your-secret-store"

repo2c4-agent \
  --provider openai \
  --model YOUR_OPENAI_MODEL \
  --allow-external-ai \
  --repository-root "/absolute/path/to/repository" \
  --goal "Document the current C1 and C2 architecture conservatively."

Protected write

Add a repository-relative destination only when you want a validated proposal to reach the local human-approval step:

repo2c4-agent \
  --provider ollama \
  --model YOUR_LOCAL_MODEL \
  --repository-root "/absolute/path/to/repository" \
  --goal "Prepare C1/C2 documentation for review." \
  --write-destination "docs/architecture"

The Agent uses the MCP write protections and Microsoft Agent Framework HITL approval before applying the immutable validated plan.

Documentation

Source and issues: https://github.com/rodri-oliveira-dev/Repo2C4

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.

This package has no dependencies.

Version Downloads Last Updated
1.1.0 44 10/2/2026
1.0.1 44 10/1/2026
1.0.0 48 10/1/2026