docs(readme): rewrite around unmodified pi + extensions (M5–M7) - #2
Merged
Conversation
The README still described the trimmed agent.bundle.js path as the story, the
old lean `api.addTool` plugin API, and listed M5 as "blocked on" the QuickJS
linker crash — all superseded by the merged M5–M7 work.
Rewrites it around what shipped:
- Leads with "run the unmodified pi-coding-agent + its extensions on QuickJS".
- Makes **writing an extension** a first-class section: the default-factory
format (registerTool/on, the execute(toolCallId, input, …) → {content:[…]}
contract), how it's loaded through our oxc loader (no jiti) via pi's
extensionFactories seam, and an honest builtin capability matrix (fs/
child_process/process real; crypto=FNV partial; http/net/tls/… stubs — use
fetch for networking).
- Frames the **Rust `PiRuntime` API** as the embedding surface for downstream
hosts like cat, and distinguishes the two ways to run pi (trimmed core vs. the
full unmodified bundle).
- Updates status to "what works today" and the build/test commands.
Docs only.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The README was stale — it described the trimmed
agent.bundle.jspath as the main story, the old leanapi.addToolplugin API, and listed M5 as "blocked on" the QuickJS linker crash. All superseded by the merged M5–M7 work (#1).Changes
pi-coding-agentand its extensions on QuickJS, no Node/bun.execute(toolCallId, input, …) → { content: [...] }tool contract, how it loads through our oxc loader (no jiti) via pi'sextensionFactoriesseam, and an honest builtin capability matrix (real:fs/child_process/process/…; partial:crypto= FNV; stubs:http/net/tls/… — usefetchfor networking).PiRuntimeAPI framed as the embedding surface for downstream hosts likecat, with the two ways to run pi (trimmed core vs. full unmodified bundle) called out.#[ignore]bundle-gated tests).Docs only — no code changes.
🤖 Generated with Claude Code