AgentBar CLAUDE.md

AgentBar CLAUDE.md is an instructions file for Claude Code from michalstrnadel/AgentBar. It costs 506 tokens per session, scanned A, original, MIT.

Repository-specific instructions for AgentBar, a macOS menu-bar app that shows the status of several AI coding assistants. The app is written in Swift and receives session information from small Node.js scripts.

In plain words
What is it for?
Use it when changing, building, or running the AgentBar repository. It covers the menu-bar and notch panel, session state files, and the app's documented presentation modes.
Why use it?
It gives a coding agent the project rules, build commands, file responsibilities, and data format needed to make changes without breaking the app's design.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code; mentions Codex.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/michalstrnadel/agentbar/claude-md.svg)](https://agentmods.dev/instructions/michalstrnadel/agentbar/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/michalstrnadel/agentbar/claude-md"><img src="https://agentmods.dev/badge/instructions/michalstrnadel/agentbar/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 506 This file is loaded in full into every session.
When invoked 506 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.00506 $0.00506
Opus 5 $0.00253 $0.00253
Sonnet 5 $0.00101 $0.00101
Haiku 4.5 $0.00051 $0.00051

Measured 5d ago against content hash 0c05299251ec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

AgentBar 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 5d 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 · 38 lines

How it starts

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

AgentBar — AI Instructions

Context for AI coding assistants working on this repository.

Project

AgentBar is a native macOS status app (Swift, AppKit, SPM) showing live status of AI coding agents (Claude Code, Codex, Cursor, Gemini, Copilot, Antigravity). Node.js hook scripts in Scripts/hooks/ write per-session JSON to ~/.agentbar/state.d/; the app watches that folder. It presents itself as a menu bar item, a Dynamic Island panel under the notch, or both — the user picks in the welcome window. State file protocol (normative): docs/protocol.md; original design spec (a 1.0.0 snapshot, read its header note): docs/specs/2026-07-23-agentbar-design.md; presentation modes: docs/plans/2026-07-28-presentation-modes-and-island.md.

Build & run

./Scripts/build.sh          # builds build/AgentBar.app
open "build/AgentBar.app"

Rules

  1. One file, one responsibility — keep the unit layout from the spec; don't grow a god-object controller.
  2. Stay out of the way: no dock icon, no heavy dependencies, nothing that unfolds over the screen on its own. Two surfaces only — the menu bar item (StatusItemController) and the island (IslandController) — both fed from the same stores through MascotDriver / AgentActions; never render one from the other's code. Windows are the exception, not the pattern: only WelcomeWindow and SettingsWindow, both small, both opened by the user.
  3. Hooks must never block the host agent: async, atomic writes, exit fast. Sole exception: permission.js blocks while the session is already waiting on the human, and must always time out silently to the normal terminal prompt.
  4. Adding an agent: entry in Agents.swift, sprite in Sources/AgentBar/Sprites/, optional hook dir in Scripts/hooks/<agent>/ plus its installer step in HookInstaller.swift, and the agent id in the docs/protocol.md list and the README agent table. Nothing else should need touching.
  5. Third-party marks stay listed in THIRD_PARTY_NOTICES.md.

Read the full file on GitHub · 38 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. 5d ago First seen · 38 lines · 506 tokens per session scan A 0c05299251ec

Subscribe to this mod's changes

AgentBar CLAUDE.md is an instructions file published in the GitHub repository michalstrnadel/AgentBar (4 stars, last pushed 4d ago), licensed MIT. It adds 506 tokens to every session, about $0.0025 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-31.

Related

Other instructions, from other repositories