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

Offen Anfängerfreundlich
#3,045 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@techaurah arbeitet bereits daran.

Seit 27.11.2026.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
72/100
Issue-Typ
Dokumentation
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
github, typescript

Rechercherichtung

Lies zuerst AGENTS.md und die Skill-Rezepte für board-ops, issue-triage und security-advisory. Aktualisiere die Regel zur Taktung, sodass sie kombinierte GitHub-API-Lese- und Schreibvorgänge abdeckt, vermeide unmittelbares Zurücklesen nach erfolgreichen Schreibvorgängen und bevorzuge gezielte Abfragen für die Suche nach einzelnen Elementen. Prüfe, ob ein Rezept einen Schreibvorgang mit einem unmittelbar folgenden vollständigen Board-Lesevorgang verknüpft; fertig ist die Aufgabe, wenn die Anleitung in AGENTS.md und den betroffenen Rezepten einheitlich ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
TypeScript
Sterne
11.3k
Forks
1.6k
Ø Merge
2 Std. 28 Min.
Gemergte PRs (30 T.)
111

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus modelcontextprotocol/inspector

Alle Issues in modelcontextprotocol/inspector

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.