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/rjmurillo/ai-agents/push-lockgit clone --depth 1 https://github.com/rjmurillo/ai-agentsWrote 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/rjmurillo/ai-agents/push-lock)<a href="https://agentmods.dev/instructions/rjmurillo/ai-agents/push-lock"><img src="https://agentmods.dev/badge/instructions/rjmurillo/ai-agents/push-lock.svg" alt="Measured on agentmods" 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 | $0.02104 | $0.02104 |
| Opus 5 | $0.01052 | $0.01052 |
| Sonnet 5 | $0.00421 | $0.00421 |
| Haiku 4.5 | $0.00210 | $0.00210 |
Grade A, and why
ai-agents push-lock.instructions.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.
How it starts
The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.
One Push Lock Path
Scoped to the trees that carry push recipes rather than **. The always-on
.md ceiling in scripts/validation/instruction_budget.py had 998 bytes of
headroom when this rule was written and a universal copy failed it at 102.7
percent, which blocks every contributor's push. Nothing is lost by the narrower
scope: the binding half is
scripts/validation/check_push_lock_paths.py, which pre_pr.py runs on every
push whatever rules the harness loaded.
flock excludes only processes that open the same path. Two agents pushing the
same branch under two different lock names run concurrently while both believe
they are serialized, which is the lost ref update the lock exists to prevent.
Three schemes were live at once on 2026-08-02 (issue #4366). A ps census taken
while roughly 20 push processes were running found 5 processes on the per-branch
scheme, 11 on a hashed four-slot scheme, and 2 on a $HOME variant. Two of the
three provided no exclusion against the other two.
The rule is one path, written the same way everywhere:
BR=$(git branch --show-current)
SLUG=$(printf '%s' "$BR" | tr '/' '-')
mkdir -p "$HOME/src/scratch/locks"
flock "$HOME/src/scratch/locks/push-lock-$SLUG.lock" git push origin "$BR"
MUST
- Use
$HOME/src/scratch/locks/push-lock-<slug>.lockand nothing else. Not/tmp, not a hashed slot, not a literal home directory, not a per-worktree filename. A recipe that names any other path is a fourth scheme, and a fourth scheme is only discoverable byps. - Key the lock on the branch, with
/replaced by-. A branch namedfix/foowrites a lock path with a/in the filename otherwise, which the shell reads as a directory. Two distinct branches must never share a lock: git takes its own lock per ref, so unrelated branches serializing behind a 10 to 16 minute pre-push hook is pure waste. The hashed four-slot scheme collided two different branches about 25 percent of the time. - Create the directory in the same command.
flockfails when the parent directory is missing, and a failedflockin a detached push is silent. - Keep the lock out of
/tmp./tmpwas wiped mid-session on 2026-08-02. A wipe while a push holds the lock leaves the holder's descriptor on a deleted inode while the next push creates a new inode at the same path, so the two stop excluding each other. That is a split lock under one filename, which no amount of name agreement fixes.
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.
- yesterday First seen · 167 lines · 2,104 tokens per session scan A 51bfeeed01b8
ai-agents push-lock.instructions.md is an instructions file published in the GitHub repository rjmurillo/ai-agents (45 stars, last pushed yesterday), licensed MIT. It adds 2,104 tokens to every session, about $0.0105 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-09-03.
Other instructions, from other repositories
Alex_Skill_Mall severity-tagged-commits.instructions.md
Every commit touching brain artefacts (instructions / skills / prompts / agents / config / docs/ledgers / HANDOFF) must carry a severity tag in the commit subject: [typo | clarification | behaviour | constitutional]. [behaviour] and [constitutional] require an ACT pass before commit.
claude-capsule-kit CLAUDE.md
Instructions for arpitnath/claude-capsule-kit, covering capsule kit v4.0, rules, context system (capsule), wikilink layer and docs.
carmenta AGENTS.md
AGENTS.md instructions for carmentacollective/carmenta, covering project context for ai assistants, anti-patterns to avoid, always apply rules, project overview and directory documentation.
carmenta CLAUDE.md
Claude Code instructions for carmentacollective/carmenta, a project described as: A heart-centered AI for creating at the speed of thought.
Alex_Plug_In git-workflow.instructions.md
Consistent git practices, recovery patterns, and safe operations.
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).