feat(plugins): augment_prompt for the follow-up planner + reconcile docs#424
Conversation
Two follow-ups to the Direct-API augment_prompt work (#421): - The follow-up planner (planner.run_followup_planner) builds its own Direct-API session with a separate builder that #421 did not cover, so plugin prompt contributions never reached it. Apply the same augmentation to its message. - Centralize the guarded helper: move the coder-local _augment_direct_api_prompt into plugins.runtime as the public augment_direct_api_prompt, and have both coder.py and planner.py call it (planner no longer needs coder-private state). - Reconcile plugin-development.md: #417 landed a note stating augment_prompt is "Claude SDK only", which #421 made false. Flip the matrix row to cover Direct-API and Codex (delivered via the agent message) and rewrite the note. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
Warning Review limit reached
Next review available in: 54 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
|



Two follow-ups to the Direct-API
augment_promptwork in #421 (both merged: #417 tool hooks, #421 augment_prompt).1. Follow-up planner was uncovered
planner.run_followup_plannerbuilds its own Direct-API session via a separate builder that #421 didn't touch, so plugin prompt contributions (rules-steering-compiler,codebase-intelligence, ...) never reached it. Now it applies the same augmentation to its message.2. Centralized the helper
Moved the coder-local
_augment_direct_api_promptintoplugins.runtimeas the publicaugment_direct_api_prompt; bothcoder.pyandplanner.pycall it (planner no longer reaches into coder-private state). Same guarded semantics: no-op forclaude(already augmented viacreate_client), degrade-to-base on failure.3. Docs reconciliation
#417 landed a plugin-development note stating
augment_promptis "Claude SDK only" — #421 made that false. This flips the matrix row to ✅ for Direct-API and Codex (delivered via the agent message) and rewrites the note to describe the system-prompt-vs-message split and the double-apply guard.Tests
test_direct_api_prompt_augmentation.py(renamed fromtest_coder_prompt_augmentation.py, repointed at the shared helper): claude not augmented, openai/codex augmented with correct args, failure degrades to base. Regression: 246 runtime + 18 planner + plugin_runtime tests pass; ruff check + format clean.🤖 Generated with Claude Code