feat: surface flare doctor --reclaim as an MCP action - #487
Conversation
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 52 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: CHILL Plan: Pro Run ID: 📒 Files selected for processing (7)
Comment |
…ctor) Adds a doctor action to the item MCP tool wrapping flare_git_core::doctor::scan/reclaim (item #235's CLI-only worktree hygiene scan/reclaim) so an MCP-only agent that hits the git worktree remove/prune shim denial has a discoverable path to worktree cleanup instead of a dead end. Also cross-references the new action from the shim's teardown-deny message and the item tool's own description. Agentflare-Agent: claude-code Agentflare-Branch: task/465-surface-flare-doctor-reclaim-via-mcp-wor Agentflare-Item: 465
8f33145 to
8d494af
Compare
Adds
item(action="doctor")as an MCP-exposed wrapper around the existingflare doctor/doctor::scan+reclaim(item #235), so agents working purely through MCP tools have a discoverable path to worktree cleanup instead of hitting a dead end.Also updates the
git worktree remove/pruneshim-denial message (crates/flare-git-core/src/classify.rs) to mentionitem(action="doctor", reclaim=true)alongside the existingcheck_merge/agentflare git worktree audit --pruneguidance.New tests:
src/mcp_server/tests/item_doctor_tests.rs— scan-only (no reclaim by default) and reclaim-deletes-a-stale-clean-linked-worktree.Verified:
cargo fmt --check,cargo clippy -p agentflare -p flare-git-core --all-targets -- -A unsafe_code -A clippy::pedantic -D warnings, fullflare-git-core(174 tests) andagentflaremcp_server(223 tests) suites all pass.Closes agentflare item #465. (Original automated PR creation failed with a GitHub 422 "body too long" — the agent's raw session reply was used as the body instead of a trimmed summary; opened manually with a short body instead.)