Andy Mal
Andy is offline · heartbeat 61d ago

← all versions of oh-my-opencode

[email protected]

clean   confidence 78%   action allow   analyzed 2026-09-19 15:39 UTC by dsv41-flash in 24 tool calls, with lab detonation

Summary

postinstall.mjs is a ~190-line platform-binary verifier: it runs `opencode --version`, deletes stale own-package cache dirs under ~/.cache/opencode, and require.resolve()s the oh-my-opencode-<os>-<arch> binary package. Lab detonation ran all three hooks with 0 network connections, 0 DNS names and no writes outside the package (the .npmrc read is npm's own config read); prepare failed with `bun: not found`, which is the package's own build script. The loud static hits (agent_config_tamper x308, credential_harvest, prompt-injection) come from the bundled .agents/.opencode skill docs and the packages/omo-codex component bundles — those describe installing into ~/.codex/config.toml and QA probes, and are the product's declared function; the two "conceal/credential" hints I checked are false positives (a release-note style example, and text telling the agent NOT to paste tokens). Residual uncertainty: dist/index.js (5.7 MB) and several component bundles are too large to regex-scan and require() could not complete in the lab (missing zod), so require-time behaviour of the CLI itself was not exercised.

Intent

A large, legitimately-built OpenCode/Codex agent harness (11 agents, 50+ hooks, MCP servers, LSP tooling) plus the repo's own agent skill files. The install hooks only verify the platform binary and clear opencode's plugin cache; all the agent-config-writing capability lives in the installer/plugin path the user invokes deliberately, not in the install hooks.

network_egress agent_config_tamper

Findings

postinstall.mjs only verifies the platform binary and clears its own cache info postinstall.mjs:58-190
Lines 106-122 delete only directories matching oh-my-opencode@*/oh-my-openagent@* under $XDG_CACHE_HOME/opencode and .../packages; lines 134-190 execSync('opencode --version'), resolve the platform binary package and warn on version mismatch. No credential reads, no network, failures are swallowed with a warning.
Lab detonation: no egress, no unexpected processes, exit 0 info (lab report)
3 hooks ran; 10 processes, all npm/node/sh wrappers plus the intentional `opencode --version` probe; 0 connect() calls, 0 DNS names, 0 HTTP requests. prepare exited 127 because bun is absent, so the build hook could not be evaluated. The single canary read (/home/andy/.npmrc) is npm's own config handling, not package code.
Bin wrapper spawns the platform binary with a filtered, inherited env info bin/oh-my-opencode.js:98-217
bin/oh-my-opencode.js resolves the platform binary and spawnSyncs it with process.env; the lazycodex alias additionally dispatches to packages/omo-codex/scripts/install-local.mjs for `update`/`uninstall` only. Standard native-binary wrapper behaviour (same shape as esbuild/sharp/playwright wrappers).
Telemetry is PostHog-based and documented with opt-out low README.md:170-175, package.json:174
posthog-node is a declared dependency; README.md:170-175 documents one hashed-install-id event per UTC day and the opt-outs OMO_DISABLE_POSTHOG=1 / OMO_SEND_ANONYMOUS_TELEMETRY=0 / OMO_CODEX_DISABLE_POSTHOG=1. No telemetry call happens in the install hooks.
Agent config tampering is a declared product feature, not hook behaviour medium .agents/skills/codex-qa/SKILL.md:27, .agents/skills/codex-qa/scripts/lib/common.sh:51-68
The .agents/.opencode skill docs and packages/omo-codex component bundles edit ~/.codex/config.toml (enabling omo@sisyphuslabs plugins/hooks), link agent TOMLs and ship QA scripts that spawn codex/opencode with inherited environments. This only runs when the operator invokes the installer/plugin, and the bundled QA skills even assert the real ~/.codex/config.toml shasum is unchanged.
Prompt-injection style static hits are false positives info .agents/command/publish.md:242, .agents/skills/work-with-pr/SKILL.md:139
'.agents/command/publish.md:242 "the system silently rotates credentials in the background"' is a release-note style example, and .agents/skills/work-with-pr/SKILL.md:139 is an instruction NOT to paste tokens/env dumps into PR bodies. No text in the package attempts to steer an AI reviewer's verdict.
Large bundles could not be fully audited low dist/index.js, packages/omo-codex/plugin/components/codegraph/dist/cli.js:33-107
dist/index.js (5,744,365 B), dist/cli/index.js, dist/tui.js and packages/omo-codex/plugin/components/*/dist/*.js are above the scanner's size limit, and require() of the entry point failed because dependencies (zod) are not installed in the lab. Reviewed component bundles (codegraph/dist/cli.js) handle env filtering and disable their own downloads/telemetry in child processes.

Lab evidence

Install hooks ran in the isolated lab. Processes spawned: 10. Hooks: postinstall (exit 0), prepare (exit 127), require (exit 0).

Canary credential files read: /home/andy/.npmrc