Skip to content

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.

  • Pi’s command line: run pisharp as you would run pi. The same flags, print and JSON modes, RPC, and the install, update, config, auth and mcp commands.
  • Pi’s files: settings, credentials, MCP servers, AGENTS.md, skills, prompt templates, themes and sessions, all in ~/.pi/agent and .pi, shared with Pi.
  • Providers: every chat API Pi has, every provider in Pi’s catalogs, and /login for 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, codemode and tool_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.

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-durable v1.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 update can run your own update command, and /share can 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.

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.

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.

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.