# can1357/oh-my-pi — AlpLab Radar Static Code Audit

- Ring: `adopt`
- Category: `agents`
- Overall score: `4.4/5`
- Implementation check: `verified`
- Maturity: `active`
- Audited commit: `6c731b0f1b94` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-01T20:26:55Z
- Repository: https://github.com/can1357/oh-my-pi
- Radar entry: https://radar.alplab.co/#repo/can1357/oh-my-pi
- License: `MIT`
- CI workflows: `.github/workflows`
- Tags: `coding-agent`, `llm`, `cli`, `rust`, `typescript`, `dev-tools`

## Summary

A terminal-first AI coding agent (fork of pi-mono) pairing a TypeScript engine with a large in-process Rust core: an embedded bash/zsh engine with ~67 ported coreutils, AST-gated approvals, an LSP/DAP-wired toolset, subagents, collab sessions, and 60+ LLM provider adapters.

## Implementation Check

The README's headline claims map to real code: the 31 built-in tools exist in packages/coding-agent/src/tools/registry.ts (BUILTIN_TOOLS/HIDDEN_TOOLS), the bash approval engine with parser-level command analysis is crates/shell/src/approval.rs, and the 60+ providers are concrete adapters under packages/ai/src/providers/ (anthropic.ts, openai-responses.ts, cursor.ts, gitlab-duo-workflow.ts, amazon-bedrock.ts, ...).

## When to Use

Use it as a daily terminal coding agent when you want an open-source, multi-provider alternative to closed coding CLIs with native performance, editor integration (ACP), MCP, and a real test/CI backbone. Not for environments that cannot trust repository-level inputs (it loads project extensions, hooks, skills, and .mcp.json by design) or where a Bun-based runtime and OS-level credential vault access are unwelcome.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 5.0/5 |
| usability | 4.5/5 |
| reliability | 3.0/5 |
| security | 4.5/5 |
| integration | 5.0/5 |

## Code Evidence

packages/coding-agent/src/tools/registry.ts defines BUILTIN_TOOLS/HIDDEN_TOOLS (31+3 tools) with per-settings gating (cfgBashEnabled, cfgLspEnabled, cfgMemoryBackend) and depth-limited task spawning (canSpawnAtDepth); crates/shell/src/approval.rs implements analyze_approval() — full bash 5.3/zsh 5.9 AST parsing for tool approval with restriction-segment extraction from $(...), heredocs, arithmetic, and zsh glob qualifiers, covered by in-file tests; crates/edit/src/engine.rs defines the ModeEngine trait (replace/patch/apply_patch/hashline/sloppy) staging all edits in memory before any write, and crates/edit/src/path_policy.rs enforces plan-mode writes via physical_path() symlink resolution (in_plan_writable_root test proves a symlink under a writable root cannot escape); packages/ai/src/auth/credential-cipher.ts seals credential rows AES-256-GCM under an OS-vault master key (sqlite-credential-store.ts rekey/unseal paths); packages/collab-web/src/components/transcript/Markdown.tsx escapes raw HTML tokens and validates link schemes via safeHref() before dangerouslySetInnerHTML; packages/utils/src/tls-fetch.ts is a NODE_EXTRA_CA_CERTS shim that merges extra roots into Bun's default trust store without disabling verification; .github/workflows/ci.yml pins actions by commit SHA, runs bazel test //crates/..., clippy-strict, cargo-deny license checks, builds native addons for 8 platform targets, smoke-tests release binaries per-OS (including Alpine containers), and gates publishing behind release_gate; scripts/install.sh verifies the downloaded binary's SHA-256 against the build service manifest and smoke-runs `omp --version` before reporting success; packages/coding-agent/src/telemetry-export-otlp.ts only activates OTLP export when OTEL_* endpoints are configured (no third-party analytics found by repo_search).

## Issues Found

packages/coding-agent/src/cli/claude-trace-cli.ts commits a self-signed MITM certificate/private key and launches the target with NODE_TLS_REJECT_UNAUTHORIZED=0 — an intentional dev-only capture helper (upstream TLS verification defaults to rejectUnauthorized: true), but the pattern is a footgun if copied; .github/workflows/nix.yml uses unpinned cachix/install-nix-action@v31 (the one SHA-unpinned action in CI); scripts/install.sh and scripts/install.ps1 are curl|sh-style installers, mitigated by mandatory SHA-256 manifest verification and a post-install smoke run.

## Key Risks

Static review only — nothing was executed; 'tests exist and CI runs them' does not prove they pass at this commit. Runtime needs Bun >= 1.4.4 (or the prebuilt binary) plus a provider API key or coding-plan subscription; github/security_scan/generate_image/tts and memory tools are setting-gated and off by default. The README's benchmark table (pass-rate lifts, token savings) is marketing and unverifiable statically. macOS Foundation Models bridge and several collab/relay behaviors could only be assessed from code and docs, not live. Rust LoC figures are README claims consistent with observed file sizes, not counted.

## Reviewed Files

- `README.md`
- `package.json`
- `.github/workflows/ci.yml`
- `.github/workflows/nix.yml`
- `.github/workflows/stale.yml`
- `.github/SECURITY.md`
- `scripts/install.sh`
- `packages/coding-agent/src/index.ts`
- `packages/coding-agent/src/tools/registry.ts`
- `packages/coding-agent/src/telemetry-export-otlp.ts`
- `packages/coding-agent/src/cli/claude-trace-cli.ts`
- `packages/collab-web/src/components/transcript/Markdown.tsx`
- `packages/utils/src/tls-fetch.ts`
- `docs/secrets.md`
- `crates/shell/src/approval.rs`
- `crates/edit/src/engine.rs`
- `crates/edit/src/path_policy.rs`
