How itrejomx/chatgpt-limits works
This is a Hermes plugin for querying the signed-in user’s account limits, primarily for ChatGPT/Codex. Its workflow starts through a Hermes tool, slash command, or CLI command; the plugin fetches a usage snapshot through Hermes’s account-usage code and formats it as terminal, chat-friendly, or JSON output. The README also documents a bundled skill and reuse of Hermes OAuth state and its usage API. The Hermes implementation is outside this repository, so its internal stages are represented only where the README supports them.
Main entry points: tools.py Limits handler · __init__.py Plugin registration · schemas.py Tool schema · SKILL.md Bundled skill
Components 15
Plugin entrypoints
- Plugin registration
__init__.py - Tool schema
schemas.py - Slash commands
__init__.py - CLI command
__init__.py - Bundled skill
skills/chatgpt-limits/SKILL.md
Usage retrieval
- Limits handler
tools.py - Account usage
- Hermes OAuth state
- Codex usage API
Output and guidance
- Snapshot conversion
tools.py - Chat formatting
__init__.py - CLI formatting
__init__.py - JSON output
__init__.py
Other components
- User
- Hermes runtime
Connections 18
- User → Slash commands: invokes
README.md - User → CLI command: runs
README.md - Hermes runtime → Plugin registration: loads
- Plugin registration → Tool schema: registers
__init__.py - Plugin registration → Limits handler: registers
__init__.py - Plugin registration → Bundled skill: registers
__init__.py - Slash commands → Limits handler: calls
__init__.py - CLI command → Limits handler: calls
__init__.py - Hermes runtime → Limits handler: invokes
- Limits handler → Account usage: fetches snapshot
tools.py - Account usage → Hermes OAuth state: reads credentials
README.md - Account usage → Codex usage API: queries limits
README.md - Limits handler → Snapshot conversion: converts
tools.py - Snapshot conversion → Account usage: renders lines
tools.py - Slash commands → Chat formatting: formats chat
__init__.py - CLI command → CLI formatting: formats terminal
__init__.py - Slash commands → JSON output: renders JSON
__init__.py - CLI command → JSON output: renders JSON
__init__.py