A .NET framework for building composable command surfaces.
- Define your commands once — run them as a CLI, explore them in an interactive REPL,
- host them in session-based terminals, expose them as MCP servers for AI agents,
- or drive them from automation scripts.
New here? The DeepWiki has full architecture docs, diagrams, and an AI assistant you can ask questions about the toolkit.
dotnet add package Replusing Repl;
var app = ReplApp.Create().UseDefaultInteractive();
app.Map("hello", () => "world");
return app.Run(args);using Repl;
var app = ReplApp.Create().UseDefaultInteractive();
app.Context("client", client =>
{
client.Map("list", () => new { Clients = new[] { "ACME", "Globex" } });
client.Context("{id:int}", scoped =>
{
scoped.Map("show", (int id) => new { Id = id, Name = "ACME" });
scoped.Map("remove", (int id) => Results.Cancelled($"Remove {id} cancelled."));
});
});
return app.Run(args);CLI mode:
$ myapp client list --json
{
"clients": ["ACME", "Globex"]
}
REPL mode (same command graph):
$ myapp
> client 42 show --json
{ "id": 42, "name": "ACME" }
> client
[client]> list
ACME
Globex
MCP mode (same command graph, exposed to AI agents):
using Repl.Mcp;
app.UseMcpServer(); // add one line{ "command": "myapp", "args": ["mcp", "serve"] }One command graph. CLI, REPL, remote sessions, and AI agents — all from the same code.
Repl is the meta-package that bundles Core + Defaults + Protocol — start here.
Progressive learning path — each sample builds on the previous:
- Core Basics — routing, constraints, help, output modes
- Scoped Contacts — dynamic scoping,
..navigation - Modular Ops — composable modules, generic CRUD
- Interactive Ops — prompts, progress, timeouts, cancellation
- Hosting Remote — WebSocket / Telnet session hosting
- Testing — multi-session typed assertions
- Spectre — Spectre.Console renderables, visualizations, rich prompts
- MCP Server — expose commands as MCP tools for AI agents
| Architecture blueprint | Best practices |
| Comparison & migration | Publishing & deployment |
| Glossary | Interactive docs & AI Q&A |
Contributions welcome — please discuss new features first to keep the toolkit aligned with its goals.
See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md.
MIT — Copyright (c) 2026 Yllibed project / Carl de Billy