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

オープン 初心者向け
#3,045 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@techaurah がすでに取り組んでいます。

2026年11月27日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github, typescript

調査の方向性

まずAGENTS.mdと、board-ops、issue-triage、security-advisoryのスキルレシピを読んでください。ペーシングのルールを更新し、GitHub APIの読み取りと書き込みを組み合わせた操作も対象に含め、書き込みが成功した直後の読み戻しを避け、単一項目の検索には対象を絞ったクエリを優先してください。書き込みの直後にボード全体を読み取るレシピがないか確認してください。AGENTS.mdと該当するレシピでガイダンスに一貫性があれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
11.3k
フォーク
1.6k
平均マージ
2時間 28分
マージ済み PR(30日)
111

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

modelcontextprotocol/inspector のほかの issue

modelcontextprotocol/inspector の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。