Skip to content

fix(brief): Pi and OpenCode get the probes through pixel brief --parts (#906) - #919

Merged
LivioGama merged 2 commits into
mainfrom
fix/906-brief-command-budget
Oct 14, 2026
Merged

LivioGama merged 2 commits into
mainfrom
fix/906-brief-command-budget

Conversation

@LivioGama

@LivioGama LivioGama commented Oct 14, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #906

Summary

The probes reached Claude Code, Codex and Gemini, but not Pi or OpenCode. Those two run pixel brief, which was capped under 4 000 bytes. That is the limit our own extensions set (MAX_OUTPUT = 4_000), and it cut every probe block.

  • pixel brief --parts N (1–8, default 1) gives the command the pack and probe budget of an N-part prompt hook, printed as one text. With --parts 1 nothing changes: at most CLI_CHARS (3 900) and the probes capped at COMMAND_MAX_BYTES.
  • The OpenCode (opencode-brief.js) and Pi (pi-brief.ts) extensions pass --parts 3 and accept up to 30 000 bytes.

Evidence

Run on merged main plus this branch, in a temp HOME after pixel setup --yes, on the pixel-5 census question (an error-message question):

Path Before After
pixel brief (Pi, OpenCode) 3 356 B, no error origin block --parts 3: 12 953 B with the block
Claude / Codex hooks (3 parts) 12 955 B with the block unchanged
Gemini hook ~10 KB with the block unchanged
  • cargo test -p pixel-cli --bin pixel -- region_pack execution_brief::probes execution_brief::chain: 251 passed.
  • cargo test -p pixel-install: all passed.
  • cargo clippy -p pixel-cli --all-targets -- -D warnings: clean.

Merge Danger

Door: two-way. The new flag defaults to the old behaviour.

Blast radius: Pi and OpenCode users get larger briefs, up to about 30 KB of context per prompt, as Claude and Codex already do.

Docs touched

ARCHITECTURE.md (the region pack paragraph: the brief command cap and --parts), changelog.d/906-brief-command-parts.fixed.md.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

Summary by CodeRabbit

  • New Features
    • Added a --parts option to pixel brief to control how much context it returns.
    • Pi and OpenCode briefs now request three parts and support outputs up to 30,000 bytes.
    • Brief output budgets now reflect the configured parts setting.

#906)

The brief command was capped under 4 000 bytes, the limit the Pi and
OpenCode extensions set themselves, so the probe blocks were cut on those
two hosts while Claude, Codex and Gemini received them. --parts N gives the
command the pack and probe budget of an N-part hook; both extensions pass 3
and accept 30 000 bytes. pixel-5 through pixel brief: 3 356 B without the
error-origin block before, 12 953 B with it after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration
  • Configuration used: Repository: Pixel-CLI/pixel/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ea1a54d4-82d9-4eca-bb67-1feeac4ab47d
📥 Commits

Reviewing files that changed from the base of the PR and between 393b067 and b7540bc.

📒 Files selected for processing: 7
  • ARCHITECTURE.md
  • changelog.d/906-brief-command-parts.fixed.md
  • crates/pixel-install/assets/opencode-brief.js
  • crates/pixel-install/assets/pi-brief.ts
  • crates/pixel/src/execution_brief/chain.rs
  • crates/pixel/src/execution_brief/region_pack.rs
  • crates/pixel/src/main.rs
 ________________________________________________________________________________________________________________________________________
< Use saboteurs to test your testing. Introduce bugs on purpose in a separate copy of the source to verify that testing will catch them. >
 ----------------------------------------------------------------------------------------------------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@pixelio-bot

pixelio-bot Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

⚠️ Pixelio could not repair this PR

⏱ Duration 1m 15s

diff rejected by verify gate (classified suspicious)

Comment @pixelio-bot fix to try again, or push a commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@pixelio-bot

pixelio-bot Bot commented Oct 14, 2026

Copy link
Copy Markdown

Pixelio — needs human. Attempt budget exhausted.

Last failure: diff rejected by verify gate (classified suspicious)
A new head or @pixelio-bot will revive it.

@LivioGama
LivioGama merged commit b7dd7fb into main Oct 14, 2026
18 of 19 checks passed
@LivioGama
LivioGama deleted the fix/906-brief-command-budget branch October 14, 2026 10:37
LivioGama added a commit that referenced this pull request Nov 25, 2026
#906) (#919)

* fix(brief): Pi and OpenCode get the probes through pixel brief --parts (#906)

The brief command was capped under 4 000 bytes, the limit the Pi and
OpenCode extensions set themselves, so the probe blocks were cut on those
two hosts while Claude, Codex and Gemini received them. --parts N gives the
command the pack and probe budget of an N-part hook; both extensions pass 3
and accept 30 000 bytes. pixel-5 through pixel brief: 3 356 B without the
error-origin block before, 12 953 B with it after.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* docs(changelog): scope the brief --parts fragment (#906)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant