simple-claude-code-statusline: Instructions file for Claude Code

CLAUDE.md

simple-claude-code-statusline CLAUDE.md is an instructions file for Claude Code from Postmodum37/simple-claude-code-statusline. It costs 3,843 tokens per session, scanned B, original, MIT.

Project instructions for a Claude Code plugin that shows information in a two-line terminal status display. The plugin uses Go programs and a small shell launcher to choose the correct operating-system build.

In plain words
What is it for?
Understanding the plugin architecture, building its Go binaries, running tests, and configuring the status display in Claude Code.
Why use it?
They explain the repository layout and build process, reducing guesswork when changing or testing the status display.

Instructions file for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; mentions .claude-plugin; mentions CLAUDE.md.

This is Postmodum37/simple-claude-code-statusline's own configuration. It tells Claude Code how to work on simple-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 simple-claude-code-statusline configures →

Runs only inside a plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else, and the catalogue could not identify which plugin ships it.

Reuse

Borrowing it

Nothing to install: this file belongs to Postmodum37/simple-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/Postmodum37/simple-claude-code-statusline/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Postmodum37/simple-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 simple-claude-code-statusline CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/postmodum37/simple-claude-code-statusline/claude-md/github.svg)](https://agentmods.dev/instructions/postmodum37/simple-claude-code-statusline/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/postmodum37/simple-claude-code-statusline/claude-md"><img src="https://agentmods.dev/badge/instructions/postmodum37/simple-claude-code-statusline/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for simple-claude-code-statusline CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/postmodum37/simple-claude-code-statusline/claude-md"><img src="https://agentmods.dev/badge/instructions/postmodum37/simple-claude-code-statusline/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,843 This file is loaded in full into every session.
When invoked 3,843 The same file — it is already loaded in full.
Security scan B 1 finding. 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.03843 $0.03843
Opus 5.5 $0.01537 $0.01537
Sonnet 5.5 $0.00769 $0.00769
Haiku 4.5 $0.00384 $0.00384

Measured 1mo ago against content hash ae79c58103d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

simple-claude-code-statusline CLAUDE.md scanned grade B with 1 finding 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 1mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

- `commands/setup.md` - Command that configures `~/.claude/settings.json`
CLAUDE.md · 174 lines

How it starts

The opening of the file, as written. The whole thing — 174 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 Overview

This is a Claude Code plugin that provides a custom two-line statusline. It's implemented as cross-compiled Go binaries dispatched via a thin bash shim (bin/statusline.sh).

Architecture

This repo serves as both a marketplace and a plugin:

  • .claude-plugin/marketplace.json - Makes this repo a Claude Code marketplace
  • .claude-plugin/plugin.json - Plugin manifest
  • src/ - Go source files (stdin parsing, model names, rendering, git, auto-compact, formatting)
  • bin/statusline.sh - Bash shim that detects OS/arch and execs the correct binary
  • bin/{os}-{arch}/statusline - Cross-compiled Go binaries (darwin/linux, amd64/arm64)
  • Makefile - Build targets: build (cross-compile all), test, clean
  • commands/setup.md - Command that configures ~/.claude/settings.json
  • hooks/ - SessionStart hook that reminds users to run setup if not configured
  • docs/claude-code-version-reviews.md - Log of Claude Code releases reviewed for statusline impact

When installed, the plugin runs from ${CLAUDE_PLUGIN_ROOT}/bin/statusline.sh (the plugin cache directory), which dispatches to the platform-appropriate binary.

How the Statusline Works

Claude Code pipes JSON to the binary via stdin. Fields we display (only these are declared in StdinData):

  • model.id (model.display_name as fallback) - Current model
  • cwd / workspace.project_dir - Current/project directories
  • workspace.git_worktree - Linked git worktree name (since v2.1.97; absent in the main working tree)
  • context_window.{used_percentage,total_input_tokens,context_window_size} - Context usage (percentage and tokens are null/0 until the first API response)
  • cost.{total_cost_usd,total_duration_ms,total_lines_added,total_lines_removed} - Session cost, wall time, lines changed
  • agent.name - Agent name (when using --agent flag)
  • worktree.name - Worktree name (only present in --worktree sessions, since v2.1.69)
  • rate_limits.{five_hour,seven_day}.{used_percentage,resets_at} - Rate limit windows (since v2.1.80; Pro/Max only; a window is dropped once its resets_at passes)
  • effort.level - Reasoning effort: low|medium|high|xhigh|max (since v2.1.119; the binary also still emits auto)
  • thinking.enabled - true unless the user turned thinking off (can't be turned off on Opus 5.5/Fable)
  • pr.{number,review_state,kind} - Open PR for the current branch (since v2.1.145; absent until a PR is found; kind: "mr" for GitLab merge requests)
  • fast_mode - Whether fast mode is on

Read the full file on GitHub · 174 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. 1mo ago Changed · -180 lines · -6,079 tokens per session ae79c58103d5
  2. 1mo ago Changed · +51 lines · +3,035 tokens per session 10f3f0c96ac9
  3. 1mo ago First seen · 303 lines · 6,887 tokens per session scan B 9da3415f6715

Subscribe to this mod's changes

simple-claude-code-statusline CLAUDE.md is an instructions file published in the GitHub repository Postmodum37/simple-claude-code-statusline (5 stars, last pushed 6d ago), licensed MIT. It adds 3,843 tokens to every session, about $0.0154 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens