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.
npx agentmods add instructions/ganeshmshetty/openclip/agents-mdgit clone --depth 1 https://github.com/ganeshmshetty/openclipWhat 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 | $0.01350 | $0.01350 |
| Opus 5 | $0.00675 | $0.00675 |
| Sonnet 5 | $0.00270 | $0.00270 |
| Haiku 4.5 | $0.00135 | $0.00135 |
Grade A, and why
openclip 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 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.
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.
How it starts
The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
OpenClip is a macOS floating-popup utility (Swift 6, macOS 14+, AppKit + SwiftUI) that turns selected text into actions. The repo is a Swift app plus a small Next.js marketing site under web/ (which has its own web/AGENTS.md).
Build & test
The Xcode project is generated by XcodeGen from project.yml, not edited by hand. After adding/removing .swift files, re-run xcodegen generate (the scripts re-run it automatically).
git submodule update --init # populate Extensions/ catalog submodule (optional, for extension authoring)
./scripts/dev_run.sh # build Debug + launch from DerivedData (logs: /tmp/openclip.log)
./scripts/test.sh core # fast Core domain test suite (<1s)
./scripts/test.sh # full test suite (0 skips, ~45s)
./scripts/test.sh ActionRegistryTests # single test class
./scripts/package_app.sh # Release build -> build/OpenClip.zip
./scripts/clean.sh # wipe DerivedData/build caches
All Swift is Swift 6 with SWIFT_STRICT_CONCURRENCY: complete. Targets (see project.yml): Core (pure domain framework), OpenClip (app), OpenClipTests. SPM deps: KeyboardShortcuts, SDWebImageSwiftUI/SVGCoder.
Architecture hard rules
- Core is pure — no AppKit/SwiftUI imports in
Sources/Core/, and the boundary is enforced by concept, not just import-grepping: UI-only presentation concerns (popup sizing/timing constants, chrome-style presentation metadata) live inSources/OpenClip/— e.g.PopupMetricsholds popup/search sizing andResultCardViewrenders action results natively — whileCore/Selection/Constants.swiftkeeps only domain/runtime constants (timeouts, key codes, env vars, manifest keys). Platform side-effects live inSources/OpenClip/(runtimes,ActionResultHandler,DefaultActionFactory). - No direct
UserDefaults.standardin new code — route throughSettingsStore+SettingKey. The only remaining raw access is the one-timeaiCloudAPIKeymigration inAIServiceManager(read-then-delete); don't add more. Secrets (AI API key, secret options) go toSecretStore(~/.openclip/secrets.jsonwith 0600 POSIX permissions), never UserDefaults. ActionCoordinatoris the composition root. Managers report registry changes viaonRegister/onUnregistercallbacks only; nothing else touchesActionRegistry.shared.- No
switch action.idstring-matching in UI/presentation — useActionChrome/ConfigurableAction.preferenceIconNameinstead. - Any new subprocess-spawning action must kill the child after
Constants.scriptTimeout(30 s, the shared watchdog); shell/AppleScript/JS runtimes all join the existingShellProcessRunnerexecutor rather than spawning their own. - Verified current-state details (incl. residual debt and the search/content popup modes) live in
docs/architecture/known-debt.md— update it when you touch those areas.
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.
- 3d ago First seen · 65 lines · 1,350 tokens per session scan A 647a21ac4a27
openclip AGENTS.md is an instructions file published in the GitHub repository ganeshmshetty/openclip (26 stars, last pushed 5d ago), licensed MIT. It adds 1,350 tokens to every session, about $0.0068 per session on Opus 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.
Other instructions, from other repositories
Swift-Foundation-Models-Skills AGENTS.md
Instructions for sambitcreate/Swift-Foundation-Models-Skills, covering apple foundation models skills repository, skills overview, core session management, structured generation and tools & system integration.
MobiAI-Core CLAUDE.md
Instructions for ArisGuimera/MobiAI-Core, covering mobiai — mobile development ai ecosystem, bootstrap and principles.
freetube CLAUDE.md
Instructions for leshkodev/freetube, covering claude.md, 1. what this project is, 2. non-negotiable constraints, 3. tech stack (locked) and 4. project structure.
ConsultMe CLAUDE.md
Instructions for Tarek-Bohdima/ConsultMe, covering claude.md, project context, common commands, module graph and conventions enforced by tooling.
claude-status CLAUDE.md
Instructions for gmr/claude-status, covering claude.md, project overview, build & test, platform & language and dependencies (spm).
DensityToggle CLAUDE.md
Instructions for channelramble/DensityToggle, covering density toggle - wear os display density control, goal, current status, how it works and how auto mode decides (v5).