agegr/pi-webPublic

Web UI for the pi coding agent

AI summary: A local web-based UI for the Pi coding agent, offering rich session browsing, project previews, and real-time chat.

Stars
8.2K
+63 today
Forks
1.2K
Watchers
21
Open issues
7
Open PRs
8
Contributors
~166
Commits
1.2K
Branches
1
Views (30d)
7

TypeScriptMITCreated Mar 22, 2026Last push 4d agoLatest release v0.13.0+138 stars this week+926 this month

Quick answers

What is pi-web?
A local web-based UI for the Pi coding agent, offering rich session browsing, project previews, and real-time chat.
What does pi-web do?
Pi Web is a local web application that serves as an exceptionally rich graphical interface for the Pi CLI coding agent. It operates by continually reading local Pi session files and rendering them into a beautiful browser workspace, seamlessly transforming raw terminal output into highly readable Markdown. The interface enables developers to intuitively browse past sessions organized by project, interact via real-time chat, configure AI models, and actively manage agent skills. Crucially, it incorporates a comprehensive file explorer that previews project files natively within the browser, providing immense immediate context while the agent works. This completely eliminates the need to constantly switch back and forth between a terminal window and an IDE.
Who is pi-web for?
Developers and active users of the Pi coding agent who desperately want a richer, highly visual, web-based workspace rather than interacting strictly through the CLI. Users should be familiar with TypeScript development environments.
How do I get started with pi-web?
npx @agegr/pi-web@latest
How popular is pi-web on GitHub?
agegr/pi-web has 8,150 stars and 1,221 forks on GitHub, and gained 138 stars in the last 7 days.
What license does pi-web use?
agegr/pi-web is released under the MIT license.

Star history

since Jul 27, 2026
02.5K5K7.5KJul 2026Aug 2026Oct 2026Nov 2026
8.2K stars as of Nov 10, 2026. Measured daily since Jul 27, 2026; GitHub no longer exposes earlier star timestamps.

Update history

2 recorded
  • Oct 31, 2026New release v0.13.0 (previously v0.12.2).
  • Oct 17, 2026New release v0.12.2 (previously v0.10.0).

Contribution activity

commits per day, last 52 weeks
NovDecJanFebMarAprMayJunJulAugSepOctMonWedFri2025-11-02: 0 commits2025-11-03: 0 commits2025-11-04: 0 commits2025-11-05: 0 commits2025-11-06: 0 commits2025-11-07: 0 commits2025-11-08: 0 commits2025-11-09: 0 commits2025-11-10: 0 commits2025-11-11: 0 commits2025-11-12: 0 commits2025-11-13: 0 commits2025-11-14: 0 commits2025-11-15: 0 commits2025-11-16: 0 commits2025-11-17: 0 commits2025-11-18: 0 commits2025-11-19: 0 commits2025-11-20: 0 commits2025-11-21: 0 commits2025-11-22: 0 commits2025-11-23: 0 commits2025-11-24: 0 commits2025-11-25: 0 commits2025-11-26: 0 commits2025-11-27: 0 commits2025-11-28: 0 commits2025-11-29: 0 commits2025-11-30: 0 commits2025-12-01: 0 commits2025-12-02: 0 commits2025-12-03: 0 commits2025-12-04: 0 commits2025-12-05: 0 commits2025-12-06: 0 commits2025-12-07: 0 commits2025-12-08: 0 commits2025-12-09: 0 commits2025-12-10: 0 commits2025-12-11: 0 commits2025-12-12: 0 commits2025-12-13: 0 commits2025-12-14: 0 commits2025-12-15: 0 commits2025-12-16: 0 commits2025-12-17: 0 commits2025-12-18: 0 commits2025-12-19: 0 commits2025-12-20: 0 commits2025-12-21: 0 commits2025-12-22: 0 commits2025-12-23: 0 commits2025-12-24: 0 commits2025-12-25: 0 commits2025-12-26: 0 commits2025-12-27: 0 commits2025-12-28: 0 commits2025-12-29: 0 commits2025-12-30: 0 commits2025-12-31: 0 commits2026-01-01: 0 commits2026-01-02: 0 commits2026-01-03: 0 commits2026-01-04: 0 commits2026-01-05: 0 commits2026-01-06: 0 commits2026-01-07: 0 commits2026-01-08: 0 commits2026-01-09: 0 commits2026-01-10: 0 commits2026-01-11: 0 commits2026-01-12: 0 commits2026-01-13: 0 commits2026-01-14: 0 commits2026-01-15: 0 commits2026-01-16: 0 commits2026-01-17: 0 commits2026-01-18: 0 commits2026-01-19: 0 commits2026-01-20: 0 commits2026-01-21: 0 commits2026-01-22: 0 commits2026-01-23: 0 commits2026-01-24: 0 commits2026-01-25: 0 commits2026-01-26: 0 commits2026-01-27: 0 commits2026-01-28: 0 commits2026-01-29: 0 commits2026-01-30: 0 commits2026-01-31: 0 commits2026-02-01: 0 commits2026-02-02: 0 commits2026-02-03: 0 commits2026-02-04: 0 commits2026-02-05: 0 commits2026-02-06: 0 commits2026-02-07: 0 commits2026-02-08: 0 commits2026-02-09: 0 commits2026-02-10: 0 commits2026-02-11: 0 commits2026-02-12: 0 commits2026-02-13: 0 commits2026-02-14: 0 commits2026-02-15: 0 commits2026-02-16: 0 commits2026-02-17: 0 commits2026-02-18: 0 commits2026-02-19: 0 commits2026-02-20: 0 commits2026-02-21: 0 commits2026-02-22: 0 commits2026-02-23: 0 commits2026-02-24: 0 commits2026-02-25: 0 commits2026-02-26: 0 commits2026-02-27: 0 commits2026-02-28: 0 commits2026-03-01: 0 commits2026-03-02: 0 commits2026-03-03: 0 commits2026-03-04: 0 commits2026-03-05: 0 commits2026-03-06: 0 commits2026-03-07: 0 commits2026-03-08: 0 commits2026-03-09: 0 commits2026-03-10: 0 commits2026-03-11: 0 commits2026-03-12: 0 commits2026-03-13: 0 commits2026-03-14: 0 commits2026-03-15: 0 commits2026-03-16: 0 commits2026-03-17: 0 commits2026-03-18: 1 commit2026-03-19: 0 commits2026-03-20: 0 commits2026-03-21: 0 commits2026-03-22: 1 commit2026-03-23: 7 commits2026-03-24: 15 commits2026-03-25: 6 commits2026-03-26: 7 commits2026-03-27: 3 commits2026-03-28: 1 commit2026-03-29: 0 commits2026-03-30: 1 commit2026-03-31: 0 commits2026-04-01: 0 commits2026-04-02: 2 commits2026-04-03: 1 commit2026-04-04: 0 commits2026-04-05: 11 commits2026-04-06: 6 commits2026-04-07: 2 commits2026-04-08: 0 commits2026-04-09: 0 commits2026-04-10: 0 commits2026-04-11: 3 commits2026-04-12: 0 commits2026-04-13: 2 commits2026-04-14: 1 commit2026-04-15: 0 commits2026-04-16: 0 commits2026-04-17: 3 commits2026-04-18: 1 commit2026-04-19: 1 commit2026-04-20: 0 commits2026-04-21: 0 commits2026-04-22: 0 commits2026-04-23: 4 commits2026-04-24: 4 commits2026-04-25: 9 commits2026-04-26: 0 commits2026-04-27: 0 commits2026-04-28: 0 commits2026-04-29: 4 commits2026-04-30: 0 commits2026-05-01: 4 commits2026-05-02: 0 commits2026-05-03: 0 commits2026-05-04: 3 commits2026-05-05: 0 commits2026-05-06: 0 commits2026-05-07: 0 commits2026-05-08: 1 commit2026-05-09: 1 commit2026-05-10: 0 commits2026-05-11: 0 commits2026-05-12: 1 commit2026-05-13: 1 commit2026-05-14: 0 commits2026-05-15: 0 commits2026-05-16: 0 commits2026-05-17: 0 commits2026-05-18: 0 commits2026-05-19: 0 commits2026-05-20: 0 commits2026-05-21: 2 commits2026-05-22: 1 commit2026-05-23: 3 commits2026-05-24: 0 commits2026-05-25: 0 commits2026-05-26: 0 commits2026-05-27: 2 commits2026-05-28: 0 commits2026-05-29: 0 commits2026-05-30: 0 commits2026-05-31: 1 commit2026-06-01: 0 commits2026-06-02: 0 commits2026-06-03: 0 commits2026-06-04: 8 commits2026-06-05: 0 commits2026-06-06: 0 commits2026-06-07: 0 commits2026-06-08: 4 commits2026-06-09: 3 commits2026-06-10: 1 commit2026-06-11: 0 commits2026-06-12: 0 commits2026-06-13: 0 commits2026-06-14: 0 commits2026-06-15: 0 commits2026-06-16: 1 commit2026-06-17: 1 commit2026-06-18: 0 commits2026-06-19: 0 commits2026-06-20: 0 commits2026-06-21: 0 commits2026-06-22: 0 commits2026-06-23: 7 commits2026-06-24: 5 commits2026-06-25: 0 commits2026-06-26: 15 commits2026-06-27: 3 commits2026-06-28: 0 commits2026-06-29: 7 commits2026-06-30: 0 commits2026-07-01: 12 commits2026-07-02: 9 commits2026-07-03: 12 commits2026-07-04: 12 commits2026-07-05: 1 commit2026-07-06: 15 commits2026-07-07: 0 commits2026-07-08: 0 commits2026-07-09: 0 commits2026-07-10: 1 commit2026-07-11: 9 commits2026-07-12: 0 commits2026-07-13: 0 commits2026-07-14: 6 commits2026-07-15: 18 commits2026-07-16: 9 commits2026-07-17: 2 commits2026-07-18: 0 commits2026-07-19: 0 commits2026-07-20: 0 commits2026-07-21: 9 commits2026-07-22: 11 commits2026-07-23: 4 commits2026-07-24: 4 commits2026-07-25: 22 commits2026-07-26: 7 commits2026-07-27: 11 commits2026-07-28: 6 commits2026-07-29: 4 commits2026-07-30: 9 commits2026-07-31: 13 commits2026-08-01: 3 commits2026-08-02: 0 commits2026-08-03: 0 commits2026-08-04: 0 commits2026-08-05: 0 commits2026-08-06: 7 commits2026-08-07: 16 commits2026-08-08: 14 commits2026-08-09: 9 commits2026-08-10: 3 commits2026-08-11: 12 commits2026-08-12: 15 commits2026-08-13: 0 commits2026-08-14: 1 commit2026-08-15: 11 commits2026-08-16: 3 commits2026-08-17: 18 commits2026-08-18: 3 commits2026-08-19: 0 commits2026-08-20: 11 commits2026-08-21: 1 commit2026-08-22: 0 commits2026-08-23: 0 commits2026-08-24: 0 commits2026-08-25: 31 commits2026-08-26: 10 commits2026-08-27: 0 commits2026-08-28: 0 commits2026-08-29: 0 commits2026-08-30: 0 commits2026-08-31: 0 commits2026-09-01: 0 commits2026-09-02: 0 commits2026-09-03: 0 commits2026-09-04: 0 commits2026-09-05: 43 commits2026-09-06: 5 commits2026-09-07: 1 commit2026-09-08: 5 commits2026-09-09: 2 commits2026-09-10: 4 commits2026-09-11: 27 commits2026-09-12: 0 commits2026-09-13: 1 commit2026-09-14: 0 commits2026-09-15: 3 commits2026-09-16: 5 commits2026-09-17: 0 commits2026-09-18: 9 commits2026-09-19: 27 commits2026-09-20: 0 commits2026-09-21: 0 commits2026-09-22: 13 commits2026-09-23: 14 commits2026-09-24: 0 commits2026-09-25: 0 commits2026-09-26: 0 commits2026-09-27: 0 commits2026-09-28: 0 commits2026-09-29: 3 commits2026-09-30: 32 commits2026-10-01: 27 commits2026-10-02: 37 commits2026-10-03: 10 commits2026-10-04: 1 commit2026-10-05: 0 commits2026-10-06: 0 commits2026-10-07: 20 commits2026-10-08: 19 commits2026-10-09: 43 commits2026-10-10: 7 commits2026-10-11: 25 commits2026-10-12: 0 commits2026-10-13: 2 commits2026-10-14: 7 commits2026-10-15: 31 commits2026-10-16: 1 commit2026-10-17: 0 commits2026-10-18: 20 commits2026-10-19: 0 commits2026-10-20: 14 commits2026-10-21: 0 commits2026-10-22: 0 commits2026-10-23: 0 commits2026-10-24: 0 commits2026-10-25: 0 commits2026-10-26: 0 commits2026-10-27: 0 commits2026-10-28: 0 commits2026-10-29: 65 commits2026-10-30: 0 commits2026-10-31: 0 commits
1,068 commits in the last yearLessMore

Signals and awards

derived from tracked data
  • Very active

    1,068 commits in 52 weeks

  • Community-driven

    ~166 contributors

  • Permissive license

    MIT

  • Continuous integration

    Automated checks passing

  • Repeat trending

    16 trending appearances

What pi-web does

Pi Web is a local web application that serves as an exceptionally rich graphical interface for the Pi CLI coding agent. It operates by continually reading local Pi session files and rendering them into a beautiful browser workspace, seamlessly transforming raw terminal output into highly readable Markdown. The interface enables developers to intuitively browse past sessions organized by project, interact via real-time chat, configure AI models, and actively manage agent skills. Crucially, it incorporates a comprehensive file explorer that previews project files natively within the browser, providing immense immediate context while the agent works. This completely eliminates the need to constantly switch back and forth between a terminal window and an IDE.

Developers and active users of the Pi coding agent who desperately want a richer, highly visual, web-based workspace rather than interacting strictly through the CLI. Users should be familiar with TypeScript development environments.

  • Session browsing: Continuously reads local files to accurately visualize past interactions, structured tool calls, and context usage in a clean UI.
  • Contextual file viewing: Directly renders complex project files, including source code, PDFs, and images, right in the browser while chatting.
  • Real-time chat interface: Delivers a sophisticated browser-based chat window featuring deep Markdown and Mermaid support for interacting with the agent.
  • Model configuration: Empowers users to rapidly switch active models, manage sensitive API keys, and seamlessly adjust thinking levels from the web UI.
  • Git worktree support: Enables effortlessly switching Git worktrees directly from the sidebar so new sessions strictly follow the chosen code checkout.

Where teams use it

Visual Agent Interaction

Developers who highly prefer a ChatGPT-like web interface over terminal commands for managing complex, multi-turn coding conversations with the Pi agent.

Session Debugging

Engineers carefully review past agent sessions to quickly understand exactly which tools were called and what precise data was returned in a structured format.

Rapid Model Switching

Users effortlessly toggle between entirely different LLMs via the web UI to accurately compare performance and execution cost on specific programming tasks.

Safe Exploration

Developers can strategically branch off an earlier message in a complex session to safely try completely different implementation directions without losing state.

Getting started: npx @agegr/pi-web@latest

README

main branch

Pi Web

中文文档 | 日本語 | Русский

Local browser UI for the pi coding agent. Pi Web uses the same local configuration and session files as pi, so you can browse and resume conversations, run agent turns, configure models and resources, and inspect project files from a browser.

Try the interactive demo → The real Pi Web UI runs entirely in your browser, with sample sessions, files and models. There is nothing to install; replies are pre-written and no model is called.

Pi Web displaying a pi session with structured Markdown, tool calls, and project navigation

Features

  • Session workspace: browse, resume, rename, export, and delete conversations grouped by project, with running state, context usage, cost, and compaction details.
  • Two ways to branch: New session creates an independent session file from an earlier message; Edit from here creates a branch inside the current session.
  • Project file tools: browse and upload files, inspect Git diffs, and preview source, Markdown, images, audio, PDFs, and DOCX files with automatic refresh.
  • Git worktrees: switch checkouts from the sidebar while keeping sessions from the same repository grouped together.
  • Web-based configuration: manage provider login and API keys, models, model tests, plugin packages, and skills without leaving Pi Web.
  • English, Simplified Chinese, and Traditional Chinese UI: Pi Web follows the browser language initially and provides a language switcher in the top bar.

Quick Start

Pi Web requires Node.js 22.19.0 or newer. Check your version with node --version, then run:

npx @agegr/pi-web@latest

The CLI opens a browser after the server is ready. If it does not, open http://127.0.0.1:30141. Pi Web listens only on 127.0.0.1 by default.

If no model provider is configured yet, open the Models panel to sign in or add an API key.

To install the pi-web command globally:

npm install -g @agegr/pi-web@latest
pi-web

Commands:

pi-web version          # print the installed version
pi-web status           # list running servers
pi-web stop [--port N]  # stop a running server
pi-web open [--port N]  # open a running server in the browser
pi-web update [--check] # update a global npm install

To update, run pi-web stop, then pi-web update (or run the same install command again). To uninstall, run npm uninstall -g @agegr/pi-web.

Configuration

For port and hostname, command-line options override the corresponding environment variables. Either --no-open or PI_WEB_NO_OPEN=1 disables automatic browser opening. Run pi-web --help (or -h) to print startup options and exit without starting the server. Unknown options exit with an error.

Option or environment variable Purpose Default
--help, -h Print startup options and exit —
--port <port>, -p <port>, or PORT Server port 30141
--hostname <host>, -H <host>, or PI_WEB_HOSTNAME Bind hostname 127.0.0.1
--no-open or PI_WEB_NO_OPEN=1 Do not open a browser automatically Browser opens
PI_WEB_APP_NAME PWA manifest name and short_name; surrounding whitespace is trimmed, empty values use the default Pi Web
PI_WEB_SKIP_VERSION_CHECK=1 Disable Pi Web update checks Unset
PI_WEB_ALLOWED_HOSTS Additional exact proxy or custom hostnames, comma-separated Unset
PI_WEB_PASSWORD Enable browser password login; API clients may use Basic Auth with username pi Authentication disabled
PI_WEB_IDLE_TIMEOUT_MS Session idle timeout in milliseconds, up to 2147483647; 0 disables idle shutdown; invalid or out-of-range values use the default 600000 (10 min)
PI_WEB_SHUTDOWN_DEADLINE_MS How long extensions get to handle session_shutdown before a closing session is disposed anyway, in milliseconds up to 2147483647; 0, invalid or out-of-range values use the default 5000 (5 s)
PI_CODEMODE_MAX_WORKERS pi's limit on codemode scripts running at once, shared by every session and subagent in the server; pi's own default is 2, and pi-web sets 8 when the variable is unset or empty. Each script may use up to 256 MB 8

Set PI_WEB_APP_NAME before starting the server (for example, PI_WEB_APP_NAME='Work Pi' pi-web). After changing it, restart the server to serve the new manifest; no rebuild is required. Updates to the name of an already installed PWA are managed by the browser and are not guaranteed to appear immediately. This does not change the page title or icons.

For example:

pi-web --help
pi-web -p 8080 -H 0.0.0.0 --no-open

Remote Access

Binding to a non-loopback address exposes an agent that can execute high-privilege actions. On a trusted LAN, require a long random password:

PI_WEB_PASSWORD='a-long-random-password' pi-web --hostname 0.0.0.0

Password authentication does not encrypt the connection. Do not expose Pi Web over plain HTTP to the internet; use HTTPS through a trusted reverse proxy or a trusted VPN. If a reverse proxy sends an external hostname, add that exact name to PI_WEB_ALLOWED_HOSTS. This allow-list does not change the address Pi Web binds to.

HTTP Proxy

Server-side model and API requests honor the standard HTTP_PROXY, HTTPS_PROXY, and NO_PROXY environment variables.

On macOS or Linux:

HTTP_PROXY=http://127.0.0.1:7890 \
HTTPS_PROXY=http://127.0.0.1:7890 \
NO_PROXY=localhost,127.0.0.1 \
npx @agegr/pi-web@latest

On Windows PowerShell:

$env:HTTP_PROXY = "http://127.0.0.1:7890"
$env:HTTPS_PROXY = "http://127.0.0.1:7890"
$env:NO_PROXY = "localhost,127.0.0.1"
npx @agegr/pi-web@latest

Notes

  • Agent data: Pi Web reads pi data from ~/.pi/agent by default, including session files under sessions/<encoded-cwd>/<timestamp>_<uuid>.jsonl. Set PI_CODING_AGENT_DIR to use another pi agent directory.
  • Filesystem access: Pi Web must be able to read the agent data directory and the working directories recorded by its sessions. Run Pi Web in the same filesystem environment as pi when sharing existing sessions.
  • Shared configuration: the Models panel uses pi's model, settings, and credential storage, so changes are visible to both interfaces. An open session applies a saved edit of its model when you select the model again.
  • File access boundary: the file browser is limited to working directories selected in Pi Web and project or session roots it already knows about; it is not a general filesystem browser.
  • Git worktrees: see Worktrees in Pi Web for switcher visibility, worktree creation, and removal behavior.

Downstream Session Context Menu

Electron wrappers and other downstream integrations can provide a session-row context menu without patching SessionSidebar. Listen for the cancelable pi-web:session-row-contextmenu browser event and call preventDefault() synchronously when the integration will handle it:

window.addEventListener("pi-web:session-row-contextmenu", (event) => {
  event.preventDefault();
  const { id, path, cwd, name, clientX, clientY, refresh } = event.detail;

  void openSessionMenu({ id, path, cwd, name, clientX, clientY }).then((changed) => {
    if (changed) refresh();
  });
});

The detail object contains id, path, cwd, optional name, pointer coordinates, and a refresh() callback for actions that change the session list. If no listener cancels the extension event, Pi Web opens its built-in session menu (pin, rename, fork, mark read or unread, archive, open in new tab, delete) at the pointer instead of the browser's native context menu. The row's ⋯ button always opens the built-in menu and does not dispatch the event. Sessions not yet saved to disk get no built-in menu, so the native one still appears for them. This hook is browser-side and independent of Pi agent extensions.

Extension Session Liveness

Server-side Pi extensions with detached work can prevent automatic idle session eviction through the versioned global registry:

const liveness = globalThis[Symbol.for("@agegr/pi-web/session-liveness/v1")];
const release = liveness?.version === 1
  ? liveness.register({
      name: "my-extension",
      sessionId,
      sessionFile: sessionFile || undefined,
      isActive: () => detachedJobs.size > 0,
    })
  : () => {};

Register once per active extension session and call the returned idempotent release function on session shutdown, replacement, or reload. isActive must be synchronous, cheap, and scoped to the supplied exact session id or file. Provider errors fail safe by preserving that session. This lease only affects automatic idle eviction; explicit shutdown and Stop fallback cleanup still take precedence.

Development

npm install
npm run dev

The development server runs at http://127.0.0.1:30141. Run the common checks with:

npm test
node_modules/.bin/tsc --noEmit
npm run lint

Do not run next build or npm run build during normal development. It writes to .next/ and can interfere with the development server; leave builds for release work.

Before starting on a feature, read Contributing for what is in scope and the pull request checklist.

Contributor guides: Internationalization and Release process.

Repository Layout

app/             Next.js UI and API routes
components/      React UI components
hooks/           Client state and interaction hooks
lib/             Session, agent, model, file, Git, and security logic
public/          Static assets and PWA files
bin/             npm CLI entrypoint and launch option parsing
docs/            Focused user and contributor guides
demo/            Static browser demo published to GitHub Pages (see demo/README.md)

See AGENTS.md for the architecture notes and detailed file map.

License

MIT

View on GitHub

Recent activity

commits and pull requests

Releases and announcements

42 total
  1. v0.13.0v0.13.0Oct 29, 2026

    ## 中文 基于 `v0.12.2..v0.13.0` 的提交整理。 ```bash npm install -g @agegr/pi-web@latest ``` ### 新增 - **Debug 面板**:工具栏会话统计左侧的虫子图标打开一个只读面板,显示本页与服务器之间的连接(每个页面的 SSE 数量对比浏览器每个源 6 个连接的上限、轮询往返、事件流和租约倒计时),以及服务器持有的会话、子代理、MCP、终端和文件监听,还列出当前连接的所有页面。打开它不会启动、恢复或续期任何东西。(#1443, b5acfe8, 3a01952, e368baf) - **工具调用的参数按行显示**:工具卡片不再把参数显示成一段缩进的 JSON,每个参数单独一行,shell 命令保留真实换行,流式输入中也一样。(#1324,感谢 Brynne Taylor;#1396,感谢 Vlad Sirenko) - **```svg 代码块预览成图片**:像 mermaid 一样,回答结束后显示图片,可切换源码、点击放大、下载 SVG。(#1455) - **公式可以复制 LaTeX**:块级数学公式带复制按钮,复制的是模型写的 LaTeX 源码。(#1380, #1454) - **Markdown 里的音频和视频可直接播放**:`![take 2](out/take2.wav)` 这类链接会渲染成播放器,开始播放一个会暂停页面上的其他播放器。(#1281,感谢 maximilize) - **压缩期间发送的消息会排队**:上下文压缩时发出的消息不再报错退回,压缩结束后按顺序发出,与 pi 的 TUI 一致。(#1426,感谢 Vvvvergram) - **顶栏 Agents 徽标显示运行中的子代理**:有子代理在跑时,徽标显示运行数量并带转圈;手机窄屏折叠的「更多」按钮上也能看到。Agents 列表里的子代理显示实际使用的模型和思考深度。(#1311, #1415, #1450;#1440,感谢 TossPig) - **模型设置**: - 自定义模型可以单独设置 Base URL,覆盖提供商的地址。(#1288,感谢 xcg) - `anthropic-messages` 的自定义模型新增「Claude adaptive thinking」开关(pi 的 `compat.forceAdaptiveThinking`)。(#1331) - 支持图片的自定义模型可以设置图片大小上限(pi 的 `inputLimits.images.resize.maxBytes`)。(ec9f38a) - 模型选择器和「添加提供商」的搜索也能匹配提供商 id 和 `provider/modelId`。(#1308) - **终端字号跟随聊天字号**:设置 › 常规

  2. v0.12.2v0.12.2Oct 15, 2026

    ## 中文 基于 `v0.12.1..v0.12.2` 的提交整理。 ```bash npm install -g @agegr/pi-web@latest ``` ### 新增 - **更多主题,按色块挑选**:新增暖沙、丁香、暮紫、余烬、岩蓝、高对比浅色、高对比深色和 Zenburn。设置里每个主题都画成它自己颜色的色块,浅色和深色按色调上下对齐,一眼就能比较。高对比主题的文字在所有背景上都达到 WCAG AAA。(#1269) - **终端可以单独切换深浅色**:终端标题栏的太阳/月亮按钮只切换终端本身,不影响应用主题;切换时 shell 和正在输出的内容不会中断,选择按浏览器记住。(#1268, #1270) - **看到每轮回答花了多久**:一轮结束后,过程折叠行(没有过程时在回答下方)显示「耗时 45s」,刷新页面后也一样。(#1222,感谢 CiereMars) - **缓存与费用提示**:打开设置 › 常规里的「显示缓存与费用提示」(即 pi 的 `showCacheMissNotices`)后,聊天里会像 pi 的 TUI 一样提示缓存未命中及重新计费的 token、缓存预热、压缩和分支摘要的费用,以及 Anthropic 丢弃思考块。折叠起来的过程行会汇总其中的缓存未命中。(#1265, #1267) - **Agents 切换器显示每个代理的用量**:主代理和每个子代理都显示活跃时长、token 数和费用,标题处给出合计,子代理花了多少一目了然。子代理那一行旁边新增侧栏按钮,一键打开或关闭它的只读记录标签页。(972b02d, 4b529b4) - **归档视图可以按项目折叠和批量处理**:每个项目可以折叠(Alt+点击折叠全部);项目的 `⋯` 可以恢复或删除该项目的已归档会话;归档栏的 `⋯` 可以全部恢复(可撤销)、删除全部或删除 30 天前归档的会话,删除前会告诉你数量。项目菜单的「查看已归档」会直接跳到该项目。(49c9ca8) - **在新标签页打开项目**:项目分组的 `⋯` 菜单新增「在新标签页打开」(T),在新标签页开一个同目录的新对话,原标签页不受影响。(#1208,感谢 xcg) - **把文件拖进文件树上传**:从系统文件管理器把文件拖到侧栏文件树里的某个文件夹上,就会上传到那个文件夹;拖到空白处则上传到项目根目录。(#1192,感谢 dingxiaobo) - **在设置里改模型的上下文窗口**:设置 › 模型里,内置提供商的每个模型行多了一个上下文窗口输入框,留空即使用默认值。(#1221,感谢 22zyfeng-collab) - **更多文件类型有语法高亮**:源码视图新增 PHP、Lua、Dart、Vue、INI、PowerShell、批处理、Protobuf、diff 等 30 多种扩展名的高

  3. v0.12.1v0.12.1Oct 13, 2026

    ## 中文 基于 `v0.12.0..v0.12.1` 的提交整理。 ```bash npm install -g @agegr/pi-web@latest ``` ### 修复 - **修复 pi 1.2.0 发布后安装 pi-web 无法启动**:0.12.0 只固定了 pi 的四个包,而 pi 内部依赖用的是 `^` 范围,所以 pi 1.2.0 发布后的新安装会把 `pi-coding-agent` 1.1.0 和 `pi-codemode` 1.2.0 装在一起,启动时报 `The requested module '@earendil-works/pi-codemode/declarations' does not provide an export named 'MCP_TYPESCRIPT_PREAMBLE'`。现在依赖树里的每个 pi 包(包括 `pi-codemode`、`pi-mcp`、`pi-telemetry`)都钉到精确版本,以后 pi 再发新版也不会混装。(35067b6) - 设置 › MCP:对提供资源(resources)的服务器点「测试」不再出错,改为显示「提供资源。」,和 pi 的 `/mcp` 一致。(35067b6) - 配置了提供资源的 MCP 服务器时,发送消息不再白等 10 秒。(35067b6) ### 改进 - pi 升级到 1.2.0,变化见 [pi v1.2.0 发布说明](https://github.com/earendil-works/pi/releases/tag/v1.2.0)。(35067b6) ### 内部调整 - 新增测试:锁文件里的每个 pi 包都必须是精确版本的直接依赖。 - 发布 npm 包 `@agegr/[email protected]`。 ## English Prepared from commits in `v0.12.0..v0.12.1`. ```bash npm install -g @agegr/pi-web@latest ``` ### Fixed - **pi-web failed to start when installed after pi 1.2.0 was released.** 0.12.0 pinned only four of pi's packages, while pi's packages depend on each other with `^` ranges, so fresh installs paired `pi-coding-agent` 1.1.0 with `pi-codemode` 1.2.0 and the server failed with `The requested module '@ear

  4. v0.12.0v0.12.0Oct 11, 2026

    ## 中文 基于 `v0.11.1..v0.12.0` 的提交整理。 ```bash npm install -g @agegr/pi-web@latest ``` ### 新增 - **一键删除项目的全部会话**:项目分组的 ⋯ 菜单末尾新增「删除全部会话… · N」,先确认(默认聚焦「取消」,回车不会误删),再删除该项目的所有会话(含置顶和归档的),正在运行或等待输入的会保留。(#1182) - **在新浏览器标签页打开会话**:侧边栏会话标题现在是真正的链接,中键或 Ctrl/Cmd 点击即在新标签页打开;会话菜单新增「在新标签页打开」(T)。普通点击仍在当前页切换。(#1167, #1169,感谢 xcg) - **子代理可连接 MCP 服务器**:配置文件写 `mcp: on`(或在 Agents 面板打开「连接 MCP 服务器」)后,子代理按普通会话相同的信任规则连接 `mcp.json` 中的服务器;只读工具的子代理(Explore、Plan)只运行服务器标为只读的 MCP 工具。(#1053, #1187) - **子代理模型支持 `:level` 后缀**:`provider/model:high` 同时指定模型和思考级别,与 pi 的 `--model` 一致;Agent 工具说明里列出每个配置文件的思考级别。(#1188, #1189) - **终端在竖屏触屏上提供 Termux 风格的额外按键**:两行 ESC / - HOME ↑ END PGUP 与 TAB CTRL ALT ← ↓ → PGDN,点按时软键盘不收起;CTRL、ALT 为单次修饰,也作用于软键盘输入的下一个字符。(#1166,感谢 vill) - 设置 › Skills 显示技能的完整说明。(#1158,感谢 tammelin) - 超过 256 KB 的 HTML 文件也能完整预览。(#1155,感谢 Tiger) ### 修复 - 完成提示音:空闲时暂停音频上下文(Android Firefox 不再在两次提示音之间持有唤醒锁),运行期间保持运行,锁屏时结束的运行也会响;超过 3 秒才恢复的提示音直接丢弃,不在回来时迟到播放。(#1157, #1178, #1185) - 打开指向已删除会话的链接,不再显示该项目上次打开的会话,而是新建会话页并提示「该会话已不存在」。(#1168, #1180) - Windows 命令行:`status`、`open`、`update`、`stop` 在 Node 23–24.19 / 26.6 上不再以 0xC0000409(libuv 断言)退出。(#1174, #1179) - 扩展在回答生成或压缩期间调用 `ctx.reload()` 会被拒绝并给出警告(与 pi 的 TUI 一致),不再让进行中的回合失

  5. v0.11.1v0.11.1Oct 10, 2026

    ## 中文 基于 `v0.11.0..v0.11.1` 的提交整理。 ```bash npm install -g @agegr/pi-web@latest ``` ### 新增 - **文件浏览器默认显示在会话列表下方**(桌面端):可拖动、可折叠的「文件 · N」区域,带自己的文件搜索;设置 › 通用 › 侧边栏里可改回「独立标签」。手机仍使用标签。文件树按项目记住展开的目录。(3fe257f) - **新建会话页面重排**:品牌(logo、版本、更新提示)单独靠左,项目和工作树选择移到输入框正上方一行。(e2fe4fb) - **新命令行命令**:`pi-web version`、`update`、`status`、`stop`、`open`。(#1139, #1154) - **子代理工作可在右侧面板标签中查看**(只读的对话记录)。(#1129,感谢 @斑泥狼) - 子代理支持可选的 codemode。(#1097,感谢 Zllf) - 安装为 PWA 后,应用名称可在运行时配置。(#1147, #1148,感谢 TossPig) - 会话停在扩展对话框上时,侧边栏显示为「等待输入」。(#1145,感谢 Mango) - 聊天里的自定义消息可以从标题处折叠。(#1133,感谢 Brynne Taylor) - 附件按钮可以选择任意文件,不只是图片。(#1101, #1122) - CSV / TSV 文件在文件查看器里显示为表格。(#1150) - 压缩摘要默认折叠,与 pi 的 TUI 一致。(#1026, #1123) - 小地图的轮次从会话第一轮开始编号。(#791, #1151);小地图新增锁定开关,可关闭悬停预览。(#1128,感谢 Mitchell Kager) - 模型:显示 Kimi For Coding 用量额度 (#848, #1113);「获取模型」时保留能力元数据 (#856, #1112)。 - 支持 `obsidian://`、`vscode://`、`zoommtg://` 等常见桌面应用链接。(#1108, #1118) - 项目分组的显示名称可以在分组菜单里重命名。(#1047, #1125) ### 修复 - 侧边栏:点击「显示更多」后选中最后一个会话,不再露出更旧的会话;折叠分组会丢弃它的「显示更多」窗口。(51dda7c, 0066d5f) - 运行中写入的文件、以及在编辑器或终端里的改动,文件树现在会自动刷新(运行时与窗口获得焦点时)。(#1144, #1153) - 新会话的第一条消息,即使切换到别的会话也会发出。(#1146, #1152) - 自动发现外部写入的会话文件,不用手动刷新。(#1100,感谢 arkk) - 回到工作区时恢复打开的文件标签。(#1107,感谢 Tiger) -

