opencode vs pi
Programmable capabilities
Reusable computation marks differ
3 opencode Default-on automations re-run code/shell on triggers with runCount/lastOutput; args untyped JSON (level 4 unmet)2 pi Skills with scripts persist; codemode scripts not saved; pi-durable journal replay is not unit re-run (level 3 unmet)Capability transfer
2 opencode Skills from dirs/paths/URLs; session fork exists; plugin/MCP executables not dependency-checked (level 3 unmet)2 pi Pi package install (npm/git/local) documented [D]; fork/clone exist; no dependency checking (level 3 unmet)Evidence and memory
Durable evidence
2 opencode Messages with tool parts in SQLite; revert deletes rows; no message retention policy (level 3 unmet)2 pi Append-only JSONL trees with tool calls; no retention policy, manual delete only (level 3 unmet)Context recovery marks differ
2 ↑3 opencode dev-only: sqlite_fts flag Release: summary plus re-reading saved tool-output paths; session search/read only under sqlite_fts2 pi Originals in JSONL; recovery via file lists and temp-file paths only; no transcript search tool (level 3 unmet)Memory maintenance marks differ
0 ↑1 opencode dev-only: home_memory Release: none. Dev home_memory uses plain dirs edited with file tools (L2 unmet), so its daily merge job cannot lift it past 1 (rule 3)0 pi No learned-memory facility and no maintenance instruction; AGENTS.md and skills are guidance filesSpecialist collaboration
Specialist definition marks differ
3 opencode Config/.md agents set model, prompt, permission rules; L4 unmet: parent agent denies not intersected (plan→general edits)1 pi Subagents exist only as shipped example extension; example code does not count toward BContinuation marks differ
4 opencode Durable child session resumed at boot; follow-ups to running child go through SQLite session_inbox (read in code)0 ↑3 pi alt: pi-durable checkpointed child tasks No subagents in core CLI (example only); pi-durable checkpointed children with restart limit 5Coordination marks differ
2 opencode Depth 1 enforced, per-job cancel; L3 unmet: no subagent concurrency cap found (Code Mode caps dev-only, codemode only)0 ↑1 pi alt: pi-durable No subagents in core CLI; pi-durable children and signals exist; unresolved: pi-durable depth/concurrency caps, cancellationExecution controls
Confinement marks differ
1 opencode Allow/ask/deny ruleset (allow *, *.env ask); no OS sandbox in release or dev builds0 ↑2 pi alt: Docker / OpenShell / Gondolin (documented) No approvals or OS boundary in the CLI; documented alternative deployments count at B but are capped at 2 (rule 1)Credential handling
1 opencode Full env inherited, plaintext credential DB; only *.env read-tool ask and host per-session env replacement1 pi Full env to bash; only inheritEnv:false for MCP and !command keychain lookups; L2 unmet: no denylistBudget enforcement
1 ↑2 opencode opt: per-agent steps steps unset by default, cost reporting only; setting the named per-agent steps key gives a level-2 work limit (R3)1 ↑2 pi alt: pi-durable maxTurns CLI reports usage only with a 3-retry cap; the pi-durable stack enforces a maxTurns work limit when set (R3); no cost admissionProduct integration
Embedding interfaces
4 opencode In-process SDK plus HTTP API with typed events, prompt/interrupt/fork/inbox, permission replies and an ACP agent, all in release4 pi In-processcreateAgentSession (with customTools) plus RPC JSONL with prompt/steer/follow_up/abort/fork; typed eventsDeclarative configuration marks differ
2 opencode Effect Schema type decode, butonExcessProperty: "ignore"; a malformed document is dropped with a warning1 pi Settings files explicitly not validated at runtime despite published schemas; only models.json is type-checkedDurable execution marks differ
4 opencode Durable inbox outlives disconnect; one execution per session; boot sweep resumes claims, documented as at-least-once2 ↑3 pi alt: pi-durable CLI rejects concurrent prompts; orphaned calls get only synthetic transform-time errors, not recorded. pi-durable resumes or settles failed; unresolved: disconnectOperations and verification
Service dependencies marks differ
R * opencode Clients ensure a localopencode serve --service process that stays resident when idleE pi Single Node process, no daemon or DB; MCP and fd/rg run as childrenExecution records marks differ
3 opencode Typed step/tool/execution failure events, optional OTLP. Revert and delete remove rows, so not protected2 pi JSONL includes tools, failures and retries, but the telemetry contract ships no exporter, so level-3 optional telemetry is unmetResult checks marks differ
3 opencode Built-in/goal judge re-prompts with stated caps (50 rounds, 3 stalls) and pauses; the caps are constants, not configurable per check2 pi Extension hooks can block or force another turn, with no stated cap; arguments are validated structurallyopencode vs codexgoosehermes-agentletta-codenullclawopenclawsoftware-agent-sdkspore
pi vs codexgoosehermes-agentletta-codenullclawopenclawsoftware-agent-sdkspore