Plonk AGENTS.md

Plonk AGENTS.md is an instructions file for Codex, OpenCode from ostapondo/Plonk. It costs 3,557 tokens per session, scanned A, original, MIT.

Repository instructions for Plonk, a macOS menu bar app with a Swift package and a TypeScript MCP server. They describe the project layout, where logic belongs, and how to build and test it.

In plain words
What is it for?
Adding modules, modifying the Swift app or TypeScript server, building through the required script, and running the MCP tests.
Why use it?
They help an agent place changes in the right module and follow the project’s separation between the app and MCP proxy.

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

Made for: Codex, OpenCode.

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 Plonk AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ostapondo/plonk/agents-md.svg)](https://agentmods.dev/instructions/ostapondo/plonk/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ostapondo/plonk/agents-md"><img src="https://agentmods.dev/badge/instructions/ostapondo/plonk/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,557 This file is loaded in full into every session.
When invoked 3,557 The same file — it is already loaded in full.
Security scan A 1 finding. 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.03557 $0.03557
Opus 5 $0.01778 $0.01778
Sonnet 5 $0.00711 $0.00711
Haiku 4.5 $0.00356 $0.00356

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

Security

Grade A, and why

Plonk AGENTS.md scanned grade A 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 3d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s 127.0.0.1:43917/ping # smoke test while the app is running
AGENTS.md · 249 lines

How it starts

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

Agent rules

Rules for AI agents working in this repo.

Layout

  • App/ — Swift package, the menu bar app. One type per file, files stay under ~300 lines.
  • mcp/ — TypeScript MCP server: src/server.ts compiled to dist/ via npm run build. Keep it a thin proxy; logic belongs in the app. Tests are mcp/test/*.test.js, run against dist/ on the Node test runner with no extra dependencies. Tool description rules are in mcp/AGENTS.md.
  • scripts/build.sh — the only build entry point.

Inside App/Sources/plonk/, the pieces that are easy to get lost in:

  • Router owns the route table and nothing else: every case is one line to the module that handles it, in a Router+* file of its own.
  • AppDelegate.swift is the list of what the app is made of and the order it comes up in, and nothing else. Every module's wiring lives in an AppDelegate+<Module>.swift beside it, which is why none of those stored properties is private: Swift only lets an extension in the same file see that. New behavior goes in the module's file, or in a new one.
  • ConfigStore is the only way a setting is written. update clamps and saves it, then didMutate fires and AppDelegate.applyConfig hands the whole config to every manager. Nothing pushes a single field at a manager itself.
  • Ink holds the surfaces, the radius and the accent gradient every page draws with, and SettingRows the rows a settings card is made of. Pages compose those instead of spelling out colours.
  • Resources/en.lproj/Localizable.strings holds every word the user reads, and the Strings+*.swift files declare the keys that reach it. Views hold keys, never sentences — see "Text" below.
  • AppActions is what the UI can ask the app to do: commands, not settings. A setting needs nothing there — update(\.field, to:) writes any field of Config. AppModel holds that config plus the state config cannot answer: what a manager is doing now, what macOS has granted, what is on screen. Views never reach past it.
  • ScreenIdentity turns a screen index into the keys config is stored under.
  • WindowAccess holds every Accessibility call that reads or moves a window, and WindowManager is its only caller: one decides where a window goes, the other is how it gets there. A window that moves without WindowManager.place seeing it announces nothing. Two other surfaces talk to AX directly and are not behind it — ShortcutGuide walks another app's menu bar and NewWindowWatcher subscribes to window-opened notifications. Anything about a window's frame belongs in WindowAccess; those two do not.

Read the full file on GitHub · 249 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. 3d ago First seen · 249 lines · 3,557 tokens per session scan A 43b3a05fe77f

Subscribe to this mod's changes

Plonk AGENTS.md is an instructions file published in the GitHub repository ostapondo/Plonk (14 stars, last pushed 4d ago), licensed MIT. It adds 3,557 tokens to every session, about $0.0178 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

mcp-server-apple-events CLAUDE.md

Claude Code instructions for FradSer/mcp-server-apple-events, covering claude.md, commands, run all tests, run a single test file and run tests matching a pattern.

FradSer/mcp-server-apple-events · 2,137 tokens

mcp-server-apple-events AGENTS.md

AGENTS.md instructions for FradSer/mcp-server-apple-events, covering repository guidelines, project structure & module organization, build, test, and development commands, coding style & naming conventions and testing guidelines.

FradSer/mcp-server-apple-events · 839 tokens

mcp-server-apple-events GEMINI.md

Gemini CLI instructions for FradSer/mcp-server-apple-events, covering apple events mcp server, project overview, architecture, building and running and prerequisites.

FradSer/mcp-server-apple-events · 1,136 tokens

openrouter-mcp-multimodal AGENTS.md

Instructions for stabgan/openrouter-mcp-multimodal, covering agent instructions, before you ship, releasing (read this before publishing), short version and version files (must all match package.json).

stabgan/openrouter-mcp-multimodal · 783 tokens

cctop AGENTS.md

Instructions for st0012/cctop, covering agents.md - development guide for cctop, scope and sources, required development rules, driver workflow and github and pr rules.

st0012/cctop · 2,107 tokens

here-macos CLAUDE.md

Instructions for koalaauto/here-macos, covering here — ai assistant notes, architecture at a glance, prerequisites, build & run and always pass -quiet from an agent session.

koalaauto/here-macos · 3,901 tokens