Repository navigation
Description
Proposal
One binary from this package with verbs, and it is the only entry point we document for any host:
ocsi install pi # registers this package with Pi, then verifies it
ocsi install omp
ocsi launch pi # starts the host on the correct runtime
ocsi doctor # one screen explaining what is and is not wired up
This replaces #611. Do not ship osi-pi and osi-omp as separate executables: they would be two programs with one job, and each new host would add another. One command with a host argument is also the shape that lets ocsi install run a post-install check, which is the part that actually failed in practice.
Why a launcher at all, when the hosts have their own install commands
Because on the two hosts people actually have installed, the runtime requirement is already satisfied by the host's own entry point — and only there:
| Host | Entry point | Interpreter | Needs our launcher to run? |
|---|---|---|---|
| OpenCode | opencode |
Bun | No |
| oh-my-pi 19.2.1 | omp |
#!/usr/bin/env bun |
No |
| Pi 1.7.0 | pi |
#!/usr/bin/env node |
Yes, and #610 makes it non-fatal |
omp plugin install . and omp plugin list work verbatim, confirmed on a real machine, and the plugin then reads memories with no extra flags. Pi is the one host whose documented launcher is the wrong runtime. So the launcher's job is narrow and honest: resolve Pi's bundle, exec it with Bun, and refuse to start if Bun is missing — with the install command, not a runtime crash. The install verb exists so the registration and the check happen in one motion.
If #612 decides the store should run on Node, ocsi stays useful for install and doctor and launch becomes a passthrough. That is why the decision in #612 does not block this one.
Required
ocsi doctormust separate "no memory tools are registered in this host" from "no memories were found". Observed: with the plugin not installed in oh-my-pi, asking the agent to check memories returned a confident None — the model had nomemory_*tool and said "none" anyway. A user cannot tell that apart from an empty store, and it reads as the plugin being broken when it is merely absent. This is the same class as the silent fallbacks we already refuse elsewhere: an absent capability has to be a named, visible state.ocsi installmust check the runtime before registering. A registration that succeeds and then breaks the host's next launch is strictly worse than a refusal. This is Pi adapter throws at extension load, so a Node-launched Pi refuses to start #610's failure mode seen from the install side: fixing the throw is necessary, not sufficient, because a half-wired install still leaves the user without memory and with no way to see it.- Resolution across real layouts, not just
npm root -g: global npm, a local project install, pnpm global. On Windows the extension matters —bun installwrites an extensionless POSIX shim whilenpm installwrites a.cmd, which is why no Bun-published package has ever put a launcher on Windows PATH. The shipped artifact must be a real.cmd/.ps1for Windows, not a file relying on an extension. - Plain Node-compatible JavaScript for the launcher itself: it only resolves paths and spawns processes, so it must never need the runtime it is screening for.
- Doctor's fields, printed even when healthy because they are the silent ones: Bun version, Node version, resolved host CLI and version, whether the package is registered in that host's settings, whether the host's tool list actually contains
memory_recall, the memory directory in use and whether the other hosts resolve the same one, whether auto-capture is on, and the visible row count for the current project.
Acceptance
From a clean machine with the package published: ocsi install pi && ocsi launch pi gives a session whose tool list contains memory_recall. The same pair works for omp. ocsi doctor names any remaining problem in one line each, and its output format is asserted by a test so quoted text in the docs cannot drift — the rule docs/reference/*.md already follows.
Verified on macOS and Linux with the real CLIs. Windows is verified by CI where a Bun-published launcher can be installed; if it still cannot, the README must say the Windows Pi route is untested rather than implying parity — and that sentence lives next to the adapter claim, not buried.
Non-goals
Not a Pi or oh-my-pi package manager: ocsi install registers this package and nothing else. Not a config UI — pi.json, omp.json and OPENCODE_MEMORY_DIR stay the configuration surface.
Activity
abogartz commentedon Dec 1, 2026
Closed as won't fix, on the owner's ruling. A launcher is not the shape this product ships. Host installation goes through each host's own plugin command, and the adapter architecture is what closes the runtime gap these tickets were written to work around.
That settles the direction rather than the difficulty: the work is unwanted, not unspecified. If the ruling changes, reopen this — the thread stays put and the next attempt starts from it instead of from zero.