Pixel for OpenCode

OpenCode keeps its native tools; pixel setup adds a plugin that puts a source-cited evidence brief in front of each code prompt, plus the pixel skill for follow-ups.

Updated

Install Pixel

Pixel is a command-line tool: OpenCode 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 OpenCode’s files when OpenCode's configuration directory exists ($XDG_CONFIG_HOME/opencode when that variable is set). For OpenCode:

  • ~/.config/opencode/plugins/pixel-brief.js

A per-prompt evidence brief from the auto-loaded plugins/pixel-brief.js, and the pixel skill in ~/.config/opencode/skills/pixel/; ordinary searches remain native.

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: OpenCode keeps its native search, and Pixel’s commands stay available when you ask for them.

Check it

pixel doctor .

It checks the binary, the daemon and this repository’s index, the parts OpenCode relies on.

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