# breezewish/codexpotter — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `skills`
- Overall score: `3.5/5`
- Implementation check: `partial`
- Maturity: `early`
- Audited commit: `2984609bb6f7` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-01T20:26:55Z
- Repository: https://github.com/breezewish/codexpotter
- Radar entry: https://radar.alplab.co/#repo/breezewish/codexpotter
- License: `Apache-2.0`
- CI workflows: `.github/workflows`
- Tags: `codex`, `skills`, `agent-loop`, `subagents`, `prompt-protocol`, `setup-cli`

## Summary

A Codex skill package: skills/loop/SKILL.md is a detailed prompt protocol that drives fresh-context subagent rounds until a user goal is reconciled, plus npm/bin/codex-potter.js, a Node CLI whose single 'setup' command edits the global gitignore, removes a legacy profile, and delegates skill installation to the external 'skills' CLI.

## Implementation Check

The core is real (skills/loop/SKILL.md defines the full $loop control protocol with ::potter(ready)/::potter(exit) markers and npm/bin/codex-potter.js runSetup implements the wizard), but README.md line 29 still points the 'tiny footprint <1k tokens' claim at ./npm/resources/potter_worker.toml which does not exist at this commit, and setup installs skill content from the mutable v2 branch via a third-party CLI rather than from the audited code.

## When to Use

Use when you run Codex CLI/Desktop on a subscription and want unattended, multi-round task execution with fresh-context verification ($loop) or KB compaction ($compact-kb). Not for interactive tasks needing human feedback, non-Codex agents, or environments where executing the unpinned third-party 'skills' installer is unacceptable.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.0/5 |
| usability | 3.5/5 |
| reliability | 3.0/5 |
| security | 3.5/5 |
| integration | 3.5/5 |

## Code Evidence

npm/bin/codex-potter.js: runSetup writes '/.codexpotter' via writeTextAtomic (temp+rename) to the gitignore resolved by resolveGlobalGitignore using spawnSync('git', ['config','--global','--path','--get','core.excludesfile']) with XDG fallback, removes ~/.codex/agents/potter_worker.toml, then runLoopSkillInstaller spawns 'npx --yes skills add --yes -g https://github.com/breezewish/CodexPotter/tree/v2 -a codex' (bunx variant via detectPackageRunner); skills/loop/SKILL.md: full loop protocol — handoff files under .codexpotter/projects_v3/, rounds=N default 10, model=gpt-5.6-sol, ::potter(ready)/::potter(exit) completion markers, a requirement-by-requirement completion-audit Initial Prompt, continue-retry rules up to 5; npm/test/setup-cli.test.js: 12 node:test cases with temp HOME/XDG fixtures and fake npx/bunx shims asserting exact installer args, gitignore content, legacy-profile removal, confirmation/color behavior; .github/workflows/release.yml: tag-triggered (vX.Y.Z-next.N) npm publish --tag next --provenance that runs 'npm test' first; no eval/exec/network calls exist in the CLI itself.

## Issues Found

README.md:29 links './npm/resources/potter_worker.toml' (tiny-footprint claim) but that file is absent at this commit and npm/package.json 'files' still lists a nonexistent 'resources' dir; setup delegates to 'npx --yes skills add' (unpinned remote code execution, supply-chain exposure) against the mutable v2 branch; no everyday CI — 'npm test' only runs inside the tag-triggered release workflow.

## Key Risks

The $loop orchestration exists only as prompt text — round limits, markers, and the completion audit are enforced by the Codex agent following skills/loop/SKILL.md, not by any code, so real-world efficacy could not be verified statically; setup fetches skill content from the mutable 'v2' branch through the unpinned third-party 'skills' CLI, so installed behavior may diverge from this commit; CI runs tests only at release-tag time with no PR/push workflow; Actions pinned to major tags (checkout@v4, setup-node@v4), not SHAs; single contributor, no lockfiles, pre-1.0 next-tag releases only.

## Reviewed Files

- `README.md`
- `AGENTS.md`
- `npm/package.json`
- `npm/README.md`
- `npm/bin/codex-potter.js`
- `npm/test/setup-cli.test.js`
- `skills/loop/SKILL.md`
- `skills/compact-kb/SKILL.md`
- `.github/workflows/release.yml`
