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

Aperta Adatta ai principianti
#3,045 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@techaurah ci sta già lavorando.

Dal 27/11/2026.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Documentazione
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github, typescript

Direzione di ricerca

Inizia leggendo AGENTS.md e le ricette delle skill board-ops, issue-triage e security-advisory. Aggiorna la regola di cadenza affinché copra le letture e le scritture combinate dell’API GitHub, evita riletture immediate dopo scritture riuscite e preferisci query mirate per la ricerca di singoli elementi. Verifica se una ricetta concatena una scrittura a una lettura immediata dell’intera board; il lavoro è completato quando le indicazioni sono coerenti in AGENTS.md e nelle ricette interessate.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
11.3k
Fork
1.6k
Merge medio
2h 28m
PR unite (30g)
111

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di modelcontextprotocol/inspector

Tutte le issue di modelcontextprotocol/inspector

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.