Code frequency

additions and deletions
+67.7K-67.7KWeek of 2026-03-15: +17,428 linesWeek of 2026-03-15: -0 linesWeek of 2026-03-22: +10,614 linesWeek of 2026-03-22: -6,705 linesWeek of 2026-03-29: +158 linesWeek of 2026-03-29: -92 linesWeek of 2026-04-05: +2,766 linesWeek of 2026-04-05: -1,495 linesWeek of 2026-04-12: +1,795 linesWeek of 2026-04-12: -1,166 linesWeek of 2026-04-19: +1,804 linesWeek of 2026-04-19: -1,214 linesWeek of 2026-04-26: +9,178 linesWeek of 2026-04-26: -2,206 linesWeek of 2026-05-03: +1,656 linesWeek of 2026-05-03: -425 linesWeek of 2026-05-10: +264 linesWeek of 2026-05-10: -67 linesWeek of 2026-05-17: +5,021 linesWeek of 2026-05-17: -5,317 linesWeek of 2026-05-24: +264 linesWeek of 2026-05-24: -8 linesWeek of 2026-05-31: +1,532 linesWeek of 2026-05-31: -531 linesWeek of 2026-06-07: +631 linesWeek of 2026-06-07: -335 linesWeek of 2026-06-14: +47 linesWeek of 2026-06-14: -14 linesWeek of 2026-06-21: +3,855 linesWeek of 2026-06-21: -1,024 linesWeek of 2026-06-28: +7,433 linesWeek of 2026-06-28: -1,005 linesWeek of 2026-07-05: +2,171 linesWeek of 2026-07-05: -790 linesWeek of 2026-07-12: +3,884 linesWeek of 2026-07-12: -724 linesWeek of 2026-07-19: +8,600 linesWeek of 2026-07-19: -2,355 linesWeek of 2026-07-26: +8,804 linesWeek of 2026-07-26: -1,973 linesWeek of 2026-08-02: +7,262 linesWeek of 2026-08-02: -1,144 linesWeek of 2026-08-09: +9,422 linesWeek of 2026-08-09: -2,877 linesWeek of 2026-08-16: +11,143 linesWeek of 2026-08-16: -3,381 linesWeek of 2026-08-23: +5,981 linesWeek of 2026-08-23: -8,692 linesWeek of 2026-08-30: +9,924 linesWeek of 2026-08-30: -1,825 linesWeek of 2026-09-06: +5,187 linesWeek of 2026-09-06: -1,125 linesWeek of 2026-09-13: +4,400 linesWeek of 2026-09-13: -824 linesWeek of 2026-09-20: +67,711 linesWeek of 2026-09-20: -2,087 linesWeek of 2026-09-27: +56,574 linesWeek of 2026-09-27: -6,205 linesWeek of 2026-10-04: +37,842 linesWeek of 2026-10-04: -8,929 linesWeek of 2026-10-11: +14,732 linesWeek of 2026-10-11: -8,940 linesWeek of 2026-10-18: +4,464 linesWeek of 2026-10-18: -612 linesWeek of 2026-10-25: +18,434 linesWeek of 2026-10-25: -2,417 linesMar 15, 2026Oct 25, 2026
+341K lines added, -76.5K removed over the last year.

Commits per week

last 52 weeks
1090Week of 2025-11-02: 0 commitsWeek of 2025-11-09: 0 commitsWeek of 2025-11-16: 0 commitsWeek of 2025-11-23: 0 commitsWeek of 2025-11-30: 0 commitsWeek of 2025-12-07: 0 commitsWeek of 2025-12-14: 0 commitsWeek of 2025-12-21: 0 commitsWeek of 2025-12-28: 0 commitsWeek of 2026-01-04: 0 commitsWeek of 2026-01-11: 0 commitsWeek of 2026-01-18: 0 commitsWeek of 2026-01-25: 0 commitsWeek of 2026-02-01: 0 commitsWeek of 2026-02-08: 0 commitsWeek of 2026-02-15: 0 commitsWeek of 2026-02-22: 0 commitsWeek of 2026-03-01: 0 commitsWeek of 2026-03-08: 0 commitsWeek of 2026-03-15: 1 commitsWeek of 2026-03-22: 40 commitsWeek of 2026-03-29: 4 commitsWeek of 2026-04-05: 22 commitsWeek of 2026-04-12: 7 commitsWeek of 2026-04-19: 18 commitsWeek of 2026-04-26: 8 commitsWeek of 2026-05-03: 5 commitsWeek of 2026-05-10: 2 commitsWeek of 2026-05-17: 6 commitsWeek of 2026-05-24: 2 commitsWeek of 2026-05-31: 9 commitsWeek of 2026-06-07: 8 commitsWeek of 2026-06-14: 2 commitsWeek of 2026-06-21: 30 commitsWeek of 2026-06-28: 52 commitsWeek of 2026-07-05: 26 commitsWeek of 2026-07-12: 35 commitsWeek of 2026-07-19: 50 commitsWeek of 2026-07-26: 53 commitsWeek of 2026-08-02: 37 commitsWeek of 2026-08-09: 51 commitsWeek of 2026-08-16: 36 commitsWeek of 2026-08-23: 41 commitsWeek of 2026-08-30: 43 commitsWeek of 2026-09-06: 44 commitsWeek of 2026-09-13: 45 commitsWeek of 2026-09-20: 27 commitsWeek of 2026-09-27: 109 commitsWeek of 2026-10-04: 90 commitsWeek of 2026-10-11: 66 commitsWeek of 2026-10-18: 34 commitsWeek of 2026-10-25: 65 commitsNov 2, 2025Oct 25, 2026
1.1K commits in the last 52 weeks.

When work happens

weekday and hour
SunMonTueWedThuFriSat036912151821Sun 0:00 — 11 commitsSun 1:00 — 4 commitsSun 2:00 — 0 commitsSun 3:00 — 1 commitsSun 4:00 — 0 commitsSun 5:00 — 1 commitsSun 6:00 — 0 commitsSun 7:00 — 0 commitsSun 8:00 — 0 commitsSun 9:00 — 0 commitsSun 10:00 — 0 commitsSun 11:00 — 2 commitsSun 12:00 — 0 commitsSun 13:00 — 2 commitsSun 14:00 — 3 commitsSun 15:00 — 3 commitsSun 16:00 — 2 commitsSun 17:00 — 1 commitsSun 18:00 — 8 commitsSun 19:00 — 11 commitsSun 20:00 — 18 commitsSun 21:00 — 11 commitsSun 22:00 — 2 commitsSun 23:00 — 6 commitsMon 0:00 — 2 commitsMon 1:00 — 0 commitsMon 2:00 — 2 commitsMon 3:00 — 0 commitsMon 4:00 — 0 commitsMon 5:00 — 0 commitsMon 6:00 — 0 commitsMon 7:00 — 0 commitsMon 8:00 — 1 commitsMon 9:00 — 0 commitsMon 10:00 — 0 commitsMon 11:00 — 0 commitsMon 12:00 — 1 commitsMon 13:00 — 4 commitsMon 14:00 — 3 commitsMon 15:00 — 2 commitsMon 16:00 — 6 commitsMon 17:00 — 15 commitsMon 18:00 — 0 commitsMon 19:00 — 7 commitsMon 20:00 — 1 commitsMon 21:00 — 12 commitsMon 22:00 — 17 commitsMon 23:00 — 5 commitsTue 0:00 — 1 commitsTue 1:00 — 0 commitsTue 2:00 — 0 commitsTue 3:00 — 0 commitsTue 4:00 — 0 commitsTue 5:00 — 0 commitsTue 6:00 — 0 commitsTue 7:00 — 1 commitsTue 8:00 — 2 commitsTue 9:00 — 2 commitsTue 10:00 — 0 commitsTue 11:00 — 6 commitsTue 12:00 — 1 commitsTue 13:00 — 3 commitsTue 14:00 — 12 commitsTue 15:00 — 9 commitsTue 16:00 — 6 commitsTue 17:00 — 9 commitsTue 18:00 — 4 commitsTue 19:00 — 12 commitsTue 20:00 — 7 commitsTue 21:00 — 18 commitsTue 22:00 — 23 commitsTue 23:00 — 21 commitsWed 0:00 — 9 commitsWed 1:00 — 5 commitsWed 2:00 — 1 commitsWed 3:00 — 0 commitsWed 4:00 — 0 commitsWed 5:00 — 5 commitsWed 6:00 — 1 commitsWed 7:00 — 0 commitsWed 8:00 — 4 commitsWed 9:00 — 2 commitsWed 10:00 — 2 commitsWed 11:00 — 1 commitsWed 12:00 — 6 commitsWed 13:00 — 4 commitsWed 14:00 — 6 commitsWed 15:00 — 7 commitsWed 16:00 — 10 commitsWed 17:00 — 6 commitsWed 18:00 — 0 commitsWed 19:00 — 22 commitsWed 20:00 — 15 commitsWed 21:00 — 21 commitsWed 22:00 — 29 commitsWed 23:00 — 15 commitsThu 0:00 — 6 commitsThu 1:00 — 1 commitsThu 2:00 — 0 commitsThu 3:00 — 1 commitsThu 4:00 — 1 commitsThu 5:00 — 1 commitsThu 6:00 — 1 commitsThu 7:00 — 1 commitsThu 8:00 — 4 commitsThu 9:00 — 4 commitsThu 10:00 — 1 commitsThu 11:00 — 7 commitsThu 12:00 — 1 commitsThu 13:00 — 3 commitsThu 14:00 — 29 commitsThu 15:00 — 31 commitsThu 16:00 — 22 commitsThu 17:00 — 12 commitsThu 18:00 — 6 commitsThu 19:00 — 8 commitsThu 20:00 — 15 commitsThu 21:00 — 20 commitsThu 22:00 — 28 commitsThu 23:00 — 15 commitsFri 0:00 — 9 commitsFri 1:00 — 10 commitsFri 2:00 — 1 commitsFri 3:00 — 2 commitsFri 4:00 — 1 commitsFri 5:00 — 2 commitsFri 6:00 — 1 commitsFri 7:00 — 0 commitsFri 8:00 — 2 commitsFri 9:00 — 7 commitsFri 10:00 — 3 commitsFri 11:00 — 12 commitsFri 12:00 — 4 commitsFri 13:00 — 6 commitsFri 14:00 — 16 commitsFri 15:00 — 6 commitsFri 16:00 — 10 commitsFri 17:00 — 13 commitsFri 18:00 — 4 commitsFri 19:00 — 0 commitsFri 20:00 — 16 commitsFri 21:00 — 18 commitsFri 22:00 — 22 commitsFri 23:00 — 34 commitsSat 0:00 — 12 commitsSat 1:00 — 5 commitsSat 2:00 — 1 commitsSat 3:00 — 0 commitsSat 4:00 — 0 commitsSat 5:00 — 0 commitsSat 6:00 — 3 commitsSat 7:00 — 4 commitsSat 8:00 — 0 commitsSat 9:00 — 2 commitsSat 10:00 — 2 commitsSat 11:00 — 3 commitsSat 12:00 — 2 commitsSat 13:00 — 6 commitsSat 14:00 — 6 commitsSat 15:00 — 4 commitsSat 16:00 — 9 commitsSat 17:00 — 6 commitsSat 18:00 — 4 commitsSat 19:00 — 20 commitsSat 20:00 — 20 commitsSat 21:00 — 25 commitsSat 22:00 — 22 commitsSat 23:00 — 23 commits
Commit volume by weekday and hour (UTC). Larger dots mean more commits.

Who is committing

last 52 weeks
Maintainer commits791 (69%)
Community commits361 (31%)

1,152 commits in total over the last year.

DateListRankStars gained
Aug 19, 2026monthly#13+3,349
Aug 18, 2026monthly#13+3,349
Aug 17, 2026monthly#11+3,175
Aug 16, 2026monthly#12+3,112
Aug 15, 2026monthly#11+3,071
Aug 14, 2026monthly#11+3,016
Aug 13, 2026monthly#12+2,977
Aug 12, 2026monthly#14+2,913
Aug 11, 2026monthly#15+2,848
Aug 10, 2026monthly#16+2,781
Aug 9, 2026monthly#18+2,755
Jul 31, 2026weekly#11+1,260
Jul 30, 2026weekly#11+1,260
Jul 29, 2026weekly#6+1,474
Jul 28, 2026weekly#5+1,676
  • freeCodeCamp/freeCodeCamp

    freeCodeCamp.org's open-source codebase and curriculum. Learn math, programming, and computer science for free.

    459K stars · TypeScript

  • morluto/rea

    Reverse engineer anything with agents, from app behavior down to native binaries.

    453.1K stars · TypeScript

  • openclaw/openclaw

    The AI that really does things. Any OS. Any Platform. The lobster way. 🦞

    394.4K stars · TypeScript

  • anomalyco/opencode

    The open source coding agent.

    226.2K stars · TypeScript

  • n8n-io/n8n

    Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

    210.2K stars · TypeScript

  • firecrawl/firecrawl

    Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

    201K stars · TypeScript