Skip to content

docs(agents): ration CodeRabbit reviews and bind agent servers to Tailscale - #1272

Merged
devswha merged 2 commits into
mainfrom
docs/coderabbit-reviews
Oct 17, 2026
Merged

devswha merged 2 commits into
mainfrom
docs/coderabbit-reviews

Conversation

@devswha

@devswha devswha commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Change

CodeRabbit's review allowance is per PR author, and agents open their PRs as one account. In the last 60 PRs, 23 of devswha's 45 got "Review rate limited" and none of the 15 external ones did. The 45 PRs came with 52 @coderabbitai review re-asks over about 36 hours, which puts the account in CodeRabbit's lowest refill band: on the plan shown in its comments, 80+ reviews in 7 days refills one review per hour (rate limits). The re-asks follow the .coderabbit.yaml comment that says to ask again before every merge.

A rate-limited review also posts a passing CodeRabbit check, so PRs merge with no review while looking reviewed. Waiting for a review on every PR would cap merges at about one an hour.

This adds two rules to AGENTS.md's Maintainer workflow:

  • Spend fewer reviews: draft while unfinished, push once, no stacks of PRs opened together. Re-ask only after a commit that changes behaviour in server/, src/ or shared/, an HTTP/WS contract or a workflow. A rebase, changelog fragment, docs, comment or test-only commit gets no re-review.
  • Read "Review limit reached" as no review: a PR touching --takeover, observe permissions, queued input, authentication, an HTTP/WS contract or a workflow waits for a real review. Any other PR says in a comment that CodeRabbit did not review it, and merges on its checks and the maintainer.

The .coderabbit.yaml comment now points to that rule. Its settings are unchanged. Docs only, so there is no changelog fragment.

Also: agent-started servers bind to the Tailscale address

A server an agent starts for someone to open (manual QA, a preview) now binds to $(tailscale ip -4) instead of loopback, so the maintainer can open it from a phone or another PC. lanExposed() in server/access.ts counts a Tailscale-only bind as tailnet, not LAN. Binding 0.0.0.0 stays out, and tests keep port: 0 on loopback.

Checked on an isolated herdr (bun run check run): HOST=100.x.y.z PORT=7399 bun run server logs listening on http://100.x.y.z:7399, curl -i http://100.x.y.z:7399/api/health answers HTTP/1.1 200 OK, and 127.0.0.1:7399 does not answer. ss shows the listener only on the Tailscale address, and the port is free after stop.

Validation

…eview

Agents open every PR as one account, so CodeRabbit's per-author allowance runs out and refills one review an hour, while a rate-limited review still shows a passing check. Re-ask only after a behaviour change, keep unfinished work in drafts, and hold only risky PRs for a real review.
@coderabbitai

coderabbitai Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 9 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Repository: devswha/herdr-web-ui/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5c33f560-b2be-4d8e-88e8-5ca5b6149d9f
📥 Commits

Reviewing files that changed from the base of the PR and between 49e76b3 and 615a4ad.

📒 Files selected for processing: 2
  • .coderabbit.yaml
  • AGENTS.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

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

…e Tailscale address

A loopback bind cannot be opened from the phone or another PC the maintainer checks from. A Tailscale-only bind is reachable inside the tailnet only and is not counted as LAN exposure by lanExposed().
@devswha devswha changed the title docs(agents): ration CodeRabbit reviews and read a rate limit as no review docs(agents): ration CodeRabbit reviews and bind agent servers to Tailscale Oct 17, 2026
@devswha
devswha merged commit b6b693c into main Oct 17, 2026
9 checks passed
@devswha
devswha deleted the docs/coderabbit-reviews branch October 17, 2026 16:17
@devswha

devswha commented Oct 17, 2026

Copy link
Copy Markdown
Owner Author

CodeRabbit did not review this PR: its check passed as "Review rate limited". Under the rule this PR adds, a docs-only change (AGENTS.md and a .coderabbit.yaml comment, no settings) does not wait for a real review. It merges on its checks and the maintainer.

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