AI Coding Agent for the Terminal

Hash-anchored edits, optimized tool harness, LSP, Python, browser, subagents, and more

Oh My Pi Hero
5,555
Stars
459
Forks
32
Built-in Tools
40+
Providers

Install Oh My Pi

macOS & Linux

curl -fsSL https://omp.sh/install | sh

Bun (Recommended)

bun install -g @oh-my-pi/pi-coding-agent

Windows (PowerShell)

irm https://omp.sh/install.ps1 | iex

Pinned Versions (mise)

mise use -g github:can1357/oh-my-pi

Every Tool, Benchmaxxed

Code Execution with Tool-Calling

Runs persistent Python and Bun workers with loopback bridge between kernels

Code Execution Demo

LSP Wired into Every Write

Ask for rename and get rename with workspace/willRenameFiles integration

LSP Integration

Real Debugger Integration

Attaches lldb, dlv, or debugpy to native binaries and live processes

Debugger Integration

Time-Traveling Stream Rules

Regex match aborts stream, injects rule as system reminder, retries from same point

Stream Rules

First-Class Subagents

Split jobs across workers with typed results back, no prose parsing needed

Subagents

Web Search with Structured Content

Arxiv PDFs, GitHub pages, Stack Overflow threads as structured markdown

Web Search

40+ Providers, Hundreds of Models

Anthropic
OpenAI
Google Gemini
xAI
Mistral
Groq
Cerebras
Fireworks
Together
Hugging Face
NVIDIA
OpenRouter
Ollama
LM Studio
llama.cpp
vLLM
LiteLLM
Cursor
GitHub Copilot
GitLab Duo
Kimi Code
Moonshot
MiniMax
Alibaba
Qwen Portal
Z.AI / GLM
Xiaomi MiMo
Qianfan
NanoGPT
Venice
ZenMux
OpenCode Go
OpenCode Zen

Technical Specifications

~27,000 Lines of Rust

Core engine with in-process implementations of grep, shell, AST, highlight, PTY, and more

13 LSP Operations

Complete language server protocol support for navigation, diagnostics, and code actions

27 DAP Operations

Debug adapter protocol integration with breakpoints, stepping, and variable inspection

Hashline Editing

Edit by content hash instead of line numbers, reducing output tokens by 61%

Native Performance

No fork-exec on hot path - ripgrep, glob, find all in-process on libuv pool

Four Entry Points

Interactive TUI, one-shot prompts, Node SDK, and ACP for editor integration