harness-kit / harness_usage_status
CLAUDE.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. Odin imports from this package optionally for quota-aware agent routing: - orchestrator.py calls _fetch_quota() which imports harness_usage_status.config and harness_usage_status.providers.registry - Quota data (usage %) is passed to the planning agent to guide agent assignment - Agents above quota_threshold (default 80%) are deprioritized for non-high-complexity tasks - If this package is not installed, Odin degrades gracefully with empty…
- Installs packages
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- harness_usage_status/AGENTS.mdAGENTS.md
- 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 CLAUDE.md into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
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 24
All endpoints, URLs, CLI paths configurable — easy to update when things change
- Distinctive: line 51
If this package is not installed, Odin degrades gracefully with empty quota data
- Distinctive: line 55
Keep provider integrations modular — each provider is its own module
- Distinctive: line 56
Prefer programmatic access over browser automation
- Distinctive: line 57
All URLs/endpoints should be configurable in YAML
- Distinctive: line 58
Use python-fire for clean CLI interface
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
CLAUDE.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
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
Commands
pip install -e ".[dev]"
pytest # Run all tests
pytest tests/test_providers.py -k "claude" # Run a single test
harness-usage-status quota
harness-usage-status quota --provider claude_code --output jsonOdin Integration
Odin imports from this package optionally for quota-aware agent routing:
orchestrator.pycalls_fetch_quota()which importsharness_usage_status.configandharness_usage_status.providers.registry- Quota data (usage %) is passed to the planning agent to guide agent assignment
- Agents above
quota_threshold(default 80%) are deprioritized for non-high-complexity tasks - If this package is not installed, Odin degrades gracefully with empty quota data
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)
Gotchas
- Each CLI-based provider requires the respective CLI tool to be installed and authenticated separately (e.g.,
claudeCLI must be logged in for Claude Code quota) - Web API endpoints change without notice — all URLs are configurable in YAML for quick updates
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.

