← Back to PRs

#14054: #13923 ----[Feature] -- Provider-rate-limit-/-quota-query-tool

by harshmohite04 open 2026-02-11 11:21 View on GitHub →
agents stale
<!-- greptile_comment --> <h2>Greptile Overview</h2> <h3>Greptile Summary</h3> This PR adds a new `provider_quota` tool that allows agents to query provider-level rate limits and quota usage data. The implementation follows existing patterns from `session-status-tool.ts` and correctly integrates with the existing `provider-usage` infrastructure. **Key changes:** - Added `createProviderQuotaTool()` in `src/agents/tools/provider-quota-tool.ts` with proper TypeBox schema validation - Registered the tool in `openclaw-tools.ts` and added it to relevant tool groups in `tool-policy.ts` - Tool returns structured JSON with usage percentages, remaining capacity, and reset times **Issues found:** - `.claude/settings.local.json` contains developer-specific local configuration with Windows paths and should not be committed <h3>Confidence Score: 3/5</h3> - Safe to merge after removing the local settings file - The provider quota tool implementation is solid and follows established patterns, but the PR includes a local configuration file that should not be committed. This is a straightforward fix - simply remove `.claude/settings.local.json` from the commit. - `.claude/settings.local.json` must be removed from the PR before merging <!-- greptile_other_comments_section --> <sub>(2/5) Greptile learns from your feedback when you react with thumbs up/down!</sub> <!-- /greptile_comment -->

Most Similar PRs