Open Source
Explore the latest AI open-source projects from GitHub and HuggingFace.
Explore the latest AI open-source projects from GitHub and HuggingFace.
As AI coding agents proliferate, a common frustration among developers is that most tools are monolithic: to customize them, you must fork the entire codebase and maintain your own divergent version. Pi-mono, created by Mario Zechner (a.k.a. badlogic), takes a fundamentally different approach. Released as an open-source monorepo under the MIT license, pi-mono has attracted over 33,800 GitHub stars by prioritizing modularity, extensibility, and a philosophy that puts the developer's workflow first — not the other way around.
At its core, pi-mono is a suite of seven interconnected npm packages that together provide everything needed to build, deploy, and interact with AI agents: a polished terminal coding agent, a unified LLM API layer, TUI and web UI components, a Slack integration, and GPU pod management utilities. It is one of the few open-source projects that treats the full AI agent development stack as a cohesive system rather than a collection of isolated tools.
The flagship component is @mariozechner/pi-coding-agent, a minimal terminal-based coding harness. Unlike full-featured agents that ship with dozens of pre-built tools, pi starts with just four primitives: read, write, edit, and bash. This minimal footprint is intentional — users extend the agent via the package ecosystem rather than navigating a labyrinthine configuration system.
The interactive interface renders conversations, tool outputs, and notifications in a clean terminal layout. It supports multi-line input (Shift+Enter), image pasting (Ctrl+V), cost and token tracking in the footer, and a cycling mechanism for adjusting model "thinking" depth (Shift+Tab). The @ symbol references files inline, while !command executes bash commands directly from the input editor.
Session management is one of pi's most distinctive capabilities. All sessions are stored as JSONL files with a tree-based structure, enabling branching histories. Developers can fork a session at any point to explore alternative approaches, use /tree to visualize and navigate the session history, and resume previous sessions with pi -c. Context compaction automatically summarizes old messages when approaching context window limits, making long-running sessions practical.
@mariozechner/pi-ai)Rather than coupling to a single provider, pi-mono's AI layer abstracts over a wide range of providers via a unified API. Supported backends include OpenAI, Anthropic Claude, Google Gemini, Azure OpenAI, Amazon Bedrock, Mistral, Groq, Cerebras, xAI, OpenRouter, and several others. For subscription-based access, it also supports Anthropic Claude Pro/Max, OpenAI ChatGPT Plus/Pro, GitHub Copilot, and Google Gemini CLI.
Developers can switch models mid-session with /model, and the project maintains a curated list of tool-capable models updated with each release. This provider-agnostic design means teams can optimize for cost, latency, or capability without refactoring their agent logic.
The extensibility system is where pi-mono truly differentiates itself. Three mechanisms layer on top of the base agent:
/skill:name. They can be auto-loaded or triggered explicitly, making it easy to share reusable agent capabilities across projects.{{variable}} interpolation that become slash commands (e.g., /templatename). This removes repetitive prompt engineering from the interactive workflow.All of these can be packaged and distributed as Pi Packages via npm or git, installed with pi install npm:@foo/pi-tools@1.2.3. This creates a nascent ecosystem where teams can share agent capabilities as versioned, installable packages.
@mariozechner/pi-mom is a Slack bot that automatically delegates incoming messages to the coding agent — bridging communication tools directly into AI-assisted development workflows. For teams running self-hosted LLMs, @mariozechner/pi-pods provides a CLI for managing vLLM deployments on GPU pod infrastructure, making it possible to operate the entire stack from a single toolchain.
The @mariozechner/pi-tui library implements a terminal interface with incremental screen updates (differential rendering), making terminal UIs feel responsive even under heavy output. @mariozechner/pi-web-ui provides web components designed specifically for AI conversation interfaces. Both libraries are first-class citizens of the monorepo, meaning they are tested and evolved in lockstep with the agent runtime.
Pi-mono is clearly designed for developers who want control. Installation via npm is straightforward, and the four-tool default agent works out of the box with any supported provider. The /model switching and visual session tree make iterative development sessions feel more like an IDE and less like a chatbot.
The extension system's learning curve is real: writing TypeScript extensions requires familiarity with the pi-agent-core API. However, for teams that invest in this, the payoff is an agent that fits their exact workflow rather than the reverse. The session branching model in particular is a standout feature — the ability to explore divergent approaches without losing context is something most other coding agents lack entirely.
During its April 2026 OSS Weekend phase, the team is conducting deep internal refactoring, signaling the project is taking correctness and architecture seriously before adding new features.
Pros:
Cons:
Pi-mono's trajectory is compelling. With 33,800+ stars and a growing package ecosystem, it is positioned to attract developer communities that value modularity over convenience. The session sharing initiative — encouraging contributors to submit real-world coding agent sessions via pi-share-hf — points toward a future where pi-mono's behavior is refined against real-world data rather than synthetic benchmarks.
As LLM providers proliferate and teams increasingly run heterogeneous AI infrastructure (different models for different tasks), a provider-agnostic agent toolkit with a strong extension ecosystem becomes more valuable, not less. Pi-mono is building precisely that foundation.
Pi-mono is an excellent choice for development teams and power users who want an AI coding agent that genuinely adapts to their workflow. Its unified LLM API eliminates provider lock-in, the branching session model enables sophisticated iterative development, and the Skills/Extension system provides extensibility without requiring forks. It is particularly well-suited to TypeScript/Node.js developers and teams running multi-provider AI infrastructure.