lockpaw: Instructions file for Claude Code

CLAUDE.md

lockpaw CLAUDE.md is an instructions file for Claude Code, Codex from sorkila/lockpaw. It costs 8,307 tokens per session, scanned D, original, MIT.

Repository instructions for Lockpaw, a macOS menu-bar app that covers the screen and signals when an AI coding agent needs human input.

In plain words
What is it for?
They guide generating the Xcode project, building and testing the app, resetting Accessibility permissions after rebuilds, and keeping product information accurate.
Why use it?
They provide the project’s build, test, dependency, permission-reset, and release details in one place.

Instructions file for Claude CodeCodex

Written for Codex and Claude Code: reads ~/.codex or $CODEX_HOME, but also the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is sorkila/lockpaw's own configuration. It tells Claude Code and Codex how to work on lockpaw 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 lockpaw configures →

Reuse

Borrowing it

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

Made for: Claude Code, Codex.

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 lockpaw CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sorkila/lockpaw/claude-md.svg)](https://agentmods.dev/instructions/sorkila/lockpaw/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/sorkila/lockpaw/claude-md"><img src="https://agentmods.dev/badge/instructions/sorkila/lockpaw/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 8,307 This file is loaded in full into every session.
When invoked 8,307 The same file — it is already loaded in full.
Security scan D 2 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.08307 $0.08307
Opus 5 $0.04154 $0.04154
Sonnet 5 $0.01661 $0.01661
Haiku 4.5 $0.00831 $0.00831

Measured 7d ago against content hash d24479ebb342, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade D, and why

lockpaw CLAUDE.md scanned grade D with 2 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 7d 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.

- **Six hookable agents (since v1.2.0)** — Claude (`Notification`+`Stop`, `~/.claude/settings.json`), Codex (`notify`, `~/.codex/config.toml` — its richer hooks.json is still feature-flagged upstream, so `notify` stays),

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

- **Latest release** — v1.3.0 released 2026-08-24 (build 14). DMG SHA-256: `9b1df1d26c433c18f1921f09390b04c3a806015c0fdb07c4c12ed6ca3e694251`. Fade to black display protection (contributed in #15 by @swbiggart; follow-up
CLAUDE.md · 262 lines

How it starts

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

Lockpaw

macOS menu bar screen guard. Lock/unlock with a hotkey; the covered screen glows when your AI agent (Claude Code / Codex / Gemini) needs you. Dog or cat mascot.

Quick reference

  • App name: Lockpaw
  • Bundle ID: com.eriknielsen.lockpaw
  • URL scheme: lockpaw://
  • Website: getlockpaw.com (hosted on Inleed, deployed via FTP from sorkila/lockpaw-web)
  • Repo: [email protected]:sorkila/lockpaw.git
  • Requires: macOS 14+, Xcode 16+, XcodeGen
  • Dependencies: Sparkle (SPM, auto-updates with EdDSA signing)
  • Current version: 1.3.0
  • Size: ~10 MB DMG download, ~13 MB installed (2.7 MB of that is Sparkle) — keep README/site/marketing claims in sync with the actual DMG when this changes

Build

xcodegen generate
xcodebuild -project Lockpaw.xcodeproj -scheme Lockpaw -configuration Debug build

After each rebuild, reset TCC (binary signature changes invalidate Accessibility permission):

tccutil reset Accessibility com.eriknielsen.lockpaw

Test

xcodebuild -project Lockpaw.xcodeproj -scheme Lockpaw -configuration Debug test

91 unit tests covering LockState transitions, Constants formatting, HotkeyConfig conflict detection/auth-required unlock preference, SleepPreventer state handling, Mascot resolution, PingDecision agent-ping branching, FadeToBlack preference resolution (checkbox × delay), and every branch of the PresentationLogic fade-to-black reducer.

Release

./scripts/build-release.sh

Builds unsigned → copies to /tmp for signing → signs with Developer ID → creates DMG → notarizes → staples → sets custom DMG file icon. Output: build/Lockpaw.dmg.

Requires: lockpaw-notarize keychain profile (already stored), Sparkle EdDSA signing key in Keychain.

Signing: The build script copies the app to /tmp via ditto --norsrc before signing. This is required because the repo lives in iCloud-synced ~/Documents which adds irremovable com.apple.FinderInfo and com.apple.fileprovider.fpfs#P xattrs that cause codesign to fail with "resource fork, Finder information, or similar detritus not allowed". Signing is done inside-out with --timestamp: XPC service binaries → XPC bundles → Autoupdate → Updater.app binary → Updater.app → Sparkle.framework → main app.

Read the full file on GitHub · 262 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. 7d ago First seen · 262 lines · 8,307 tokens per session scan D d24479ebb342

Subscribe to this mod's changes

lockpaw CLAUDE.md is an instructions file published in the GitHub repository sorkila/lockpaw (148 stars, last pushed 13d ago), licensed MIT. It adds 8,307 tokens to every session, about $0.0415 per session on Opus 5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens