shep

oh-my-pi (omp)

A batteries-included terminal coding agent: a fork of Mario Zechner’s Pi with a full-screen TUI, about 80k lines of Rust natives, first-class subagents, and a live “Agent Hub” to steer them.

   
GitHub github.com/can1357/oh-my-pi
Tagline “A coding agent with the IDE wired in.”
Type Terminal agent (TypeScript on Bun + Rust N-API addon), SDK, RPC and ACP
Pricing Free. Bring your own keys or subscriptions (60+ providers)
License MIT (vendored brush-core and parts of pi-builtins keep their own)

Researched against can1357/oh-my-pi@0b5c27a (2026-10-22) and Shep main@a729150 (v1.247.0).


What It Is

omp is a single agent harness: it owns the model loop, the tools (read, edit, bash, lsp, debug, task, ask, 
) and the transcript. Shep is the other kind of product: it orchestrates agent CLIs it does not own (Claude Code, Codex, Cursor, 
) through a feature lifecycle, many features at a time, each in its own worktree.

That difference decides what transfers. omp’s tool internals (hashline edits, LSP-on-write, a DAP debugger, in-process ripgrep, the embedded bash) live inside an agent, where Shep’s executors already have their own. What transfers is the terminal surface omp built for watching and steering many agents at once, plus a handful of lifecycle ideas.

Key Features


How Shep Compares

  omp Shep
Unit of work A session (one agent plus subagents) A feature moving through a lifecycle
Owns the agent loop Yes No (wraps agent CLIs via IAgentExecutorProvider)
Terminal UI Full-screen TUI, the primary surface Commander commands + @inquirer wizards only
Live multi-agent view Agent Hub, pinned jump list, omp ps Web only (control center, SDLC board)
Steer a running agent Focus in Hub and type Web chat for interactive sessions; gates for feature runs
Plan / PRD gate Overlay with section annotations @inquirer wizard (plan/merge are placeholders)
Code review output P0–P3, confidence, verdict ReviewComment has path, line, body; no priority
Workspace isolation CoW clones (APFS, btrfs, ZFS, overlayfs), worktree fallback git worktree + dependency install
Usage dashboard omp stats (tokens/s, cache rate, TTFT, errors) shep usage (p50/p95, tokens, cost) + web
Shell completions Generated from live command metadata None
Runtime Bun + Rust addon Node ≄22 + pnpm

What We Respect

omp treats the terminal as a real application surface rather than a log. The Agent Hub solves the exact problem Shep’s terminal users have: many agents are running, which one needs me? The UI is keyboard-first, every binding is remappable, and every overlay degrades on narrow terminals.

Where Shep Differs

omp is a better single-session coding agent. Shep runs a whole lifecycle across many features, repos and agent providers. Today, though, a Shep user who lives in the terminal gets print-and-exit commands and has to open the web UI to see anything live.


The Library Question: Can We Reuse omp’s TUI Code?

Not directly. Its upstream can be used.

@oh-my-pi/pi-tui cannot run under Node, so Shep cannot depend on it or vendor it whole:

Its upstream, @mariozechner/pi-tui (Pi, by the original author), is the usable version of the same design. It is MIT, declares engines.node >= 20, and ships compiled dist/. Its dependencies are only chalk, marked, mime-types and get-east-asian-width, plus optional koffi. Version 0.73.1 has no Bun references in dist/. A spike rendered Text, Markdown and a focused SelectList correctly under Node 22.22 in a real PTY.

It provides TUI/Container with differential rendering, synchronized output, overlays with anchors and percentage sizing, Editor (multi-line, autocomplete, kill ring), Input, SelectList, SettingsList, Markdown, Loader/CancellableLoader, Box, Image (Kitty, iTerm2), KeybindingsManager, Kitty keyboard protocol and StdinBuffer.

Recommendation

Option Fit for Shep Notes
@mariozechner/pi-tui (recommended starting point) Good Node-native, small, the same component model omp grew from. Inline rendering keeps scrollback, which suits a chat or attach view. Port individual omp widgets (Hub roster, plan overlay, ask dialog) on top of it.
Ink (React for CLIs) Good Flexbox layout suits a multi-pane dashboard, and the team already writes React. Ink 8 needs React ≄19.3; Shep pins ^19.2.4. No ready-made markdown, editor or overlay system at pi-tui’s level.
@oh-my-pi/pi-tui Not viable Bun-only, needs Rust addon, entangled with omp’s agent packages.

Decide between the first two with a one-week spike of the feature console (below) in both. Pure-TS pieces worth lifting from omp regardless, keeping its MIT notice and OpenTUI’s notice where present: stdin-buffer.ts, mouse.ts (SGR parsing), the overlay anchor/sizing logic, and the theme and keybinding schemas.


What Shep Should Take (TUI)

Ordered by value to a Shep user. All of it lives in src/presentation/tui/ and reaches data only through use cases (code-quality.md).

1. A feature console modelled on Agent Hub (highest value)

omp: Alt+A opens a roster of agents with status, cost, tokens and age. t switches between a flat and a tree view, / filters, and Tab opens an inspector. An activity log has its own filters. Enter focuses an agent: its transcript and composer take over the screen, and typing steers it. x kills it, r revives it. (tui/src/overlays/agent-hub.ts, 2580 LoC; docs/agent-hub.md.)

Shep: shep (or shep tui) opens a console where each row is a feature:

Already in core:

Need Use case or port
Live updates StreamAgentEventsUseCase (async generator: status, phase, PR, question, supervisor and message deltas)
Lists ListFeaturesUseCase, GetFleetOverviewUseCase, ListAgentQuestionInboxUseCase
Actions StopAgentRunUseCase, ResumeFeatureUseCase, ApproveAgentRunUseCase / RejectAgentRunUseCase
Usage GetUsageStatsUseCase

Design decision to make first: the interactive chat service is an in-memory singleton inside the web daemon. Database-backed views can call use cases in-process. Attach and steer must talk to the running daemon instead, either over its existing HTTP/SSE routes or over a small typed protocol that both the web UI and the TUI consume. omp’s rpc-ui mode (docs/rpc.md) is a good reference for the second option.

2. Pinned “needs you” strip and a per-feature status line

omp keeps a compact list of live agents above the editor and a status line with segments for model, cost, tokens, context %, git, PR and running-subagent count (tui/src/status-line/). For Shep:

Context % is not tracked anywhere in Shep yet. Only the model descriptor’s contextLength exists.

3. Gate overlays: plan/PRD review and the question form

4. Diff review with line comments

/annotate opens a diff and lets the user pin comments to lines, then sends them to the agent as one feedback prompt (annotation-overlay.ts). In Shep this is the terminal form of the merge-review tab: browse a feature’s diff (feat diff today is text only), comment on lines, and send the comments through the existing reject-with-feedback / address-comments flow.

5. Attach view: a streaming transcript of one agent

omp renders tool calls as collapsible cards with inline diffs, streaming bash output and hidden thinking (tool-card.ts, chrome/diff.ts). Shep’s web chat already normalizes executor output into StreamChunk (delta, activity, interaction, turn status). Rendering those chunks in the terminal gives shep feat attach <id>, with the same steer, stop and answer actions as the web chat. Background LangGraph runs cannot take free-form messages mid-run; for them the attach view is a richer feat logs -f.

6. shep ps: a process monitor

omp ps (apps/ps-top.ts, 862 LoC) is a btop-style table: j/k to select, l logs, s stop, x kill, r restart. Shep has the same objects spread over agent ls, dev status, status --logs and ~/.shep/logs: agent workers, dev servers and the daemon. One live table replaces four commands.

7. Smaller, cheap wins


Worth Taking Beyond the TUI

What Shep Should Not Take


Suggested Sequence

Each step starts with /shep-kit:new-feature.

  1. Shell completions and terminal notifications. Small, independent, and useful now.
  2. TUI foundation spike. Choose pi-tui or Ink by building the feature console’s roster read-only on StreamAgentEventsUseCase. Decide the daemon protocol for attach and steer. Rewrite docs/tui/architecture.md, which currently defines the TUI as wizards only.
  3. Feature console: roster, inspector, actions, needs-you strip.
  4. Gate overlays: plan/PRD review with annotations, and the question form on the Decision type.
  5. Attach view and diff review with line comments.
  6. shep ps, feature picker, keybindings file.

In parallel, outside the TUI: CoW dependency seeding, the review priority schema, and the omp ACP agent row.

Licensing

omp is MIT (© 2025 Mario Zechner, © 2025–2026 Can BölĂŒk, © 2026 Stencil Labs). Any copied file keeps that notice. tui/src/stdin-buffer.ts and keys.ts also credit OpenTUI (MIT), which must be kept. crates/vendor/brush-core and parts of crates/pi-builtins are under other licenses: see THIRD-PARTY-NOTICES.txt before taking anything from the Rust side. @mariozechner/pi-tui is MIT.


Sources: GitHub, omp.sh, pi-mono, docs/agent-hub.md, docs/tui-core-renderer.md, docs/rpc.md, packages/tui/src, npm metadata for @oh-my-pi/pi-tui and @mariozechner/pi-tui.