Pixel for Codex

pixel setup registers Pixel’s hooks in Codex: each code prompt reaches the model with a source-cited evidence brief, and the pixel skill covers follow-up questions. Ordinary searches remain native.

Updated

Install Pixel

Pixel is a command-line tool: Codex runs the pixel binary, so install it first (macOS and Linux).

curl -fsSL https://github.com/Pixel-CLI/pixel/releases/latest/download/install.sh | sh

How to read the script before it runs. It does not change any agent’s configuration.

What pixel setup writes

pixel setup

Run it once, from anywhere; it writes Codex’s files in $CODEX_HOME instead of ~/.codex when that variable is set; the skill only when ~/.codex exists. For Codex:

  • ~/.codex/hooks.json
  • ~/.codex/skills/pixel/SKILL.md

Task lifecycle hooks, a prompt-submit evidence brief and a metrics relay in hooks.json, and the pixel skill in ~/.codex/skills/pixel/; native tools stay unchanged.

Every pixel setup also writes ~/.pixel/setup-receipt.json and ~/.pixel/config.yaml and ~/.claude/skills/pixel/SKILL.md and ~/.config/opencode/skills/pixel/SKILL.md and ~/.gemini/skills/pixel/SKILL.md and ~/.pixel/plugins/cand-j-callers/ and ~/.pixel/plugins/cand-j-chain/ and ~/.pixel/plugins/cand-j-stop-cause/ and ~/.pixel/plugins/cand-k-code-sites/ and ~/.pixel/plugins/cand-k-commit-patch/ and ~/.pixel/plugins/config-registry/ and ~/.pixel/plugins/doc-sections/ and ~/.pixel/plugins/error-origin/ and ~/.pixel/plugins/flow-rank/ and ~/.pixel/plugins/history-fallback/ and ~/.pixel/plugins/name-files/ and ~/.pixel/plugins/overview-answer-evidence/ and ~/.pixel/plugins/rank-blocks/ and ~/.pixel/plugins/test-bodies/. No prompt, rules file or retrieval guard is written: Codex keeps its native search, and Pixel’s commands stay available when you ask for them.

Codex runs a hook only after you review it with /hooks in codex; until then pixel doctor reports install.codex-hook-review, and Pixel never approves a hook for you.

Check it

pixel doctor .

pixel doctor . reports the wiring of every agent as green, stale or missing, and names the command that repairs each finding. For Codex alone:

pixel doctor . --only install.codex-metrics-hook --only install.codex-hook-review

Remove it

pixel setup --remove

It removes everything pixel setup wrote, for every agent at once, and the binary at ~/.local/bin/pixel, where the install script puts it. A package manager removes its own copy: uninstall with the manager that owns it.

Pixel for other agents