Plonk: Instructions file for Codex

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

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is ostapondo/Plonk's own configuration. It tells Codex and OpenCode how to work on Plonk 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 Plonk configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ostapondo/Plonk. 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/ostapondo/Plonk/main/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/github.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/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 Plonk AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ostapondo/plonk/agents-md"><img src="https://agentmods.dev/badge/instructions/ostapondo/plonk/agents-md.svg" alt="Reviewed on agentmods" width="80" 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. 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.03557 $0.03557
Opus 5.5 $0.01423 $0.01423
Sonnet 5.5 $0.00711 $0.00711
Haiku 4.5 $0.00356 $0.00356

Measured 2mo ago against content hash 43b3a05fe77f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. 2mo 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 (17 stars, last pushed 18d ago), licensed MIT. It adds 3,557 tokens to every session, about $0.0142 per session on Opus 5.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

Plonk AGENTS.md compared with instructions from other repositories

Plonk AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Plonk AGENTS.mdostapondo/PlonkInstructions file1718d agoMITA3,557Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode