claude-code-statusline AGENTS.md

claude-code-statusline AGENTS.md is an instructions file for Codex, OpenCode from rz1989s/claude-code-statusline. It costs 2,337 tokens per session, scanned E, original, MIT.

Instructions for working on a configurable command-line status display for Claude Code. It can show project and usage information in a terminal statusline across several Linux distributions and macOS.

In plain words
What is it for?
Use them to test, lint, debug, configure, inspect modules, or clear cached data for the statusline.
Why use it?
They provide the project's current compatibility, commands, configuration-test methods, and cache details. This makes maintenance and troubleshooting more predictable.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; positional $N argument.

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/rz1989s/claude-code-statusline/agents-md
Clone the repo
git clone --depth 1 https://github.com/rz1989s/claude-code-statusline

Made for: Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for claude-code-statusline AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rz1989s/claude-code-statusline/agents-md.svg)](https://agentmods.dev/instructions/rz1989s/claude-code-statusline/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rz1989s/claude-code-statusline/agents-md"><img src="https://agentmods.dev/badge/instructions/rz1989s/claude-code-statusline/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,337 This file is loaded in full into every session.
When invoked 2,337 The same file — it is already loaded in full.
Security scan E 3 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.1 $0.02337 $0.02337
Opus 5 $0.01169 $0.01169
Sonnet 5 $0.00467 $0.00467
Haiku 4.5 $0.00234 $0.00234

Measured 6d ago against content hash 2e05b7b0dc6e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade E, and why

claude-code-statusline AGENTS.md scanned grade E with 3 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 6d 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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -sSfL https://raw.githubusercontent.com/rz1989s/claude-code-statusline/nightly/install.sh | bash -s -- --branch=nightly

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf ~/.cache/claude-code-statusline/

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# Installation (curl installer, 3-tier download w/ retry)
AGENTS.md · 137 lines

How it starts

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

claude-code-statusline

A feature-rich, multi-platform statusline for Claude Code — 9-line display with cost tracking, native context %, prayer times, MCP status, GPS location, wellness, CLI analytics, and a responsive width system.

Org: rz1989s (personal).

Project Status

Current: v2.27.1 | Claude Code compatibility: v2.1.6–v2.1.201 ✓ | Branch strategy: feat/fix/chorenightlymain Architecture: Single Config.toml (240+ settings), modular cache (8 sub-modules), JSON abstraction layer, responsive width system. Platforms: macOS, Ubuntu, Arch, Fedora, Alpine Linux.

Essential Commands

npm test                              # Run all 940 tests across 56 files
npm run lint:all                      # Lint everything
./statusline.sh --modules             # Show component status
STATUSLINE_DEBUG=true ./statusline.sh # Debug mode

# Configuration testing via env overrides
ENV_CONFIG_THEME=garden ./statusline.sh
ENV_CONFIG_DISPLAY_LINES=3 ./statusline.sh
ENV_CONFIG_LINE1_COMPONENTS="repo_info,commits" ./statusline.sh

# Cache management
rm -rf ~/.cache/claude-code-statusline/
STATUSLINE_DEBUG=true ./statusline.sh 2>&1 | grep "cache"

# Cross-platform testing
bats tests/unit/test_platform_compatibility.bats

# Installation (curl installer, 3-tier download w/ retry)
curl -sSfL https://raw.githubusercontent.com/rz1989s/claude-code-statusline/nightly/install.sh | bash -s -- --branch=nightly

Architecture

Core Modules (16): core → security → json_fields → config → themes → cache → git → mcp → cost → prayer → wellness → focus → components → responsive → display.

Atomic Components (37): repo_info, commits, submodules, version_info, github · model_info, bedrock_model, cost_repo, cost_live, reset_timer · cost_monthly/weekly/daily · burn_rate, token_usage, cache_efficiency, block_projection, code_productivity · time_display, version_display, context_alert, context_window · mcp_status/servers/plugins · vim_mode, agent_display, session_info, session_mode · total_tokens, usage_limits · wellness · prayer_times, prayer_times_only, prayer_icon, hijri_calendar, location_display · 10 CLI analytics commands.

Read the full file on GitHub · 137 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. 6d ago First seen · 137 lines · 2,337 tokens per session scan E 2e05b7b0dc6e

Subscribe to this mod's changes

claude-code-statusline AGENTS.md is an instructions file published in the GitHub repository rz1989s/claude-code-statusline (478 stars, last pushed 1mo ago), licensed MIT. It adds 2,337 tokens to every session, about $0.0117 per session on Opus 5. A static security scan graded it E with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.