Skip to content

About

Drive your home Mac's Oh My Pi coding agent from your phone: Telegram bot + web UI + desktop shell. Local-first, loopback-bound, fail-closed approvals.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Specify Remote OMP

Stop tab-switching. Your coding agent, your code sessions, your notes, a terminal, and the page you are debugging, in one local app you can also reach from your phone.

Specify Remote OMP ("Romp" = Remote OMP) is an agent-native development workspace built on Oh My Pi (github.com/can1357/oh-my-pi). It runs as a small daemon on your Mac that embeds your existing OMP coding agent in process and wraps it in a single workspace that collapses the inner dev loop: the agent session and transcript, a knowledge base, an in-app terminal, a dev-loop browser pointed at the thing you are building, and project provisioning. One app instead of a browser, a terminal, an editor, and a notes app open side by side.

It reuses your existing ~/.omp/agent (your auth, models, and saved sessions), so if omp already works in your terminal, you are ready.

The bet

Modern development is death by context-switch: code in the editor, the app in a browser tab, logs in a terminal, notes in Notion or Obsidian, and an agent in a fifth window stitching them together by copy-paste. The agent is the natural center of that loop, so the loop should live around the agent in one place:

  • No MCP bridge into Notion or Obsidian for notes. Knowledge is a first-class subsystem the agent can read and write directly.
  • No config-file dance to install skills. Skills, prompts, notes, and memory are managed in the app and surfaced to the agent.
  • No separate browser window for the app you are building. A dev-loop browser tab sits next to the code, and the agent can see the page.
  • A terminal in the app, not a separate window.

The headline goal is the closed loop: agent + code + the page the code renders, where the agent can drive the browser, see what broke, and fix it. Today the agent can navigate, screenshot, and pick elements in the dev-loop browser; feeding the page's console and network back into the agent is the next step on that loop (see Status).

What's in the workspace

  • Agent sessions. Attach to a saved session or start a new one; the transcript streams live with tool cards, real diffs, inline images, todos, and sub-agents rendered inline. The composer has a model selector, file and knowledge attachments, and voice input.
  • Knowledge. Notes, prompts, skills, and memory in one searchable store. The agent can author notes, save prompts, write skills, and propose memories (which you approve). Memories are injected into the agent's context; skills are loaded on demand.
  • In-app terminal. A real shell (native PTY) with tabs, in a toggleable tray.
  • Dev-loop browser. A browser tab for localhost, your staging URL, or your docs, with the agent able to navigate, screenshot, and pick elements. This is not a daily-driver browser; it is the pane where "the agent and the thing it is building" meet. Desktop app only.
  • Projects. Save reusable project configs (repos plus setup commands), provision a fresh workspace from one, or have the agent build a project config with you interactively.
  • Providers and usage. See and (optionally) manage your model-provider credentials and track usage. Speech: text-to-speech for replies and voice-to-text for prompts.

Run it locally

Specify Remote OMP is primarily a local app on your Mac. Run it as a desktop app or as a headless service.

bun install                       # daemon deps (@oh-my-pi/pi-coding-agent, grammY)
cd web && bun install && cd ..    # web UI deps
cp .env.example .env              # set TELEGRAM_BOT_TOKEN (see note below)
chmod 600 .env
bun run start                     # start the daemon; open http://127.0.0.1:8788

The full walkthrough is in docs/SETUP.md. Two ways to run:

  • Desktop app. bun run build:binary compiles the daemon to dist/romp-daemon; the Electron shell packages it plus the web UI into a signed app. The dev-loop browser is desktop-only.
  • Headless service. scripts/install-agent.sh installs a launchd LaunchAgent that stays up across logouts and restarts. See docs/DEPLOYMENT.md.

Config note: the only hard-required value is TELEGRAM_BOT_TOKEN (the daemon currently refuses to start without it, even if you only use the web app). The web cookie secret auto-generates and everything else in .env.example is optional with sane defaults.

Reach it from your phone

Remote access is a first-class feature, and there are two ways to do it.

Recommended: the mobile app over Tailscale

The web UI is an installable PWA. Add it to your home screen and reach it over Tailscale, and your phone gets the full workspace: live transcript, one-tap approvals, the in-app terminal, knowledge, projects, and voice in and out. This is the recommended remote path. Setup is in docs/TAILSCALE.md, which explains what Tailscale is, why it is needed, and how to keep it private.

Why Tailscale: the daemon binds to loopback only and listens on no public port. Tailscale is a private, device-authenticated, end-to-end-encrypted mesh VPN (a "tailnet"). It gives your phone a private path to your Mac with no port-forwarding and no public exposure. Use tailscale serve (private tailnet) and never tailscale funnel (which publishes to the internet).

Lighter option: the Telegram bot

A Telegram bot is a text-only remote control: list, attach, start, fork sessions; send prompts; approve or deny tool calls; switch models; abort; check status. No terminal, dev-loop browser, knowledge, or project provisioning. It is handy for a quick check-in, but the mobile app over Tailscale is better for real work (full UI, richer approvals, a private encrypted path). Setup is in docs/TELEGRAM.md.

Security

Specify Remote OMP is built to fail closed. Full details in docs/SECURITY.md.

  • Permission modes. Full Permission by default (runs tools without prompting, like OMP); switch a session to Ask mode to approve writes and commands. Read-only actions always run.
  • Allowlists and pairing. Telegram is gated by a numeric-id allowlist (an empty list denies everyone). The web UI pairs to a signed cookie and a one-time WebSocket ticket.
  • Loopback-only binds. The control port and the web port listen on 127.0.0.1 only; you reach them remotely through Tailscale, never the public internet.
  • Redaction and audit. Secrets are masked in logs and cards; every remote action is appended to a 0600 daily audit log with the user, session, and outcome.
  • Rate limits per user plus a global cap on concurrent runs; provider-credential writes are off by default and individually approved.

Dev-loop browser: a page loaded in the in-app browser cannot reach the local control socket. The daemon's loopback-trust is gated by Origin (a dev-loop page has a different origin than the SPA), and the desktop blocks the browser partition from the daemon ports. As defense in depth, still use it for pages you trust (localhost, your own staging, your own docs). See docs/SECURITY.md.

How it is built

A Bun + TypeScript daemon embeds the Oh My Pi SDK in process; that is the single authoritative control lane. A separate, lower-privilege lane reads a SQLite projection of session data for the UI and never touches the runtime. Sessions are owned in SQLite (the durable source of truth) and mirrored to JSONL under your OMP agent dir for omp CLI interop. One daemon serves three clients: the Telegram bot, the loopback web SPA/PWA, and the Electron desktop shell. Architecture detail is in docs/ARCHITECTURE.md.

Status

The local workspace (sessions, knowledge, terminal, projects, providers, speech) and both remote paths (PWA over Tailscale, Telegram) are working. The dev-loop browser ships in the desktop app with agent-driven navigation, screenshots, and element picking; feeding the page's console and network back into the agent is in progress.

Verify

bun run typecheck                 # daemon types
bun test                          # config, approvals, redaction, rate limit, sessions, ...
cd web && bun run typecheck && bun run build

Documentation

Built on Oh My Pi

This project would not exist without Oh My Pi by Can Boluk (github.com/can1357/oh-my-pi). Specify Remote OMP is a workspace around the OMP agent, not a fork of it; it depends on the official @oh-my-pi/pi-coding-agent SDK and reuses your local OMP install.

License

MIT, Torrey Smith.

About

Drive your home Mac's Oh My Pi coding agent from your phone: Telegram bot + web UI + desktop shell. Local-first, loopback-bound, fail-closed approvals.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages