harness-kit / harness_usage_status
AGENTS.md100 starsChanged 9 months agoMITView on GitHub
A CLI tool that provides a centralized view of remaining usage quotas across multiple AI model/plan providers (subscription-based). Supports decision-making for model/task routing.
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- harness_usage_status/CLAUDE.mdCLAUDE.md
- odin/CLAUDE.mdCLAUDE.md
- taskit/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- fable-auditSkill
- hk-arch-auditSkill
- hk-autonomy-auditSkill
- hk-breadcrumb-creatorSkill
- hk-changelogSkill
- hk-compoundSkill
- hk-follow-breadcrumbSkill
- hk-local-diagnoseSkill
- hk-local-logsSkill
- hk-local-run-specSkill
- hk-merge-resolveSkill
- hk-mock-firstSkill
- hk-rcaSkill
- hk-refineSkill
- hk-scout-wikiSkill
- hk-shift-changelogSkill
- hk-skill-creatorSkill
- hk-slop-auditSkill
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
All endpoints, URLs, CLI paths configurable — easy to update when things change
- Distinctive: line 38
Keep provider integrations modular — each provider is its own module
- Distinctive: line 39
Prefer programmatic access over browser automation
- Distinctive: line 40
All URLs/endpoints should be configurable in YAML
- Distinctive: line 41
Use python-fire for clean CLI interface
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
Project Purpose
A CLI tool that provides a centralized view of remaining usage quotas across multiple AI model/plan providers (subscription-based). Supports decision-making for model/task routing.
Supported Providers
CLI-based (subscription via installed CLI tools)
- Claude Code —
claudeCLI for status; web API for usage (claude.ai/api/organizations/{orgId}/usage) - Codex (OpenAI) —
codexCLI for status; web API for usage (chatgpt.com/backend-api/wham/usage) - Gemini —
geminiCLI for status; OAuth-backed quota API - Qwen —
qwenCLI for status; FIXME: no account-level quota API
API-based (subscription via API keys)
- MiniMax — Coding Plan
/remainsendpoint - GLM (Zhipu AI) — Monitor endpoints (
/api/monitor/usage/quota/limit, etc.)
Architecture
- python-fire CLI with
quota,status, andconfigcommands - Provider pattern:
BaseProviderABC withget_usage()andget_status()methods - Auto-registration via
@register_providerdecorator - Config-driven:
~/.config/harness_usage_status/config.yaml - All endpoints, URLs, CLI paths configurable — easy to update when things change
Key Files
src/harness_usage_status/cli.py— CLI entry point (python-fire)src/harness_usage_status/providers/base.py— Provider ABCsrc/harness_usage_status/providers/registry.py— Auto-registrationsrc/harness_usage_status/config.py— Config loadingsrc/harness_usage_status/cli_runner.py— CLI subprocess runnersrc/harness_usage_status/models.py— UsageInfo, StatusInfo models
Development Guidelines
- Keep provider integrations modular — each provider is its own module
- Prefer programmatic access over browser automation
- All URLs/endpoints should be configurable in YAML
- Use python-fire for clean CLI interface
- Output: rich tables (default) or JSON (
--output json)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

