Skip to content

Pi and oh-my-pi pages say the adapters are not published; 0.40.0 ships them #607

Backlog

Description

@ocsi-architect

Problem

Three user-facing pages tell readers the non-OpenCode adapters are not in the published package. They are. Measured against the tarball npm actually serves for 0.40.0 (https://registry.npmjs.org/opencode-self-improvement/-/opencode-self-improvement-0.40.0.tgz): 11 files under src/adapters/pi/, 11 under src/adapters/oh-my-pi/, and both README.pi.md and README.oh-my-pi.md. The published manifest exports ., ./tui, ./pi and ./oh-my-pi.

The stale claims, verbatim:

  • README.pi.md — "This adapter is unreleased; use this checkout or a packed copy, not the existing npm release of opencode-self-improvement."
  • README.oh-my-pi.md — "The implementation is under consideration in [PR feat: add oh-my-pi adapter for the shared host interface #561]…; it is not yet in the published npm release."
  • docs/reference/oh-my-pi.md — "It is an unreleased adapter… These changes are not yet in the published npm release; install from this work branch or a package built from it."

Each is followed by install instructions that assume a checkout. A reader who trusts them does the slower, less reproducible install and is told, in the same document, that the easy one does not exist.

Why this is not just a wording fix

The status sentence is straightforward to correct. The install sections are not, because nobody has established what the correct command is on each host: neither page can say "install opencode-self-improvement/pi" until someone has run that against a real Pi and a real oh-my-pi install and seen the tools register. Guessing an install command in a setup guide is worse than the current stale one, because the current one at least works.

Required

  • Verify on a real host, for Pi and for oh-my-pi: does the published package's subpath entry point load through the host's own install mechanism? Record the command that worked, verbatim, plus the host and Bun versions. If the answer is no, say so in the page and keep the checkout route as the documented one — that is a real finding, not a failure.
  • Replace the "unreleased / not in the published npm release" sentences with what is true: the adapters ship in the published package, they are new, and support means the version they were tested against, which the same paragraph already names.
  • Keep the version pins. "Tested with upstream Pi 1.7.0" and "oh-my-pi 19.2.1" are the honest boundary and should get more prominent, not less, once the release claim is corrected.

Acceptance

No user-facing page states that these adapters are absent from the published package. Each install section carries either a command that was run on a real host in this repository's presence, or an explicit "install from a checkout, because ". The tested-version pin is stated in the same section as the status sentence.

Non-goals

Not a claim of support beyond the pinned versions, and no change to which hosts are supported. Related: #596 asks for a Pi page under docs/reference/, which this ticket should not duplicate — if #596 lands first, apply the same corrections there.

Activity

  1. added
    bug
    documentation
    on Nov 29, 2026
  2. ocsi-architect commented on Nov 29, 2026

    @ocsi-architect
    Author

    Resolution content for this ticket, verified on a machine with a throwaway HOME containing nothing but a models.json — no ~/.config, no OpenCode, no checkout.

    pi install npm:opencode-self-improvement

    That one line is the whole install. It writes {"packages":["npm:opencode-self-improvement"]} into ~/.pi/agent/settings.json and unpacks the published package to ~/.pi/agent/npm/node_modules/opencode-self-improvement with its three runtime dependencies only (@babel/parser, @lezer/markdown, zod). Observed: Installed npm:opencode-self-improvement.

    The host SDK is not needed at install or at run time. @earendil-works/pi-coding-agent is a devDependency, and every import of it under src/adapters/pi/ is import type, so it is erased during transpile. The installed tree contained no @earendil-works directory and the shipped entry point still loaded and registered its tools in a live session:

    LOAD: ok, default export is function          # bun import of src/adapters/pi/extension.ts
    model: evo/Qwen3.8-Flash-Next-UD-Q4_K_XL | tools: ['memory_list'] | stderr 0B
    reply: memory_list returned "No memories found"
    

    The store creates itself on first use, no OpenCode present: $HOME/.config/opencode/memory, mode drwx------, containing evidence/, status/, status.json. Reads and writes both work from there — a session that read a file first got Remembered: learning in build, stamped repo=bbafce6053b6. A ref-free write in a session with no engagement was blocked with ambiguous_memory (src/gate/gate.ts:881), which is the ordinary grounding rule rather than a cold-start defect; status="open" and /repo-init are the documented ways in.

    The equivalent for oh-my-pi resolves too — omp plugin install --dry-run opencode-self-improvement printed [dry-run] Would install opencode-self-improvement — but it is not executed evidence, so the page must not claim it until someone runs it for real.

    What this means for the prose

    README.pi.md and README.oh-my-pi.md currently document only the local-directory route (pi install ., omp plugin install .) — the developer route, which requires a git checkout that has to stay where it was cloned. The front page already shows the registry route for OpenCode (opencode plugin add opencode-self-improvement, README.md:18) and shows nothing of the kind for the other two hosts, so a person who has never cloned the repository finds no command they can run, plus the stale not-published wording this ticket is about.

    The replacement sections should lead with the registry install, keep the checkout route under a "working on the plugin" heading, and state the two prerequisites where the install command appears rather than further down: Bun for the shared engine, and for Pi specifically that the session has to start on Bun (#610 and #613 are what make that not the user's problem). Publishing is not blocked by anything here — the package is on the registry and installs from it today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugdocumentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions