Borrowing it
Nothing to install: this file belongs to PerIPan/OpenWhisperer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/PerIPan/OpenWhisperer/main/AGENTS.mdgit clone --depth 1 https://github.com/PerIPan/OpenWhispererWrote 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.
[](https://agentmods.dev/instructions/peripan/openwhisperer/agents-md)<a href="https://agentmods.dev/instructions/peripan/openwhisperer/agents-md"><img src="https://agentmods.dev/badge/instructions/peripan/openwhisperer/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.
<a href="https://agentmods.dev/instructions/peripan/openwhisperer/agents-md"><img src="https://agentmods.dev/badge/instructions/peripan/openwhisperer/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.17730 | $0.17730 |
| Opus 5.5 | $0.07092 | $0.07092 |
| Sonnet 5.5 | $0.03546 | $0.03546 |
| Haiku 4.5 | $0.01773 | $0.01773 |
Grade D, and why
OpenWhisperer AGENTS.md scanned grade D with 3 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 4d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
**One hook, both platforms.** `voice-context.sh` serves Claude Code *and* Codex — both fire a `UserPromptSubmit` command hook whose stdin carries `prompt`+`session_id` and whose stdout `{hookSpecificOutput:{additionalCon Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- **Rebuilding & Installing locally:** Since hook files (`hooks/*.sh`) are bundled into the application resource path (`OpenWhisperer.app/Contents/Resources/hooks/`) during build, any hook changes require rebuilding the Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
swift run HookTests # bash-hook integration tests (stubbed curl + temp HOME) How it starts
The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file defines the project-scoped rules, workflows, commands, and architecture details for AI agents working in the OpenWhisperer repository.
Commands
All Swift commands run from the app/ directory (it's the SwiftPM package root).
cd app
swift build # debug build
swift build -c release # release build
OW_SIGN_IDENTITY="OpenWhisperer Dev" ./build-dmg.sh # build signed bundle + .dmg for local dev (keeps TCC grants)
./build-dmg.sh # build ad-hoc bundle + .dmg (release) into app/.build/
swift run OpenWhispererKitTests # pure-logic unit tests (exits non-zero on failure)
swift run HookTests # bash-hook integration tests (stubbed curl + temp HOME)
swift run OpenWhisperer --serve-tts # headless TTS server on :8000 (no GUI) for curl/CI; TTS_PORT overrides
Manual TTS smoke checks (server must be running, GUI or --serve-tts):
curl http://localhost:8000/v1/models
echo "hello" | scripts/speak.sh
Testing notes
- This machine has Command Line Tools only, no full Xcode, so there is no XCTest/swift-testing. Both test targets are plain
@mainexecutables that aggregate*Failures() -> [String]check groups andexit(1)if any fail. There is no per-test filter — to narrow a run, comment out check-group calls in the runner (Tests/OpenWhispererKitTests/SubmitTriggerTests.swiftorTests/HookTests/main.swift). - Only pure logic (no AppKit/AVFoundation/WhisperKit) is unit-testable, and it lives in the
OpenWhispererKittarget precisely so it builds fast under CLT. Put new testable logic there.
Working on changes
The loop this repo already follows. The parent checkout stays on main; feature branches live only under .claude/worktrees/ — never branch in place.
Pick the lightest safe path:
- Local (commit straight to
main, no PR) — docs/CLAUDE.md/comment edits, or a small, self-contained, low-risk code fix where a PR adds ceremony without safety. Stay onmain, make the smallest edit, verify (readback for docs; the test targets for code), commit, push. If it unexpectedly grows beyond small/isolated, switch to the PR path before committing. - PR — multiple files, real logic, a dependency change, or user-visible behavior:
- Worktree off
main:git worktree add .claude/worktrees/<slug> -b <slug>(orEnterWorktreein Claude Code). - Build + test from
app/:swift run OpenWhispererKitTestsandswift run HookTests(bothexit(1)on failure). For a packaged.app/.dmg, useOW_SIGN_IDENTITY="OpenWhisperer Dev" ./build-dmg.shlocally so TCC grants survive the rebuild (see Conventions). - PR: rebase onto
origin/mainif it moved, push,gh pr create. - After merge: sync
main(git pull --ff-only),git worktree remove .claude/worktrees/<slug>, delete the branch. Leave no orphaned worktree dir — a stale bundle holding:8000is a known foot-gun.
- Worktree off
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.
- 4d ago Changed · +2,458 tokens per session 62c4aaab8c85
- 11d ago Changed · +13 lines · +2,325 tokens per session c17ba19f1362
- 21d ago Changed · +3 lines · +1,201 tokens per session c6514ac9cee8
- 1mo ago Changed · +4 lines · +972 tokens per session f9a26864c331
- 1mo ago Changed · +4 lines · +868 tokens per session bff75538f467
- 2mo ago Changed · +14 lines · +1,409 tokens per session eed53bdf99ed
- 2mo ago Changed · +2 lines · +818 tokens per session b43857da74e8
- 2mo ago First seen · 150 lines · 7,679 tokens per session scan D 382fbc3843b3
OpenWhisperer AGENTS.md is an instructions file published in the GitHub repository PerIPan/OpenWhisperer (9 stars, last pushed 3d ago), licensed MIT. It adds 17,730 tokens to every session, about $0.0709 per session on Opus 5.5. A static security scan graded it D with 3 findings (reads agent configuration directories, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
OpenWhisperer AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| OpenWhisperer AGENTS.mdPerIPan/OpenWhisperer | Instructions file | 9 | 3d ago | MIT | D | 17,730 | Claude Code, Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| vscode ai-customization.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 1,907 | GitHub Copilot |