AGENTS.md: extend GitHub rate-limit pacing from writes to reads

Đang mở Phù hợp với người mới
#3,045 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@techaurah đang làm issue này rồi.

Từ ngày 27/11/2026.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, typescript
Lĩnh vực
devtools, documentation

Hướng nghiên cứu

Bắt đầu bằng cách đọc AGENTS.md và các công thức kỹ năng board-ops, issue-triage và security-advisory. Cập nhật quy tắc nhịp độ để bao quát các thao tác đọc và ghi kết hợp qua GitHub API, tránh đọc lại ngay sau khi ghi thành công và ưu tiên truy vấn có mục tiêu khi tìm một mục đơn lẻ. Kiểm tra xem có công thức nào nối thao tác ghi với thao tác đọc toàn bộ bảng ngay sau đó hay không; công việc hoàn tất khi hướng dẫn nhất quán giữa AGENTS.md và các công thức bị ảnh hưởng.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

documentation v2

Problem

AGENTS.md's pacing rule (added in #2667) covers only writes:

Pace bulk GitHub writes: 1 s between requests, never in parallel, under 80 a minute and 500 an hour.

Reads trip the same secondary rate limit, and nothing tells an agent to pace them. During an advisory triage on 2026-11-27, a card create, two field edits and a verify read ran about a second apart. After that, every follow-up call failed with GraphQL: API rate limit exceeded, even though gh api rate_limit still showed 2,790 of the GraphQL quota left. Two patterns made it worse:

  • Read-back after every write. Each edit was followed at once by a verify read. That doubles the request rate, and it buys nothing when the write's exit code already reports success.
  • Whole-board dumps used as lookups. gh project item-list 28 --limit 2000 pages through the entire board to check one card's field. A targeted query (node(id:…){fieldValueByName(name:"Status")}) is a single small request.

Proposed amendment

Widen the AGENTS.md rule from writes to all GitHub API traffic, keeping the existing numbers:

  • Pace reads as well as writes. The 1 s spacing and the per-minute and per-hour caps apply to the combined stream.
  • Don't verify a write by reading it back straight away. Trust the exit code, or verify once later.
  • To check one item, prefer a targeted query over a full listing such as gh project item-list --limit 2000.

Also check whether any skill recipe (board-ops, issue-triage, security-advisory) chains write → immediate full-board read in a way that conflicts with the amended rule.

Ngôn ngữ chính
TypeScript
Star
11.3k
Fork
1.6k
Merge trung bình
2 giờ 28 phút
Pull request đã merge (30 ngày)
111

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của modelcontextprotocol/inspector

Tất cả issue của modelcontextprotocol/inspector

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.