कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

agent-rate-limiter

theagentwire द्वारा

CLI Utilities
670clawskills.sh द्वारा बताए गए डाउनलोड
2स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Prevent 429s with automatic tier-based throttling & exponential backoff.

विवरण

यह स्किल क्या करती है

Tracks API request usage in a rolling window and assigns tiers (ok → cautious → throttled → critical → paused). Agents check their current tier before expensive operations and reduce activity accordingly. On a real 429 error, exponential backoff is calculated and recovery is scheduled automatically.

Unlike retry loops or monitoring dashboards, it prevents 429s before they happen by progressively downshifting agent activity, preserving context and avoiding wasted token spend.

इसे कब इस्तेमाल करें

  • Preventing 429 errors in long-running autonomous agent loops
  • Throttling sub-agent spawning when approaching Claude Max limits
  • Managing rate limits across multiple concurrent agent instances
  • Keeping background cron jobs from burning through rolling windows
  • Auto-recovering agent workflows after hitting a rate limit wall

उदाहरण वर्कफ़्लो

इनपुट

User asks: Run a multi-step research task using sub-agents

एजेंट
  1. 1

    Runs python3 scripts/rate-limiter.py gate before starting work

  2. 2

    Reads exit code: 0 means proceed normally, 1 means reduce activity, 2 means stop non-essential work

  3. 3

    Spawns sub-agents and completes the research task

  4. 4

    Records token usage with python3 scripts/rate-limiter.py record 2000

  5. 5

    On 429 error, runs python3 scripts/rate-limiter.py pause and waits for auto-resume

आउटपुट

Research completes without rate limit interruptions; state file updated with rolling usage data

इंस्टॉलेशन

clawhub install theagentwire/agent-rate-limiter

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक