claude-status CLAUDE.md

claude-status CLAUDE.md is an instructions file for Claude Code from gmr/claude-status. It costs 2,613 tokens per session, scanned A, original, BSD-3-Clause.

Repository guidance for Claude Status, a native macOS menu bar app that monitors local Claude Code sessions and can focus their terminal or IDE window. It explains the Swift project, build commands, tests, and release setup.

In plain words
What is it for?
Use it when building, testing, cleaning, installing, or updating the Claude Status macOS app and its related plugin.
Why use it?
It helps an agent use the project's required commands and understand platform and signing constraints when changing the app.

Instructions file for Claude Code

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

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/gmr/claude-status/claude-md
Clone the repo
git clone --depth 1 https://github.com/gmr/claude-status

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/gmr/claude-status/claude-md.svg)](https://agentmods.dev/instructions/gmr/claude-status/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/gmr/claude-status/claude-md"><img src="https://agentmods.dev/badge/instructions/gmr/claude-status/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,613 This file is loaded in full into every session.
When invoked 2,613 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.1 $0.02613 $0.02613
Opus 5 $0.01307 $0.01307
Sonnet 5 $0.00523 $0.00523
Haiku 4.5 $0.00261 $0.00261

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

Security

Grade A, and why

claude-status CLAUDE.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 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.

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.

CLAUDE.md · 197 lines

How it starts

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

CLAUDE.md

Project Overview

Claude Status is a native macOS menu bar app that monitors active Claude Code sessions on the local machine. It shows session state, project info, and provides one-click focus to the session's host app (terminals and IDEs). Distributed outside the Mac App Store via Developer ID signing, notarization, and Sparkle auto-updates.

Build & Test

Xcode project with SPM dependencies (no standalone Package.swift). Use just for all build and test commands:

just build          # Build debug configuration (includes plugin binaries)
just test           # Run all unit tests
just test-class SessionStateTests  # Run a single test class
just clean          # Clean build artifacts
just swap           # Build, copy to /Applications, and relaunch
just sync-plugin    # Sync plugin to installed plugin cache
just show-version   # Show calculated version from git tags

The justfile handles MACOSX_DEPLOYMENT_TARGET=15.0 override (needed for Xcode versions that don't know about macOS 26.2) and disables code signing for local dev builds.

Platform & Language

  • macOS 26.2+ deployment target (override to 15.0 for CI/older Xcode)
  • Swift 5.0 with SWIFT_APPROACHABLE_CONCURRENCY = YES, SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor
  • SwiftUI + AppKit hybrid: AppKit for NSStatusItem/NSPopover/NSWindow, SwiftUI for all views
  • Menu bar-only: LSUIElement = YES (no Dock icon)
  • No App Sandbox: required for proc_pidinfo, sysctl KERN_PROCARGS2, and AppleScript automation
  • Bundle ID: com.poisonpenllc.Claude-Status
  • Widget Bundle ID: com.poisonpenllc.Claude-Status.widget
  • App Group: group.com.poisonpenllc.Claude-Status (shared data between app and widget)
  • URL Scheme: claude-status://

Dependencies (SPM)

Package Version Purpose
Sparkle 2.9.0 Auto-updates via Appcast (EdDSA-signed)
CocoaLumberjack 3.9.0 Structured logging
swift-log 1.10.1 Swift logging API

Read the full file on GitHub · 197 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 · 197 lines · 2,613 tokens per session scan A f4e04cd0d2b4

Subscribe to this mod's changes

claude-status CLAUDE.md is an instructions file published in the GitHub repository gmr/claude-status (59 stars, last pushed 1mo ago), licensed BSD-3-Clause. It adds 2,613 tokens to every session, about $0.0131 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.