pitfall

pitfall is a command for Claude Code from Ertinox7711/SGRR-AGI-V2. It costs 45 tokens per session (513 once invoked), scanned C, original, MIT.

A safety check that reads a local list of known mistakes before carrying out a risky action. It tests the relevant safeguards and returns either GO or NO-GO.

In plain words
What is it for?
Use it to review staged Git changes, run TypeScript checks, confirm destructive commands, handle blocked scraping, and investigate failed hooks or tests. Git is the version-control system used to track code changes.
Why use it?
It helps prevent avoidable damage from actions such as commits, pushes, deletion, hard resets, scraping, secret handling, or long-running processes. It checks before the action rather than after something has gone wrong.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to review staged Git changes, run TypeScript checks, confirm destructive commands, handle blocked scraping, and investigate failed hooks or tests. Git is the version-control system used to track code changes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ertinox7711/sgrr-agi-v2/pitfall
Install

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.

Clone the repo
git clone --depth 1 https://github.com/Ertinox7711/SGRR-AGI-V2

Made for: Claude Code.

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 pitfall

README.md
[![agentmods](https://agentmods.dev/badge/commands/ertinox7711/sgrr-agi-v2/pitfall/github.svg)](https://agentmods.dev/commands/ertinox7711/sgrr-agi-v2/pitfall)
Your own site
<a href="https://agentmods.dev/commands/ertinox7711/sgrr-agi-v2/pitfall"><img src="https://agentmods.dev/badge/commands/ertinox7711/sgrr-agi-v2/pitfall/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.

agentmods 80×15 button for pitfall

Your own site · 80×15
<a href="https://agentmods.dev/commands/ertinox7711/sgrr-agi-v2/pitfall"><img src="https://agentmods.dev/badge/commands/ertinox7711/sgrr-agi-v2/pitfall.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 513 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00045 $0.00513
Opus 5 $0.00023 $0.00257
Sonnet 5 $0.00009 $0.00103
Haiku 4.5 $0.00005 $0.00051

Measured yesterday against content hash faf857eb0cc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade C, and why

pitfall scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

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

| `rm -rf`, `reset --hard`, force-push | cible verifiee, reversibilite verifiee, sauvegarde faite |
commands/pitfall.md · 38 lines

What it actually says

C:\Users\YOU\.claude\PITFALLS.md recense 13 pieges payes en vrai temps perdu. Cette commande sert a les relire avant l'action, pas apres.

Action envisagee : $ARGUMENTS

Marche a suivre

  1. Lis C:\Users\YOU\.claude\PITFALLS.md.
  2. Retiens seulement les pieges que cette action peut declencher. Pour chacun : le risque en une phrase, et le controle concret a passer maintenant.
  3. Passe les controles toi-meme (lance-les), puis dis ce qui est vert et ce qui ne l'est pas.
  4. Verdict net : GO ou NO-GO, avec la raison. Si NO-GO, dis ce qu'il faut corriger d'abord.

Les controles qui reviennent le plus

Action Le controle a passer
commit git diff --cached lu en entier ; une feature = un commit
commit TypeScript npx tsc --noEmit vert avant de stager
push / PR / deploy confirmation de the operator — c'est visible par d'autres
rm -rf, reset --hard, force-push cible verifiee, reversibilite verifiee, sauvegarde faite
scraping qui rend 403/429 passer a Scrapling (StealthyFetcher), pas bricoler les en-tetes
hook ou test rouge trouver la cause, jamais --no-verify ni desactiver le test
process long, boucle, modele local plafond CPU/RAM/parallelisme pose
tout ce qui touche l'auth environnement minimal ; ANTHROPIC_API_KEY reste absente cote WSL
« c'est fait » tests verts + build OK + diff lu — sinon ce n'est pas fait

Si l'action ne declenche aucun piege, dis-le en une ligne et laisse passer. Pas de ceremonie inutile.

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. yesterday First seen · 38 lines · 45 tokens per session scan C faf857eb0cc4

Subscribe to this mod's changes

pitfall is a command published in the GitHub repository Ertinox7711/SGRR-AGI-V2 (1 stars, last pushed yesterday), licensed MIT. It adds 45 tokens to every session and 513 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-09.