earheart: Instructions file for Codex

AGENTS.md

earheart AGENTS.md is an instructions file for Codex, OpenCode from cleanunicorn/earheart. It costs 5,066 tokens per session, scanned A, original, MIT.

Contribution instructions for Earheart, a project that uses GitHub Flow, a method where changes are made on short-lived branches and merged through reviewed pull requests. They cover branching, checks, release-triggering pull-request titles, and preserving user transcripts.

In plain words
What is it for?
Use them when making changes to Earheart. They guide branch creation, local validation, pull-request naming, release handling, and preservation of transcript fallbacks.
Why use it?
They reduce the risk of publishing unfinished work, breaking the main branch, or losing source text. They also explain project-specific rules that ordinary Git knowledge may not cover.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

Nothing to install: this file belongs to cleanunicorn/earheart. 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/cleanunicorn/earheart/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/cleanunicorn/earheart

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cleanunicorn/earheart/agents-md/github.svg)](https://agentmods.dev/instructions/cleanunicorn/earheart/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/cleanunicorn/earheart/agents-md"><img src="https://agentmods.dev/badge/instructions/cleanunicorn/earheart/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 earheart AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cleanunicorn/earheart/agents-md"><img src="https://agentmods.dev/badge/instructions/cleanunicorn/earheart/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,066 This file is loaded in full into every session.
When invoked 5,066 The same file — it is already loaded in full.
Security scan A 0 findings. 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.05066 $0.05066
Opus 5.5 $0.02026 $0.02026
Sonnet 5.5 $0.01013 $0.01013
Haiku 4.5 $0.00507 $0.00507

Measured yesterday against content hash e02f25d571fc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

earheart 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 yesterday.

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 · 418 lines

How it starts

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

Earheart — Agent guide

Guidance for AI agents (and humans) contributing to Earheart.

Earheart is a hotkey-driven voice dictation app (Electron) that speaks a prompt into Claude Code, Codex, Cursor, or any focused window, fully local. A change is done when its code, tests, and docs land together in one reviewed PR with CI green on Linux, macOS, and Windows. This project follows GitHub flow: main is always releasable, all work happens on short-lived branches, and every change lands through a reviewed pull request.

Read README.md for setup, and CONTRIBUTING.md for the full architecture. This file is the operational checklist for how to work here.

Prerequisites

  • Node.js ≥ 22.12 + npm — the locked Electron toolchain needs 22.12. .nvmrc is provided, so nvm use picks up the newest Node 22.
  • The gh CLI — for opening PRs.
  • A display for the smoke checks — on Linux, the make smoke targets already wrap Electron in xvfb-run -a (install Xvfb); on macOS and Windows run the underlying npx electron … commands directly, as CI does.
  • GNU Make — for the make targets (on Windows, run the underlying commands instead).
  • uv — only if you touch the optional Python server in stt-server/.
  • No keys needed. Built-in models download to Electron's userData/models on first use; tests and smoke checks don't need them present.

Commands

The Makefile wraps most tasks; make help lists them all.

  • Install / bootstrap: make install (npm ci, exactly as locked, then fetches the Electron binary, as CI does). To add or bump a dependency, use make deps-update (npm install) and commit the updated package-lock.json.
  • Run locally: make run
  • Lint / format / type-check: none — plain JavaScript, no linter configured.
  • Test (all): make test (node --test with a 30 s per-test timeout, no framework)
  • Test (single file): node --test --test-timeout=30000 test/pipeline.test.js
  • Smoke checks (Linux): make smoke, make engine-smoke, make overlay-smoke, make settings-smoke (each wraps xvfb-run -a)
  • Smoke checks (macOS / Windows): the same commands without xvfb-run: npx electron . --smoke-test --no-sandbox, then npx electron scripts/<engine|overlay|settings>-smoke.js --no-sandbox
  • STT server tests: make test-stt (runs uv run --locked --extra test python -m pytest in stt-server/)
  • Cleanup model benchmark (optional; needs a downloaded GGUF, not part of the gate): node scripts/bench-cleanup.mjs --out=<dir outside the repo> <model.gguf>; --probe <owner/repo> <file.gguf> checks a candidate on Hugging Face without downloading it, and --report <dir> rebuilds the comparison tables from saved runs. Method and recorded numbers: docs/cleanup-models.md
  • Technical dictation eval (optional; needs a downloaded GGUF, not part of the gate): node scripts/eval-technical.mjs [--gpu] --out=<dir outside the repo> [--prompt=<base prompt file>] <model.gguf>, then `--report
  • Long-recording STT measurement (optional; needs Electron and the scripts/eval-stt.js corpus/model cache, not part of the gate): xvfb-run -a npx electron scripts/eval-long-decode.js --no-sandbox --cache-dir <cache> --out <file outside the repo> --single; exits 1 when a long recording loses words. --before adds the old cut-at-every-pause splitter side by side, and --dictation [--seed N] runs dictation-shaped recordings (hesitations, clicks, breaths). Method and recorded numbers: docs/long-recordings.md
  • Build: make dist (current platform)
  • Release merged PRs: make release dispatches the catch-up release workflow on remote main using authenticated gh. It creates one version for all pending merged PRs; local changes are excluded. Track completion with gh run list --workflow auto-release.yml.

Read the full file on GitHub · 418 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. yesterday Changed · +9 lines · +155 tokens per session e02f25d571fc
  2. 12d ago Changed · +6 lines · +127 tokens per session 397f26540ae5
  3. 13d ago Changed · +2 lines · +29 tokens per session 422a600bb62b
  4. 27d ago Changed · +7 lines · +118 tokens per session aab50c4e83b7
  5. 29d ago Changed · +13 lines · +236 tokens per session ab642f512603
  6. 1mo ago Changed · +2 lines · +46 tokens per session 0988f1a5754c
  7. 1mo ago Changed · +5 lines · +74 tokens per session fa3a77f69633
  8. 1mo ago Changed · +20 lines · +336 tokens per session 5e3539603490
  9. 1mo ago Changed · +4 tokens per session 636a3e372aa8
  10. 1mo ago First seen · 354 lines · 3,941 tokens per session scan A 006a2e8e734d

Subscribe to this mod's changes

earheart AGENTS.md is an instructions file published in the GitHub repository cleanunicorn/earheart (34 stars, last pushed yesterday), licensed MIT. It adds 5,066 tokens to every session, about $0.0203 per session on Opus 5.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

earheart AGENTS.md compared with instructions from other repositories

earheart AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
earheart AGENTS.mdcleanunicorn/earheartInstructions file34yesterdayMITA5,066Codex, 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