Overview
PiSharp is an independent native .NET implementation of the Pi coding agent. It targets .NET 10. The agent itself runs without Node; Node is only needed for TypeScript extensions.
The published PiSharp 1.6.0 release follows Pi v1.6.0 and Pi Durable 1.6.0, pinned to faac5858. Source, hosted and package validation retain explicit limitations; matching the version does not claim complete parity. See How versions work and the 1.6.0 release notes.
What’s included
Section titled “What’s included”- Pi’s command line: run
pisharpas you would runpi. The same flags, print and JSON modes, RPC, and theinstall,update,config,authandmcpcommands. - Pi’s files: settings, credentials, MCP servers,
AGENTS.md, skills, prompt templates, themes and sessions, all in~/.pi/agentand.pi, shared with Pi. - Providers: every chat API Pi has, every provider in Pi’s catalogs, and
/loginfor each of them. Local models through a llama.cpp router. Classifier and image models too. - Tools:
read(with images),write,edit,bash,grep,find,ls,codemodeandtool_search. See Built-in tools. - Interactive mode: Pi’s terminal UI, slash commands and themes, on Windows, Linux and macOS.
- MCP: stdio and HTTP servers, OAuth, deferred and codemode exposure.
- Extensions: Pi’s TypeScript extensions and packages through the Node bridge, and native C# extensions.
- Durable sessions (experimental):
pisharp durable, a port of Pi Durable that resumes a session after a crash.
Every layer is a separate library. See the SDK for the full list.
New in 1.5.0
Section titled “New in 1.5.0”PiSharp 1.5.0 moves from Pi v1.2.0 to Pi v1.5.0, with Pi 1.3.0 and 1.4.0 in between. The changelog and the release notes describe the changes, the breaking ones first.
- Durable sessions follow
pi-durablev1.5.0. Once 1.5.0 has opened a session, PiSharp 1.2.0.x can’t continue it, and the library API changed. - Telemetry (experimental):
PiSharp.Telemetry, a new package that ports Pi’s telemetry contract. Nothing is recorded unless a host asks, and nothing is sent anywhere. - Tool arguments are validated as JSON Schema by a port of Pi’s pi-schema.
pisharp updatecan run your own update command, and/sharecan upload to Radius (sessionShareDestination).
The custom agents, media tools, service tiers and the durable device server, new in 1.2.0.2, are still PiSharp’s own and experimental.
New in 1.6.0
Section titled “New in 1.6.0”The 1.6.0 release notes cover the complete Pi 1.6.0 model catalog (43 providers, 1,853 entries), provider retry and strict-tool updates, Durable signals, parked tools, BeforeTool gates, OnYield/AfterTools hook tasks and image fitting, Chord events, named queries, lists and admission, terminal UI read-only rendering and SIGTSTP support, and the exact Pi 1.6.0 extension runtime. All 29 NuGet packages share version 1.6.0.
New in 1.5.2
Section titled “New in 1.5.2”The 1.5.2 release notes cover the Pi 1.5.2 model catalog, native provider behavior, CLI and MCP lifecycle fixes, read-only Durable recovery, Chord reload and hosting, terminal rendering, and the exact Pi 1.5.2 extension runtime.
New in 1.5.0.1
Section titled “New in 1.5.0.1”The 1.5.0.1 release adds Chord/hosting, Durable.Store, remote environments and the native daemon, Anthropic message threads, evaluation tooling and provider/tool/lifecycle corrections. Its published inventory is 29 packages, with five new experimental libraries. The Pi baseline remains 1.5.0. Release validation records the tested source and platform boundaries.
Where to go next
Section titled “Where to go next”- How PiSharp works: how the agent loop, tools, sessions, durable harness, workflows and teams fit together.
- Agent workflow patterns: recipes for approvals, tool errors, steering, crash recovery, compaction, fan-out and testing.
- Samples explorer: browse and run all 115+ offline-ready agents, durable examples, workflows and extensions, or start with a curated walkthrough.
- Quickstart: install PiSharp with
dotnet tool install -g PiSharp.Cliand run it. - Coming from Pi: what carries over and what’s different.
- Command line, Settings and Files and locations.
- Use the SDK: embed the agent, or just one layer, in your own .NET app.
- Extend PiSharp: write a C# extension, or load Pi’s TypeScript ones.
- Contribute: build from source, run the tests, and port Pi changes.
- Parity: how close PiSharp is to Pi today, and the differences that remain.