English | 简体中文
Website · Extension catalog · Submit an extension
Rust-native extension packages for the rpi agent, built against the stable
rpi-plugin-sdk ABI from pi-rust.
This repository imports the pi-rust/rpi-package main tree and is the crates.io
publisher for these extensions, exactly like the upstream repository. Release
plz bumps versions, updates changelogs and the catalog, then publishes to
crates.io and creates per-package tags in Actions → Version and publish
crates (dispatch main). The mode input defaults to dry-run, which
generates candidate versions, runs workspace tests and checks crate packaging.
Choose publish to release with the CARGO_REGISTRY_TOKEN secret.
Prebuilt archives and rpi-extension.json manifests are then attached to
Releases for six target
platforms. See the release guide.
The workspace includes tools, workflow extensions, provider integrations and client adapters. Each package has its own version and setup guide. The package catalog records installation commands and versioned prebuilt manifests for catalog extensions. See the tool guidance contract for model-facing descriptions, parameter schemas, and regression checks.
Built an extension? Submit it to the extension catalog
and share it with the community. Extensions can stay in your own GitHub
repository; catalog submission does not require moving their source into this
workspace. The submission page also provides a downloadable
rpi-extension-packaging skill for coding agents.
Before submitting:
- Add a root
rpi-extension.jsonwithname,version,type: "extension",targets, and a complete install command such asrpi install rpi-your-extension --github OWNER/REPO. - Provide an installable package: a Cargo
cdylibfor source builds, or platform-specific prebuilt libraries in GitHub Releases (recommended). Use release tags in the<name>-v<version>format. - Add the
rpi-extensionGitHub repository topic so the catalog discovery task can find it. Community repositories enter a review queue; automatic approval and the official badge are reserved for the official repositories. - Include cross-platform formatting, tests, Clippy and a real-host installation smoke check in CI. Verify installation in a clean environment before submitting: catalog discovery alone does not guarantee installability.
See the submission guide for the current requirements and packaging templates. To contribute code or documentation to this repository instead, follow CONTRIBUTING.md; outside contributors must open an issue before submitting a pull request.
| Package | Tools and capabilities |
|---|---|
| rpi-mcp-adapter | Discover/call tools and manage resources with mcp_list, mcp_call, mcp_resource; raw diagnostics with mcp_request |
| rpi-mcp-server | Publish the agent as an MCP server with --mcp, or run the standalone rpi-mcp-bridge |
| rpi-subagents | Delegate work with delegate_task |
| rpi-host | Optional source-only host tool for an explicitly configured shared Host: queries, submit/receipts and guarded lifecycle control; no subprocess fallback |
| rpi-codemode | Compose native tools with bounded JavaScript, lossless business JSON and explicit exact native-result selection within inline limits; published/prebuilt extension, requires the companion ToolProgram v1 capabilities |
| rpi-workflow | Create, revise, check, and run versioned project workflows over rpi tools |
| rpi-orchestrator | Bounded child agents and task graphs with subagent, plan and dispatch |
| rpi-lens | Inspect code with code_lens |
| rpi-codegraph | Query indexed symbols, source, and relationships with codegraph_* (automatically initializes/syncs the index) |
| rpi-todo | Track tasks with todo |
| rpi-background-tasks | Run long commands with background and inspect them with jobs |
| rpi-goal | Maintain a persistent project objective with goal |
| rpi-optchat | Recall this session's chat memory with zoom, search and /optchat |
| rpi-plan-mode | Plan work with /plan, plan_mode_start and plan_mode_complete |
| rpi-btw | Read-only side conversations with /btw; requires rpi 0.6.0 or newer |
| rpi-ask-user | Ask interactive questions with ask_user |
| rpi-permissions | Manage tool policies with permissions |
| rpi-permission-gate | Confirm bash, write and edit through host UI dialogs |
| rpi-websearch | Search the web with websearch |
| rpi-webfetch | Fetch web content with webfetch |
| rpi-im-message | Run a headless Feishu/Lark service |
| rpi-voice | Dictation and spoken replies with /voice; offline STT enabled by default |
| rpi-run-stats | Display live usage, timing and cost in the TUI |
| rpi-langfuse | Export traces and manage scores and prompts with Langfuse |
| rpi-provider | Add hosted and local model providers with browser sign-in |
| rpi-server | Serve TCP JSONL or WebSocket requests and streaming subscriptions with --server (--server-ws) |
| rpi-acp | Connect ACP clients, including Zed and Open WebUI Computer |
| rpi-ui-adapter | Connect Open WebUI directly through --webui=openwebui |
| rpi-node-core | Protocol-neutral node identity, discovery and capability contracts |
| rpi-node | Run a local discovery node with rpi --node; reuse the node lifecycle and discovery API from Rust |
| rpi-edit-diagnostics | Replace edit with exact matching and compiler-style failure reports |
Durable workflow state is owned by the native host; packages do not provide a second durable runtime.
Extensions inspired by Pi packages are independent Rust implementations, not
ports of upstream source code, except the candidate search in
rpi-edit-diagnostics, which is ported from pi-semantic-edit (MIT; see its
NOTICE).
rpi-voice embeds sherpa-onnx + SenseVoice for offline speech recognition by
default. OpenAI-compatible STT is also available; see the
voice guide for model setup, build options and
speech output configuration.
rpi-run-stats adds a live monitoring row below the usage footer: turns, LLM calls, tool executions,
output tok/s, time to first token, response time, rolling 60-second TPM,
input/output/cache tokens, errors and USD cost. Use /stats on, /stats off
or /stats to toggle it, or press F8. The row uses compact monochrome symbols
in three groups and retains measured timing between requests. USD accumulates model usage costs calculated by the host from
model pricing. It uses the host's generic UiComponent text interface.
See rpi-run-stats for measurement definitions.
Code Mode's first full-parity increment is implemented, not the full plan.
The extension requires exact version-1 resultEnvelope, hostAccounting,
parentProgress and losslessValues capabilities and fails closed on older
hosts. Local evidence: 72 package tests passed, strict all-target package
Clippy passed, 1109 host tests passed / 6 ignored / 0 failed, host formatting
passed, and 35 real Windows host + DLL + fixture + gate smoke cases passed.
Final results and binary hashes are at
pi-rust-codemode/target/codemode-full-parity-smoke-5/; this is source-build
qualification, not deployment or a new CI-green claim. Large values
beyond 1 MiB, complete child history/progress/recovery and Web/ACP child
cards/reload remain outstanding; self/ancestor tools remain excluded.
See the parity status matrix.
rpi-provider bundles DeepSeek, OpenRouter, OpenCode Go, llama.cpp, Proxy,
Antigravity and OpenAI Codex. One native plugin entry registers their model
catalogs and authentication policies. The package also adds ChatGPT sign-in
for the host’s built-in OpenAI provider.
rpi install rpi-provider --github pi-rust/rpi-extensionUse the rpi 0.31.0 host. To migrate an installation of rpi-providers,
uninstall the old package before installing the renamed release. Existing
provider configuration and credentials carry over.
See the package guide for compatibility,
source linking, migration and tests.
rpi-web provides project-based conversations in a browser, with streaming replies, tool interactions, Markdown rendering, file previews, and Git diffs. The interface supports English and Simplified Chinese. It supports a native extension entry point and a standalone program, sharing the same Web core.
The per-extension archive for a published version is on this repository's
Releases. The
portable Web bundle with the extracted assets/ directory is produced by the
manual release-web.yml workflow; run it from main before following the
standalone start commands. Install the rpi 0.7.0 host and configure model credentials for the service process before starting:
# Run from the extracted Web directory with an existing project directory.
./rpi-web --project /path/to/project --rpi-bin /path/to/rpi --assets ./assets --port 3030Open http://127.0.0.1:3030/, select a project, and create a session. On Windows, use rpi-web.exe and rpi.exe.
The Web user guide covers Windows / Linux / macOS setup, project creation, model credentials, password login, remote access, persistence, and upgrades. Web 0.1.7 uses rpi --webserver to start the native extension with embedded frontend resources; --web remains a compatibility alias. Install it with rpi install rpi-web --github pi-rust/rpi-extension, or from a checkout using rpi install rpi-web --path packages/rpi-web.
Web 0.1.1 supports .rpi/web.json startup settings. Run rpi-web --init once in a project directory, configure the host and assets paths, then use rpi-web for subsequent starts. Global defaults can be stored in ~/.rpi/web.json, and CLI arguments provide temporary overrides. Users of Web 0.1.0 must upgrade to use configuration files.
rpi-extcore now holds the common ACP/Web native RPC, run, session, history, event and workspace capabilities. rpi-httpcore adapts those services to the existing HTTP/SSE API and provides an API-only executable. rpi-web adds the embedded browser frontend; rpi-acp maps the common runtime to ACP.
cargo run --locked -p rpi-httpcore -- --project /path/to/project --rpi-bin /path/to/rpi --port 3030rpi-http packages the same API-only service as a standard native plugin
(rpi --http) through the rpi-httpcore library. It only maps the existing
plugin lifecycle onto rpi-httpcore; it starts a separate core Service and
does not share the live Agent session that loaded the extension. The
rpi-http-service executable ships the same API-only service without the plugin
host.
rpi-extcore is also published as a reusable crates.io library. Applications
can use rpi-extcore = "0.2" with Rust 1.88 or newer and a compatible native
rpi --mode rpc executable at runtime. See
rpi-extcore, rpi-httpcore and the architecture contract. The new packages are ordinary Rust libraries; existing extension installation and startup commands remain the same.
For frontend work, the local hot-reload topology (development worktree, production checkout, ports, launchd services and the deploy helper) is documented in the Web hot-reload guide.
rpi-mcp-server is the reverse direction of rpi-mcp-adapter: it publishes the
agent to MCP clients instead of consuming MCP servers.
MCP client -> MCP over stdin/stdout -> rpi-mcp-bridge -> rpi --mode rpc
(or `rpi --mcp`, which reuses the host's `ownsStdio` ABI)
The package owns the MCP JSON-RPC framing, tool catalog, bounded session
resources (rpi://session/transcript, rpi://session/state) with
resources/subscribe updates, tools/call concurrency and cancellation
mapping. Native session lifecycle, prompt
acceptance, settlement and child cleanup stay in rpi-extcore. The standalone
bridge is the recommended integration because it owns its own stdin/stdout and
therefore needs no host stdio arbitration. The same bridge can serve MCP
Streamable HTTP (--http <addr>, POST /mcp) for clients that cannot spawn a
process, plus a private WebSocket channel (GET /mcp/ws) for our own clients.
rpi install rpi-mcp-server installs the extension (rpi --mcp). The
recommended entry point, the rpi-mcp-bridge executable, ships as a standalone
per-platform archive next to the ACP bridge:
task pack-mcp # dist/rpi-mcp-<platform>.tar.gz with the binary at the rootSee the MCP integration guide for transport choice, client configuration, trust boundaries and troubleshooting, and the MCP server package README for the exact tool arguments and limits.
rpi-acp contains the ACP protocol, session history, streaming, question handling
and Zed registration. The extension and standalone rpi-acp-bridge use the same
implementation within this package.
Computer / Zed -> ACP over stdin/stdout -> rpi --acp -> rpi --mode rpc
(one child per session)
Install the extension with the rpi host:
rpi install rpi-acpFor Open WebUI Computer, deploy Computer separately and configure its native
ACP agent to launch the rpi executable with --acp. The process must have
access to the installed extension, provider credentials, project directory and
writable session storage. Tools run in the workspace sent by the client's
session/new request. Container deployments must make that same path available
to the agent process.
Set RPI_ACP_NO_AUTO_REGISTER_ZED=1 in Computer's agent environment to disable
automatic Zed registration. Set RPI_ACP_SESSION_DIR to an absolute directory
when session history needs a persistent container volume. See the
ACP package README
for the connection requirements and client capabilities.
For Zed, run rpi --install-zed to register the agent or rpi --print-zed
to print the settings snippet. Registration preserves comments and creates a
backup when updating an existing file.
The standalone bridge owns stdin/stdout and starts rpi --mode rpc itself.
Build its archive with task pack-acp; use RPI_BIN to select the backend
executable. Its packaging and proposed ACP Registry entry are documented in
registry/README.md.
rpi-ui-adapter adds rpi --webui=openwebui to connect an existing Open WebUI
instance directly to rpi ACP, with streaming, progress, tool details and cancellation.
Each UI has its own project configuration in .rpi/webui/<UI>.json;
--webui only selects the adapter.
It automatically installs a managed Pipe; Computer is not required. rpi and
the project can remain outside the UI container. See the
Chinese setup guide for configuration examples,
container networking and session behavior.
Source builds use stable Rust and Cargo. Task is required for the task
commands; Python 3 is required for the ACP integration tests. The rpi host
must already be installed and configured to run the extensions.
cargo build -p rpi-provider --locked
cargo test --workspace --locked
task installBuild rpi-provider before running its integration tests, which load the
actual native library.
task install builds the workspace and copies catalog extensions to
~/.rpi/agent/extensions, or $RPI_CODING_AGENT_DIR/extensions when configured.
The CLI discovers the default directory automatically; an
explicit directory also works:
rpi --extensions-dir "$HOME/.rpi/agent/extensions"These are cdylib extensions, so plain cargo install is not the right
consumer installation mechanism. The cross-platform consumer command is built
into the rpi host:
rpi install rpi-todo --github pi-rust/rpi-extension
rpi install rpi-todo --github pi-rust/rpi-extension --version 0.3.4To install GitHub prebuilt archives from this repository, specify --github:
rpi install rpi-ui-adapter --github pi-rust/rpi-extension
rpi install rpi-provider --github pi-rust/rpi-extension
rpi updateUse rpi uninstall <package> to remove a package installed through the host.
Check each package guide for host requirements and source-install alternatives.
A self-contained platform bundle (extension libraries, catalog and the
rpi-package-install binary) is produced by the manual release-assets.yml and
release-unix.yml entry points and attached to this repository's Releases. No
shell script is involved:
# Linux / macOS
tar -xzf rpi-packages-linux-x86_64.tar.gz
cd rpi-packages-linux-x86_64
./rpi-package-install install --source-dir .# Windows
Expand-Archive .\rpi-packages-windows-x86_64.zip .
cd .\rpi-packages-windows-x86_64
.\rpi-package-install.exe install --source-dir .Developers can instead clone this repository and run task install.
rpi-provider enables the workspace SDK’s provider feature. A sibling pi-rust checkout
is not needed for the workspace build. Linux builds with voice support also need native audio
and TLS development libraries (libasound2-dev, libssl-dev and pkg-config
on Ubuntu).
To install an already-downloaded archive without unpacking it by hand:
task install-bundle ARCHIVE=dist/rpi-packages-windows-x86_64.zipThe optional task smoke maintainer check exercises the host loader and does
require a sibling pi-rust checkout.
To test ACP unit tests and deterministic streaming scenarios, run:
task test-acpOptional real-host lifecycle checks also run when RPI_TEST_HOST and
RPI_TEST_PLUGIN point to the rpi executable and built ACP library.
rpi-im-message runs the Feishu/Lark long-connection server with:
rpi --im-message-server --im-profile feishu-mainThe profile is optional when defaultProfile is set in .rpi/im.json (or
~/.rpi/agent/im.json). Set the app secret through the profile's environment
variable before starting the process.
This repository publishes to crates.io. Actions → Version and publish crates
(workflow_dispatch on main) runs release-plz against the published registry
baseline: it bumps versions for unpublished changes, regenerates changelogs,
synchronizes catalog/packages.json, tests the workspace, dry-runs
cargo publish --workspace, merges the prepared metadata through a version pull
request, publishes the crates and creates the <package>-v<version> tags and
GitHub Releases. The workflow then builds the cross-platform assets.
- The
modeinput defaults todry-run. It generates candidate versions and changelogs in the runner checkout, tests the workspace and checks crate packaging. Version PRs, crate publication, release tags and cross-platform asset workflows requirepublish. - Publishing needs the
CARGO_REGISTRY_TOKENrepository secret with permission for every crate in the workspace. - Versions already on crates.io are skipped; only unpublished changes release.
- Package tags are created by the release and are immutable.
Actions → Publish GitHub extensions remains available as a GitHub-only
backfill that needs no crates.io token. It validates that each selected catalog
package declares repository = https://github.com/pi-rust/rpi-extension, checks
all version tags before mutating anything, uploads validated archives before the
rpi-extension.json discovery manifest, and publishes drafts only after every
supported platform succeeds. Do not run both entries for the same versions.
See the release workflow and distribution protocol for the publishing rules and the host-side install protocol, the GitHub release guide for the backfill path, optional credentials and Android signing, and the JSON schema for the discovery manifest.
Release tooling checks run on every change to .github/scripts,
catalog/packages.json or the release workflows:
python3 -m unittest discover -s .github/scripts -p 'test_*.py' -v
python3 .github/scripts/github-release.py plan --repository pi-rust/rpi-extensionThe plan command prints the selection and source commit without creating tags
or releases. task publish-dry-run remains available for a local preflight.
task pack also creates a directly installable platform bundle under dist/.
Delegated child observation and cancellation are exposed through native-capability-gated core services and HTTP routes. Observations are bounded and volatile; this does not add independent child sessions.