feat(engines): add privacycode as a supported engine - #74
Merged
Conversation
Registers privacycode alongside opencode/claude/codex/gemini/aider so `moshcode engines`, `moshcode install privacycode`, `moshcode agents privacycode` and the headless ai() shortcut all know about it. Installed via its official one-liner: curl -fsSL https://getprivacycode.com/install | sh privacycode is an opencode derivative, so it inherits opencode's flag surface (--auto, `agent list`, `run <prompt>`) and shares opencode's `mcp add --url` case — including the remote-servers-only limitation. Note: getprivacycode.com/install currently still drops the upstream `opencode` binary into ~/.opencode/bin, so the engine will report not-installed until getprivacycode ships its own releases and rebrands the installer. Registering bin "privacycode" (the name in its package.json) is the correct target state; pointing it at "opencode" would collide with the existing opencode engine. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
vu1nz Security Review0 finding(s) in PR #? No security issues found. |
This was referenced Jul 29, 2026
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.
Registers privacycode alongside opencode/claude/codex/gemini/aider so
moshcode engines,moshcode install privacycode,moshcode agents privacycodeand the headlessai()shortcut all know about it.Install one-liner used:
curl -fsSL https://getprivacycode.com/install | shChanges
src/engines.mjs— newprivacycodeentry (bin: privacycode,agentArgs: ["--auto"],agentsView: ["agent","list"],upgrade: privacycode upgrade); aliasespc/privacy/getprivacycode; headlessai()mapping (privacycode run <prompt>); added to thepickAiEnginefallback order.src/mcp.mjs— added toMCP_ENGINES, sharing opencode'smcp add --urlcase (privacycode is an opencode derivative, so it inherits the remote-servers-only limitation).README.md,test/engines.test.mjs— engine lists / expectations updated.Known gap (not a blocker for this PR)
https://getprivacycode.com/installis currently still the unmodified opencode installer:APP=opencode, installs into$HOME/.opencode/bin, and pulls fromgithub.com/anomalyco/opencode/releases. It therefore drops a binary namedopencode, notprivacycode, andprofullstack/getprivacycodehas no releases yet.So
moshcode install privacycoderuns fine but the engine keeps reporting not-installed until getprivacycode ships its own releases and rebrands the installer. Registeringbin: "privacycode"(the name inpackages/privacycode/package.json) is the correct target state — pointing it atopencodewould collide with the existing opencode engine.Testing
node --test test/engines.test.mjs test/mcp.test.mjs→ 33/33 pass.npm testhas one failure,upgrade tools selects installed workflow tools without self or engines, which reproduces on cleanmain(verified by stashing) — pre-existing and unrelated.moshcode enginesnow lists○ privacycode.🤖 Generated with Claude Code