Bark is an iOS app that sends custom push notifications to an iPhone through Apple Push Notification service. It is used to deliver grouped, scheduled, encrypted, and otherwise customized notifications, including from self-hosted servers and connected tools.
Borrowing it
Nothing to install: this file belongs to Finb/Bark. 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/Finb/Bark/master/AGENTS.mdgit clone --depth 1 https://github.com/Finb/BarkWrote 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/finb/bark/agents-md)<a href="https://agentmods.dev/instructions/finb/bark/agents-md"><img src="https://agentmods.dev/badge/instructions/finb/bark/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/finb/bark/agents-md"><img src="https://agentmods.dev/badge/instructions/finb/bark/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.01488 | $0.01488 |
| Opus 5.5 | $0.00595 | $0.00595 |
| Sonnet 5.5 | $0.00298 | $0.00298 |
| Haiku 4.5 | $0.00149 | $0.00149 |
Grade A, and why
Bark 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 today.
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.
This is a copy
98% identical to Bark CLAUDE.md — 146 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Project Overview
Bark is an iOS push notification tool app that allows users to send custom push notifications to their devices via HTTP requests. It leverages Apple Push Notification service (APNs) and supports advanced iOS notification features like grouping, custom icons/sounds, time-sensitive notifications, critical alerts, and end-to-end encryption.
Development Commands
Dependencies
# Install CocoaPods dependencies
pod install
# Always work with the workspace, not the project
# Open: Bark.xcworkspace
Testing
# Run tests via fastlane
bundle exec fastlane tests
# Run tests via xcodebuild
xcodebuild test -workspace Bark.xcworkspace -scheme Bark
Building
# Build the app
xcodebuild -workspace Bark.xcworkspace -scheme Bark build
# Build for TestFlight (requires proper certificates and environment variables)
bundle exec fastlane beta
Architecture
Core Components
Main App Target (Bark/)
- Entry point:
AppDelegate.swift- handles app lifecycle, APNs registration, Realm setup AppDelegate+Realm.swift- Realm database initialization and migration logic- Realm schema version: 17 (see
RealmConfiguration.swift)
Notification Extensions
NotificationServiceExtension/- UNNotificationServiceExtension that processes incoming notificationsNotificationService.swift- orchestrates notification processing through a pipeline of processorsProcessor/directory contains specialized processors that run sequentially:CiphertextProcessor- decrypts encrypted push content (must run first)MarkdownProcessor- renders markdown in notification bodyLevelProcessor- handles notification levels (active/timeSensitive/passive/critical)BadgeProcessor- manages app badge countAutoCopyProcessor- auto-copies content to clipboardArchiveProcessor- saves message to Realm databaseMuteProcessor- handles group mutingCallProcessor- plays repeating sound for 30 secondsImageProcessor- downloads and attaches imagesIconProcessor- sets custom notification icon (iOS 15+, runs last as it may timeout)
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.
- today Changed · +1 lines · +25 tokens per session 3dae1efad375
- 1mo ago Changed · -2 tokens per session 515ad76c9933
- 2mo ago First seen · 144 lines · 1,465 tokens per session scan A 9263a08b47d7
Bark AGENTS.md is an instructions file published in the GitHub repository Finb/Bark (9,485 stars, last pushed yesterday), licensed MIT. It adds 1,488 tokens to every session, about $0.0060 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 98% identical to Bark CLAUDE.md, differing in 146 lines, and is treated as a copy.
Bark AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| Bark AGENTS.mdFinb/Bark | Instructions file | 9.5k | yesterday | MIT | A | 1,488 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |