claude-code-usage-bar AGENTS.md

Repository instructions for claude-code-usage-bar, a Python project that provides the Claude Code status bar. They describe its source files, setup commands, packaging, naming, and testing practices.

In plain words
What is it for?
Use them when developing, testing, packaging, installing, or publishing the status-bar project.
Why use it?
They help coding agents make changes that fit the project's structure and development rules.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/leeguooooo/claude-code-usage-bar/agents-md
Clone the repo
git clone --depth 1 https://github.com/leeguooooo/claude-code-usage-bar

Made for: Codex, OpenCode.

Per session 636 This file is loaded in full into every session.
When invoked 636 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00636 $0.00636
Opus 5 $0.00318 $0.00318
Sonnet 5 $0.00127 $0.00127
Haiku 4.5 $0.00064 $0.00064

Measured 3d ago against content hash 3ddfc5bbafe1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

claude-code-usage-bar AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 33 lines

How it starts

The opening of the file, as written. The whole thing — 33 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository Guidelines

Project Structure & Module Organization

  • Core code lives in src/claude_statusbar: core.py handles usage calculation and model lookup, cli.py provides the entrypoint (claude-statusbar, cstatus, cs), and updater.py manages self-upgrades.
  • Packaging metadata is in pyproject.toml; built artifacts land in dist/ (keep generated wheels/sdists out of commits unless releasing).
  • Installer helpers: install.sh and web-install.sh for one-line setup, uninstall.sh for cleanup, and publish.sh for PyPI uploads. Demo and promotional assets sit in demo/, img.png, and promotion/.

Build, Test, and Development Commands

  • Install for development (editable): python -m pip install -e .
  • Run locally: claude-statusbar (or python -m claude_statusbar.cli --version to verify wiring).
  • Build distribution: python -m build (requires build/wheel).
  • Publish to PyPI: ./publish.sh (expects PYPI_API_TOKEN or ~/.pypirc; offers TestPyPI first).
  • Install optional dependency for richer data: python -m claude_statusbar.cli --install-deps then follow prompts for claude-monitor.

Coding Style & Naming Conventions

  • Python 3.9+; follow PEP 8 with 4-space indentation and short, imperative helper names (get_current_model, try_original_analysis).
  • Keep dependencies minimal (stdlib only by default); guard optional imports and subprocess calls.
  • Prefer pure functions with clear return types; add typing hints where missing and keep logging quiet (current default ERROR).

Testing Guidelines

  • No automated suite exists yet; add targeted pytest cases around core.main, calculation helpers, and file parsing when you touch logic.
  • For manual checks: place sample Claude JSONL data under ~/.claude/projects/, run claude-statusbar, and confirm token/cost figures and reset timer behave as expected across empty/malformed files.
  • If introducing flags, verify CLI help stays readable: python -m claude_statusbar.cli --help.

Read the full file on GitHub · 33 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 33 lines · 636 tokens per session scan A 3ddfc5bbafe1

Subscribe to this mod's changes

claude-code-usage-bar AGENTS.md is an instructions file published in the GitHub repository leeguooooo/claude-code-usage-bar (358 stars, last pushed 7d ago), licensed MIT. It adds 636 tokens to every session, about $0.0032 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories