claude-code-statusline: Instructions file for Claude Code

CLAUDE.md

claude-code-statusline CLAUDE.md is an instructions file for Claude Code from rz1989s/claude-code-statusline. It costs 12,541 tokens per session, scanned F, original, MIT.

A Claude Code instruction file for a command-line status display project. It documents the project’s status, commands, configuration checks, tests, and development setup.

In plain words
What is it for?
Developing or maintaining the statusline, including its configuration, modules, cache, and supported platforms.
Why use it?
It gives an agent the project context and the commands needed to test, lint, configure, and debug changes.

Instructions file for Claude Code

Written for Claude Code: SubagentStop hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is rz1989s/claude-code-statusline's own configuration. It tells Claude Code how to work on claude-code-statusline itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-code-statusline configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rz1989s/claude-code-statusline. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/rz1989s/claude-code-statusline/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/rz1989s/claude-code-statusline

Made for: Claude Code.

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 CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rz1989s/claude-code-statusline/claude-md.svg)](https://agentmods.dev/instructions/rz1989s/claude-code-statusline/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/rz1989s/claude-code-statusline/claude-md"><img src="https://agentmods.dev/badge/instructions/rz1989s/claude-code-statusline/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 12,541 This file is loaded in full into every session.
When invoked 12,541 The same file — it is already loaded in full.
Security scan F 5 findings. A grade says what 26 rules found in the file — not that it is safe.
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.12541 $0.12541
Opus 5 $0.06270 $0.06270
Sonnet 5 $0.02508 $0.02508
Haiku 4.5 $0.01254 $0.01254

Measured 7d ago against content hash 3a772d0d69ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade F, and why

claude-code-statusline CLAUDE.md scanned grade F with 5 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 7d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- Linux: geoclue2 (`sudo apt install geoclue-2-demo`)

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

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

**v2.1.152–v2.1.201 (no new stdin fields)**: v2.1.154 released **Claude Opus 4.8** (`claude-opus-4-8`) at the same $5/$25 tier as Opus 4.6/4.7 — the `claude-opus-4-8` / `claude-opus-4-8-*` pattern was added to `lib/cost/

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.

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

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Status

Current: v2.27.1 | Claude Code: v2.1.6–v2.1.201 ✓ | Branch: feat/fix/chore → nightly → main Architecture: Single Config.toml (240+ settings), modular cache (8 sub-modules), JSON abstraction layer, responsive width system Features: 9-line statusline, native context % (v2.1.6+), prayer times, cost tracking, MCP, GPS location, wellness, CLI analytics, vim mode, agent display, usage limits, responsive width Platforms: macOS, Ubuntu, Arch, Fedora, Alpine Linux

Essential Commands

# Testing & Development
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
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"

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

# Cross-Platform Testing
curl -sSfL https://raw.githubusercontent.com/rz1989s/claude-code-statusline/dev11/install.sh | bash -s -- --branch=dev11 --check-all-deps --interactive
bats tests/unit/test_platform_compatibility.bats

Architecture

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

Atomic Components (37):

  • Repository & Git (5): repo_info, commits, submodules, version_info, github
  • Model & Session (5): model_info, bedrock_model, cost_repo, cost_live, reset_timer
  • Cost Analytics (3): cost_monthly, cost_weekly, cost_daily
  • Block Metrics (5): burn_rate, token_usage, cache_efficiency, block_projection, code_productivity
  • System & Context (4): time_display, version_display, context_alert, context_window
  • MCP & Extensions (3): mcp_status, mcp_servers, mcp_plugins
  • Session State (4): vim_mode, agent_display, session_info, session_mode
  • Cumulative Metrics (2): total_tokens, usage_limits
  • Wellness (1): wellness (idle detection, focus mode, break reminders)
  • Spiritual (5): prayer_times, prayer_times_only, prayer_icon, hijri_calendar, location_display
  • CLI Analytics (10 commands): --commits, --mcp-costs, --recommendations, --trends, --limits, --watch, --csv, --focus

Read the full file on GitHub · 361 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. 7d ago First seen · 361 lines · 12,541 tokens per session scan F 3a772d0d69ec

Subscribe to this mod's changes

claude-code-statusline CLAUDE.md is an instructions file published in the GitHub repository rz1989s/claude-code-statusline (477 stars, last pushed 1mo ago), licensed MIT. It adds 12,541 tokens to every session, about $0.0627 per session on Opus 5. A static security scan graded it F with 5 findings (asks for root, downloads and executes remote code, reads mcp configuration). 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

arm_1a2b_3c4d_cleanCode_meaningfulNames

Instructions for colchuck-ai/ai-resource-manager, a project described as: Package manager for AI rules and prompts with semantic versioning and automatic distribution to AI tools.

colchuck-ai/ai-resource-manager · 253 tokens

arm_1a2b_5e6f_cleanCode_smallFunctions

Instructions for colchuck-ai/ai-resource-manager, a project described as: Package manager for AI rules and prompts with semantic versioning and automatic distribution to AI tools.

colchuck-ai/ai-resource-manager · 244 tokens

arm_1a2b_7g8h_cleanCode_avoidComments

Instructions for colchuck-ai/ai-resource-manager, a project described as: Package manager for AI rules and prompts with semantic versioning and automatic distribution to AI tools.

colchuck-ai/ai-resource-manager · 231 tokens

arm_1a2b_9i0j_cleanCode_singleResponsibility

Instructions for colchuck-ai/ai-resource-manager, a project described as: Package manager for AI rules and prompts with semantic versioning and automatic distribution to AI tools.

colchuck-ai/ai-resource-manager · 238 tokens

arm_1a2b_k1l2_cleanCode_avoidDuplication

Instructions for colchuck-ai/ai-resource-manager, a project described as: Package manager for AI rules and prompts with semantic versioning and automatic distribution to AI tools.

colchuck-ai/ai-resource-manager · 248 tokens

ai-resource-manager arm_index.instructions.md

Instructions for colchuck-ai/ai-resource-manager, covering arm rulesets, priority rules, installed rulesets and sample-registry/[email protected].

colchuck-ai/ai-resource-manager · 238 tokens