Skip to content
Proyek

Tentang

PopAgent local web UI for your coding agents: watch the reasoning stream, cut in with a correction mid-turn, manage models and tools. Works with pi, Codex, Claude Code, OpenCode and DSH. Sessions stay the engine's own files — no database, no account.

Alat pengembangan

Cara angka ini diukur

165 bintang2 Fork +1 dalam 24 jam

Pertumbuhan bintang terukur

dalam 24 jam
+1
dalam 7 hari
+14
dalam 15 hari
Mengumpulkan riwayat
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

PopAgent

version npm downloads GitHub stars node license

English · 中文 · Website · Gitee mirror


PopAgent at 127.0.0.1:9090: the session list on the left, one real turn in the middle streaming its thinking blocks, finished commands and the files it read, and the same work laid out as a task canvas on the right where finished steps read "done". Same agent as before — the process just lives in a web page now.

Download: the macOS app (.dmg) · See the UI: the website · Command line:

npm -g install pop-agent

What it is: a front end that lays an agent's process open — thinking blocks, tool calls, changed files, tokens and cost all sit in the conversation, and you can cut in mid-turn. Above the composer sit templates, quick commands and Think, so how you ask is clickable too.

What it isn't: not another agent engine, and not a SaaS that moves your sessions to the cloud. It doesn't rewrite prompts or take over tool implementations — it gives the engines you already installed a readable UI, clickable buttons and a session list that stays on disk. Three hard rules:

Rule Meaning
01 No database Sessions are the engine's own JSONL / threads. The web UI reads them, renames them, deletes them when needed
02 No faking Capabilities an engine lacks are hidden in the UI (capability matrix); a panel that can't get data says so instead of borrowing another engine's config
03 No overreach Loopback only by default (127.0.0.1); remote access means an explicit -H 0.0.0.0 and a password set on the machine first

The typing side: templates, quick commands, Think

The row above the composer makes “how do I even ask this” clickable (server-side, one copy for desktop and phone).

  • Templates: 12 built-ins; click one into the composer (not sent). Not sure how to phrase it — “AI write it” finishes the prompt.
  • Quick commands: click to send, Shift+click to only fill the box.
  • Think: a hidden turn returns 1–5 “say this next” lines; click to send, never in history.

Six things most agent front-ends never bother with

Voice, scheduling, computer control, canvas, push and remote access all live in the same process — not six bolted-on tools: they share the same sessions, the same workspace and the same approval rules.

① Live voice: speak and it types along; it reads its answer back

Voice panel: four event cues and local TTS settings

  • Talk instead of typing: the mic in the composer starts listening on the first tap and text lands in the box word by word — not one blob at the end. Tap = keep listening (tap again to stop); hold = push-to-talk, release to send.
  • It reads the answer back: TTS plays the final reply with adjustable speed and voice, plus pause / resume / stop; start / end / error / waiting-for-approval each have their own cue, previewable, with their own volume.
  • Offline by default: recognition prefers macOS local (SFSpeechRecognizer) and speech uses the system voice — nothing leaves the machine, no network, no cost. Want one consistent voice? Switch to edge (Microsoft) or your own kokoro / qwen3.

② Scheduled tasks: say it once, it runs every morning

Scheduled tasks panel: task list, cron expression and next run

  • A task = a prompt + a five-field cron expression + a timezone. A text task goes straight to the model and never touches the repo; an agent task runs a real turn in the workspace (reads files, runs commands, edits code).
  • You can create one in chat: say "check this repo every morning at 9" and the agent fills in the name, workspace and timezone itself.
  • Unattended means unattended: nobody is there to click an approval box at 3am, so writes are denied by default unless you tick "allow file changes" on the task; past the watchdog limit the turn is interrupted and recorded as failed — a half answer is never reported as success.

③ Computer control: the agent actually drives your Mac

Computer control panel: helper status and system permissions

  • Not screenshot-and-guess: it reads the macOS accessibility (AX) element tree and clicks by element id, so clicks land and the meaning is known.
  • Click, type / set values / paste (long text goes through the clipboard and your previous clipboard is restored), send shortcuts, scroll, drag in steps, run menu paths — waiting for the UI to settle between steps.
  • Password fields are never filled in for you; system authentication and apps protected by System Settings stay off-limits. The master switch is the skill itself, so any engine with bash can drive the Mac, not just pi.

④ Canvas: draw "what happens next" as a graph

Ask for a plan in chat and the right pane lays it out as 7 nodes and 7 dependencies, each node one concrete action with its own note and its own status. The point: steps that are hard to say in prose become a graph you can check.

  • Describe something that takes many steps and the agent lays it out as nodes plus dependency edges on the right; nodes carry kinds (task / milestone / risk / decision / doc), so it is obvious which step may blow up and which one needs your call.
  • It is interactive: mark a step running when you start it, done when you finish — progress is drawn on the graph, not just in chat.
  • It drills down: sub-plans absorb the detail and keep the main graph readable. Layout is computed by the host from the dependency graph, so the model never worries about coordinates.

⑤ Push to your phone: it buzzes when a turn ends

Push panel: subscription state and multiple devices

  • One push per finished turn: the title is the project, the body is the session, failures get ❌ and interruptions ⏹.
  • Web Push (VAPID) with no third-party service; keys are generated on first start. Multiple devices, test push, clear all.
  • Registered does not mean notified: each device has a “Default push” checkbox — only checked devices receive automatic notifications such as finished turns; unchecked ones stay listed and still work with “Push to this one”.
  • Add it to your phone's home screen and it behaves like an app (PWA); tapping the notification opens that session.

⑥ Remote access: keep working from your phone, elsewhere

Settings → Remote: access password, login protection and login activity

  • pop-agent -H 0.0.0.0 and you can open it from a phone or another computer; the password must be set on the machine itself (remote clients may not create one — otherwise whoever finds the port first takes over).
  • Login protection: three wrong passwords from the same origin pause logins for 30 minutes (count and window are tunable); while paused the password is not even compared, and restarting the service does not unlock it.
  • The phone really gets a phone layout: the sidebar becomes a drawer, the top bar keeps icons only, the composer goes to 18px so iOS does not zoom, the right pane becomes a full-screen second page.

The same workbench on a phone: single column, icon-only top bar, 18px composer so iOS doesn't zoom, project sidebar collapsed into a drawer. The point: the same session, away from the desk.


Multiple engines: each runs its own native loop

An engine is not "the same prompt in a different skin": each is wired to its own official loop, and capability differences hide buttons in the UI.

Engine How it's wired Notes
pi (default) native SDK full plugin / skill ecosystem, lazy tool loading, approval gate, subagents, native steering; models and providers are managed by this workbench
Codex app-server (JSON-RPC) its own loop and sandbox; sessions shared with Codex Desktop / CLI; approvals are command- and file-level
DeepSeek Harness ACP model and reasoning level switchable, permissions confirmed per call
opencode ACP brings its own tools / MCP / plugins, sessions shared with the opencode CLI / TUI; approvals follow opencode's own permission config
Claude Code ACP (claude-code-acp adapter) models switchable, tools confirmed per call, sessions shared with the claude CLI; this ACP surface exposes neither reasoning levels nor subagents

Capability differences (server/engine/registry.ts; the UI hides buttons accordingly):

Capability pi codex dsh opencode claude
Approvals ✅ ✅ ✅ per config ✅
Model / reasoning level ✅ ✅ ✅ ✅ model only / no levels
Resume past sessions ✅ ✅ ✅ ✅ ✅
Steering ✅ native ✅ stop-and-resend ✅ stop-and-resend ✅ stop-and-resend ✅ stop-and-resend
Subagent panel ✅ — — — —
Workbench-managed providers ✅ — — — —
Side chat (in memory) ✅ — — — —

Models / plugins / MCP follow the current engine: switch to Codex and the panels read Codex's own things; claude reads ~/.claude.json and ~/.claude/settings.json; opencode reads opencode.json. A panel that isn't wired says so instead of borrowing pi's config. The engine is switched in the bottom status bar, and each session remembers its own engine, model and thinking level.


Install

macOS (Apple Silicon) → download the .dmg and drag it into Applications. No Node, no terminal: the runtime ships inside the app.

Other platforms / prefer a CLI → npm -g install pop-agent (needs Node ≥ 22.19). It exposes two equivalent commands: pop-agent and pop. On Linux the embedded terminal compiles node-pty in place, which needs make / g++ / python3.

Rather not touch the global npm (installs into ~/.pop-agent, no sudo):

# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/duzhenxun/pop-agent/main/scripts/install.sh | sh

# Windows (PowerShell)
powershell -c "irm https://raw.githubusercontent.com/duzhenxun/pop-agent/main/scripts/install.ps1 | iex"
First launch blocked by macOS?

The packages only carry an ad-hoc signature added at build time, not an Apple Developer signature, so the two prompts map to two fixes:

  • "Cannot be opened because the developer cannot be verified" → Right-click → Open once; on macOS 15 and later you can also allow it under System Settings → Privacy & Security → "Open Anyway".

  • "is damaged and can't be opened. You should move it to the Trash" → don't trash it, it isn't broken — the signature and the resources disagree. Run these two:

    codesign --force --deep --sign - /Applications/PopAgent.app
    xattr -dr com.apple.quarantine /Applications/PopAgent.app
    

Commands

Command What it does
pop-agent Start (default): runs in the foreground, opens the browser, Ctrl-C to quit; the default workspace is the current directory
pop-agent start -d Run detached (logs go to daemon.log)
pop-agent status pid / port / uptime / engine / session count / workspace
pop-agent restart / stop Stop then start (-d to detach) / stop the running instance
pop-agent upgrade Upgrade to the latest release
pop-agent                              # foreground + open the page (the usual case)
pop-agent -d                           # detached, terminal comes right back
pop-agent -p 9191                      # different port
pop-agent -H 0.0.0.0                   # reachable on the LAN / internet (password first)
pop-agent -H 0.0.0.0 -P 'my-pass'      # start with the password included
POP_AGENT_CWD=~/code/my-proj pop-agent # pick the default workspace

Reaching it from a phone or another computer: set the password on that machine first (Settings → Remote, or open /setup, or -P at startup). After that, LAN IP, public IP and domain all work with the password — no allow-list needed. If no password is set, remote clients only see "set it on the machine first", because otherwise whoever scans the port first takes over.

Every flag and environment variable, plus each engine's escape hatches: see the reference · Flags.


More

The README stops here on purpose; everything else lives in the docs:

Want to know Where
Install details, every flag, every panel, shortcuts, architecture, where data lives, the security model, development and troubleshooting Reference
The website (UI tour, a screenshot per capability) https://pop.xs25.cn/ · 中文
Screenshots (uncompressed originals) docs/screenshots/
Architecture decision records docs/adr/
Remote access and the security model Reference · Security model

Thanks

Upstream projects — this workbench stands on these node packages:

  • engine & protocol: @earendil-works/pi-ai, @earendil-works/pi-coding-agent, @earendil-works/pi-mcp
  • server: express, ws, web-push, node-edge-tts, node-pty (optional, for the embedded terminal)
  • UI: react / react-dom, react-markdown / remark-gfm / rehype-highlight, highlight.js, mermaid, @xterm/xterm / @xterm/addon-fit
  • tooling: vite, typescript, electron / electron-builder, playwright-core, oxlint, prettier, tsx

Thanks to my colleagues: Dou Xin, Li Huimeng, Song Hepeng, Chen Zhaoyang, Lü Qinyan, Shi Chao, Zhang Bing, Qin Zhaoyin, Wang Jichao

MIT License

Jelajahi proyek terkait

Memuat…