Ecosystem
MonadicSharp is a family of focused packages. Start with the core, add only what you need.
Packages
MonadicSharp (core)
The foundation. All other packages depend on it.
dotnet add package MonadicSharpIncludes: Result<T>, Option<T>, Either<L,R>, Error, Try, Unit, PipelineBuilder, functional extensions.
MonadicSharp.Framework (meta-package)
Installs all packages above in one command. Enterprise-grade AI agent infrastructure for .NET.
dotnet add package MonadicSharp.FrameworkPrefer individual packages
Only install what you use. MonadicSharp.Framework is convenient for new projects; individual packages keep existing ones lean.
MonadicSharp.AI
Typed errors for LLM operations. Retry with exponential backoff. Agent result tracing.
dotnet add package MonadicSharp.AIKey types: AgentResult<T>, AiError, RetryResult<T>, StreamResult.
MonadicSharp.Recovery
Self-healing pipelines — Railway-Oriented error recovery with RescueAsync and StartFixBranchAsync.
dotnet add package MonadicSharp.RecoveryKey types: RescueAsync, StartFixBranchAsync, IRecoveryTelemetry.
MonadicSharp.Azure
Railway-Oriented Programming for the Azure ecosystem — every SDK call wrapped in Result<T>.
dotnet add package MonadicSharp.AzureCovers: Cosmos DB, Service Bus, Blob Storage, Key Vault, Azure OpenAI, Azure Functions.
MonadicSharp.DI
Lightweight functional mediator for .NET — CQRS aligned with MonadicSharp primitives.
dotnet add package MonadicSharp.DIKey types: IQueryHandler<Q,T>, ICommandHandler<C,T>, IPipelineBehavior<R,T>, INotification.
Tooling
MonadicLeaf
Static analysis and Green Score for MonadicSharp codebases. Ensures AI-generated C# code doesn't break in production.
dotnet add package MonadicLeaf.AnalyzersIncludes: Roslyn analyzers (GC001–GC010), CLI tool, CI integration.
MonadicSharp × OpenCode
Structural guarantee that AI-generated C# code does not break in production — integrated directly into OpenCode.
Commands: /forge-analyze, /green-check, /migrate.
AgentScope
AI agent observability platform for .NET — see every agent, trace every pipeline, catch every failure.
Key features: Pipeline Tracing, Metrics Dashboard, Circuit Breakers, Alerts.
Dependency graph
MonadicSharp (core)
├── MonadicSharp.Framework (meta-package)
├── MonadicSharp.AI
│ └── MonadicSharp.Recovery
├── MonadicSharp.Azure
├── MonadicSharp.DI
└── Tooling
├── MonadicLeaf (analyzers)
├── MonadicSharp-OpenCode (AI coding)
└── AgentScope (observability)Templates
Scaffold a new project with MonadicSharp pre-configured:
dotnet new install MonadicSharp.Templates
dotnet new monadic-api # Minimal API + Result<T> + EF Core
dotnet new monadic-clean # Clean Architecture + CQRS