Repository navigation
Conversation
Enable worker-start --agent pi --model <provider/id> and map --effort to Pi's launch-time --thinking flag.
Greptile SummaryThe PR adds Pi to the shared agent launch-preference catalog, enabling orchestration workers to receive opaque provider/model IDs and mapped thinking levels.
Confidence Score: 5/5The PR appears safe to merge because no blocking failure remains within the eligible follow-up scope. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| src/shared/agent-session-option-catalog-pi.ts | Adds the Pi session-option catalog, model discovery, and launch argument mappings. |
| src/shared/pi-model-list-probe.ts | Centralizes Pi model-table parsing and supported thinking-level definitions. |
| src/shared/agent-session-option-catalog.ts | Registers Pi in the shared session-option catalog. |
| src/shared/commit-message-model-parsers.ts | Reuses the shared Pi parser and expands supported thinking levels. |
| src/main/runtime/rpc/methods/orchestration-worker-launch-preferences.test.ts | Covers Pi launch preferences, model-only requests, and invalid effort rejection. |
Reviews (2): Last reviewed commit: "fix(orchestration): share Pi thinking la..." | Re-trigger Greptile
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (12)
🚧 Files skipped from review as they are similar to previous changes (10)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughAdded Pi session option support with model discovery and provider-qualified model IDs. Added thinking-level options that map worker Merge Risk: ⚪ Minimal · up to The change adds Pi model and effort selection to worker launches without introducing an actionable merge-blocking risk; it is merge-ready after normal checks and review. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the main change and lists relevant validation commands, but it omits most required template sections, including ELI5, Why, Linked Issue, Visual Proof, Notes, and Checklist. The required issue reference is also missing. Resolution Use the repository template headings. Add an issue reference in the form Full details: Docstring CoverageExplanation Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 10 files. (1 skipped: 1 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
ℹ️ Minor suggestions only — the launch-path logic is sound and the tests are well targeted.
Reviewed changes
- Pi worker launch models — registers a new
pisession-option catalog soworker-start --agent pi --model <provider/id> --effort <level>resolves through the shared launch-preference path, mapping--effortto Pi's--thinkingand discovering opaqueprovider/idids frompi --list-models. - Docs + CLI notes — the orchestration skill guide and command spec notes now list Pi alongside Claude/Codex/Cursor and document the
--effort→--thinkingmapping. - Tests — launch-preference, catalog-parse, and TUI startup-plan coverage for the new Pi path (including "no invented thinking" and "reject unsupported level" cases).
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
Use one probe for worker catalogs and commit-message discovery so thinking levels and --list-models rows stay in sync.
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — the delta since the prior review consolidates Pi-specific logic into one shared module:
- Shared Pi probe module — extracted
PI_THINKING_LEVELS,parsePiModelTableRow, andgetPiModelTableFieldsintosrc/shared/pi-model-list-probe.ts, removing the duplicate ladder and table parser. - Unified thinking ladder —
commit-message-model-parsers.tsnow derivesthinkingLevelsfromPI_THINKING_LEVELS, expanding the Source Control picker to the fulloff|minimal|low|medium|high|xhigh|maxset that the worker launch path already used. - Stricter row parsing —
parsePiModelTableRowrequires the six-columnpi --list-modelsshape plus ayes/nothinking cell, so footer and login lines no longer become bogus model ids. - Test fixtures — catalog and commit-message tests updated for the shared parser (including a docs footer noise line).
Both prior suggestions are addressed cleanly.
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
…l-selection # Conflicts: # src/cli/bundled-skill-guides.ts
|
Note GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer. |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — the delta since the prior review is a merge of upstream/main into the feature branch:
- Upstream merge — pulled in the rewritten orchestration skill-guide description (the
orca-clivs Computer Use boundary wording) and regeneratedbundled-skill-guides.ts; the PR's Pi additions (--agent pi --model <provider/id>,--effort→--thinkingmapping) were preserved in both the source guide and the bundle. - Formatting-only drift —
runtime-status-recheck.tsshows a signature collapse inherited from the merge, with no behavior change.
The Pi feature code itself is unchanged from the previously approved state; the Pi-related tests pass (87 across the four touched suites).
DeepSeek Pro (free via Pullfrog for OSS) | 𝕏
|
This would be useful for launching supervised Pi workers with explicit model and thinking settings through Orca’s standard worker-start interface. Is there a blocker to reviving this PR, or a successor issue/PR we should support? What additional testing would help move this forward? |

Summary
orca orchestration worker-start --agent pi --model <provider/id>through the same launch-preference catalog used by Claude, Codex, and Cursor.pi --list-models(provider/id).--effortto Pi's launch-time--thinkingflag (off,minimal,low,medium,high,xhigh,max). Unlike OpenCode, Pi's TUI accepts thinking at spawn.Test plan
pnpm exec vitest run src/shared/agent-session-option-catalog.test.ts src/shared/tui-agent-startup-session-options.test.ts src/main/runtime/rpc/methods/orchestration-worker-launch-preferences.test.tspnpm tcpnpm run check:code-quality:changedpnpm run verify:bundled-skill-guidesAfter merge,
worker-start --agent pi --model google/gemini-3-pro --effort xhighshould launchpi --model google/gemini-3-pro --thinking xhighinstead of rejecting launch-time model selection.