SuperAPI AI Directory

oh-my-pi

Fork of Pi by @can1357. A terminal-native AI coding agent with the IDE wired in: LSP, DAP debugging, Python/Bun code execution, 40+ providers, and 32 built-in tools.

Open website

About this tool

Purpose

oh-my-pi is a terminal-native AI coding agent built by Stencil Labs, and is a fork of Mario Zechner's Pi project. It plugs IDE capabilities directly into the agent: LSP language services, DAP debugging, Python/Bun code execution, and more. It is officially described as supporting 60+ model providers, 31 built-in tools, 14 LSP operations, and 28 DAP operations, with its core written in about 80,000 lines of Rust, ready to use out of the box.

Main Capabilities

  • Code execution and tool calling: Runs persistent Python and Bun workers, and both kernels can call back into the agent's own tools (read, search, task, etc.) through a loopback bridge.
  • LSP integration: Every write goes through LSP; for example, renames are handled via workspace/willRenameFiles, and re-exports, barrel files, and alias imports are updated in sync. Supports 14 operations including diagnostics, navigation, symbols, rename, and code actions.
  • A real debugger: Can attach lldb, dlv, debugpy, etc., for breakpoints, stepping, threads, stacks, and variable inspection, supporting 28 DAP operations.
  • Flow rules and correction: Rules trigger when the model drifts, and regex matching can abort the stream midway, inject a system reminder, and retry from the same point.
  • Subagents: The task tool can fan tasks out to isolated worktrees, with each worker having its own tool surface and returning schema-validated objects. Alt+A opens Agent Hub to view each subagent's activity and usage.
  • Advisor model: Can pair an advisor model that reads the main agent's actions each turn and injects hints inline.
  • Collaboration: /collab puts the session on a relay and returns a link and QR code, and teammates can join with omp join or another terminal; /collab view provides a read-only link.
  • Web search and reading: web_search chains across 23 ranked providers, and the returned URLs can be passed directly to read, supporting Arxiv PDFs, GitHub pages, Stack Overflow, etc., and returning structured markdown with anchors.
  • NativeImplementation: ripgrep, glob, and find are linked into the process; brush serves as bash, supporting cross-invocation sessions and 58 command-line tools (ls, sed, sort, xargs, jq, etc.) running in-process, with no fork/exec. The same omp binary can run on macOS, Linux, and Windows.
  • Code review: /review generates a dedicated review subagent that scans branches, individual commits, or uncommitted changes in parallel, ranking by P0–P3 and providing confidence scores.
  • Hashline editing: edits are anchored by content hash rather than retyping lines, reducing whitespace and string-not-found issues; when editing a stale file, anchor divergence rejects the patch before damage occurs.
  • GitHub as a filesystem: PRs, issues, etc. as paths, handled directly by read, with no separate parameterized interface.
  • Memory: tools such as retain, learn, and recall; sessions are compressed into a mental model and loaded in the first turn of the next session; memory.backend can be local, Hindsight, or Mnemopi, scoped by project by default.
  • ACP: omp can run in Zed, reading and writing the current buffer, using the editor terminal; destructive tools pause for a permission prompt.
  • Configuration compatibility: can read eight existing formats (Cursor MDC, Cline .clinerules, Codex AGENTS.md, Copilot applyTo, etc.).
  • omp commit: reads the working tree via git_overview, git_file_diff, and git_hunk, splitting unrelated changes into atomic commits ordered by dependency; circular dependencies are rejected.
  • Internal schemes: sixteen internal schemes such as pr://, issue://, agent://, skill://, ssh://, etc. resolve transparently in FS-shaped tools.
  • Conflict resolution: each merge conflict becomes a URL; writing @theirs, @ours, or @base to conflict://N resolves it; for batch use conflict://*.
  • Accept after preview: ast_edit returns a proposed card and replacement count, changes are staged, and after writing a line of justification to xd://resolve the TUI turns into an Accept card and commits atomically.
  • Browser and desktop: the browser tool drives isolated Chromium or Electron tabs; the computer tool controls the real host desktop, including window enumeration, screenshots, native input, the OS accessibility tree, and the clipboard (without exposing the browser DOM).

Usage

Installation support:

  • Bun (recommended): bun ≥ 1.3.14 environment.
  • Prebuilt binaries: when no usable bun is available or --binary is used, the install script fetches a prebuilt binary from build.stencil.so and verifies its SHA-256. Pinned-version command:line of justification, the TUI turns into an Accept card and commits atomically.
  • Browser and desktop: the browser tool drives isolated Chromium or Electron tabs; the computer tool controls the real host desktop, including window enumeration, screenshots, native input, the OS accessibility tree, and the clipboard (without exposing the browser DOM).
  • Prompt control: the three lowercase keywords ultrathink, orchestrate, and workflowz can trigger dedicated behaviors (only in body text, not in positions such as code blocks).
  • Session control: /vibe enters Vibe mode, /fresh resets the provider stream state.

Usage

Installation support:

  • Bun (recommended): bun ≥ 1.3.14 environment.
  • Prebuilt binaries: when no usable bun is available or --binary is used, the install script fetches a prebuilt binary from build.stencil.so and verifies its SHA-256. Pinned-version command:curl -fsSL https://omp.sh/install | sh -s -- --binary --ref v<version>(PowerShell:-Binary -Ref v<version>).
  • Alpine / musl: requires installing first apk add libstdc++ libgcc.
  • Nix Flake: can use packages.<system>.omp, overlays.default, nixosModules.default, or homeManagerModules.default.
  • Windows (PowerShell), mise pinned versions, and other methods.
  • Shell completion: omp generates bash, zsh, and fish completion scripts from live command/flag metadata.

The toolset can be pinned with --tools read,edit,bash,…; rarely used discoverable tools live behind the xd:// device, and when tools.xdev is enabled they can be listed via read xd:// and run via write xd://<tool>.

Some tools are disabled by default: github, security_scan, generate_image, tts, checkpoint, rewind, and memory tools (retain/recall/reflect/memory_edit, depending on memory.backend).

The repository is open for PRs during a trial period; previously a guarantee was required, and that requirement is currently temporarily waived.

Use cases

Suitable for programming tasks in the terminal that require IDE-level code intelligence, real debugging, multi-subagent collaboration, code review, GitHub operations, and cross-session memory; it can also be driven inside the Zed editor, or used for real-time collaboration with other members via /collab.

Limitations

The official text does not provide specific charging or pricing information, so it is not available for now. The complete list of supported model providers, the system requirements for each feature, and details of platform differences are not listed one by one in the official text.