barkeep AGENTS.md

A set of instructions for coding agents working on Barkeep, a native macOS menu-bar app for managing visible and hidden menu-bar items.

In plain words
What is it for?
Use it when changing the macOS app lifecycle, menu-bar controls, item visibility, search, accessibility-based moving, settings, updates, or user-facing documentation.
Why use it?
It records product behavior, security requirements, architecture, and documentation rules so changes do not break how the app protects or organizes items.

Instructions file for CodexOpenCode

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/iannuttall/barkeep/agents-md
Clone the repo
git clone --depth 1 https://github.com/iannuttall/barkeep

Made for: Codex, OpenCode.

Per session 1,560 This file is loaded in full into every session.
When invoked 1,560 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 $0.01560 $0.01560
Opus 5 $0.00780 $0.00780
Sonnet 5 $0.00312 $0.00312
Haiku 4.5 $0.00156 $0.00156

Measured 2d ago against content hash 2d8eda654b64, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

barkeep AGENTS.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 2d 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.

AGENTS.md · 170 lines

How it starts

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

Agent notes

Barkeep is a local native macOS menu bar manager. It uses Swift 6, an AppKit lifecycle and status bar, SwiftUI views, XcodeGen, and Sparkle.

Product rules

  • Every item belongs to Always visible, Hidden, or Always hidden.
  • Click reveals Hidden. Option-click reveals all items. Right-click opens the command menu.
  • Command-Backslash toggles items. Command-Shift-Space opens search.
  • Only a direct item-section action can post a Command-drag.
  • A move must use fresh Accessibility data and must pass a second scan before state is saved.
  • Launch, wake, display events, app events, timers, and updates must never move an item.
  • Touch ID or Mac password protection applies to all reveal paths, including search and triggers.
  • Barkeep uses no account, telemetry, cloud sync, or Screen Recording.
  • Saved settings, rules, and profiles stay under Application Support.
  • Update failure cannot block app launch or the menu bar engine.

Read docs/PRODUCT.md before you change visible behavior. Keep README.md and docs/TROUBLESHOOTING.md accurate when a user-facing feature changes.

Repo map

Sources/Barkeep/App/             app lifecycle and coordination
Sources/Barkeep/Models/          settings, rules, profiles, and runtime types
Sources/Barkeep/StatusBar/       visibility boundaries and menu bar icons
Sources/Barkeep/Accessibility/   scans, permission checks, and confirmed moves
Sources/Barkeep/Permissions/     guided Accessibility setup
Sources/Barkeep/Storage/         local versioned JSON state
Sources/Barkeep/System/          hotkeys, triggers, login, spacing, and updates
Sources/Barkeep/UI/              settings and search windows
Tests/BarkeepTests/              unit tests
scripts/                         build, install, DMG, and release entry points
.github/workflows/               public CI and release validation

Commands

make check
make build
make install
make dmg
make release
make publish

make check runs XcodeGen before xcodebuild test. Generated Barkeep.xcodeproj, .xcode-build, and dist files are ignored. Do not commit them.

Read the full file on GitHub · 170 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. 2d ago First seen · 170 lines · 1,560 tokens per session scan A 2d8eda654b64

Subscribe to this mod's changes

barkeep AGENTS.md is an instructions file published in the GitHub repository iannuttall/barkeep (44 stars, last pushed 3d ago), licensed MIT. It adds 1,560 tokens to every session, about $0.0078 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.

Related

Other instructions, from other repositories

openquack AGENTS.md

Instructions for larryxiao/openquack, covering agents.md, posture, before you start, workflow and pr template (the required shape).

larryxiao/openquack · 1,328 tokens

Loupe CLAUDE.md

Instructions for smughead/Loupe, covering claude.md, build commands, build the app (from project root), run all tests (unit + ui) and run only spm package unit tests.

smughead/Loupe · 709 tokens

codex-reset-watcher AGENTS.md

Instructions for jordan-edai/codex-reset-watcher, covering agent notes, current state, product decisions, git and workspace rules and verification commands.

jordan-edai/codex-reset-watcher · 2,331 tokens

DeepSeekMeter AGENTS.md

Instructions for CWNU-Open-Source-Community/DeepSeekMeter, covering agents.md — deepseekmeter 仓库操作规范, 1. 项目是什么, 2. 常用命令(改动后必须本地验证), ios 版验证(核心包自测 + 工程结构静态校验必跑;有 xcode 时还会构建 app 冒烟) and android 核心单测(需 jdk 17 + android sdk;jvm 直跑无需设备).

CWNU-Open-Source-Community/DeepSeekMeter · 3,490 tokens

usage-widget CLAUDE.md

Instructions for emm3ttarmstrong/usage-widget, covering claude code usage widget, build, project structure, data flow and authentication (keychain).

emm3ttarmstrong/usage-widget · 944 tokens

Peekaboo AGENTS.md

AGENTS.md instructions for openclaw/Peekaboo, covering repository guidelines, start here, project structure & modules, build, test, and development commands and coding style & naming conventions.

openclaw/Peekaboo · 1,070 tokens