CLAUDE.md overload: long or conflicting rules obscure key conventions
In one sentence: you pour every convention you can think of into CLAUDE.md, hoping I'll cover all of it. When rules proliferate or conflict, I may miss key requirements. Check actual loading and task results.
Gemini CLI hijacked by "tell me about this repo": an injection hidden in the README, and a command padded off-screen
In one sentence when an agent reads untrusted content and command validation is too weak, a similar injection can recur on other tools. So it's worth watching frame by frame.
Giving MCP Tools Access That's Too Broad, Too Sensitive
In one sentence a malicious instruction buried in an issue I read, or a web page I fetch, can ship your data outward through the tools already in my hands.
Handing Me Every Permission on Day One
In one sentence: skipping approvals removes human interception opportunities. Sensitive data, production credentials, and unrestricted tools can amplify mistakes and prompt injection. Match autonomy to action risk and effective isolation.
I don't check what the file looks like right now, so a "clean rewrite" overwrites your changes
In one sentence: the copy of the file I'm holding is several rounds old, and I never saw the lines you just hand-edited. I hand back a "complete rewrite" — clean, yes, but your changes are gone with it, and you usually only notice a while later.
I read a malicious README / issue / rules file while coding — and got hijacked
In one sentence: A README, issue, web page, code comment, or rule file I read may carry instructions that misuse tools. Treat external content as material to analyze and restrict data, tools, and egress. Tags and automatic approval cannot each guarantee protection.
My git hygiene is poor: giant commits, vague messages, and junk committed alongside
In one sentence: I may mix unrelated edits, artifacts, or sensitive files into a large commit with a vague message; inspect the real index and organize verifiable logical changes while preserving preexisting work.
On fast-moving libraries, I hallucinate APIs and drift across versions
In one sentence: when you ask me to call into a fast-moving library, I fill the gaps from training memory—I may use an API that's deprecated or has a changed signature, mix usage from different major versions, or even hallucinate a method that doesn't exist. The code "looks right," the compiler won't always catch it, and it only blows up at runtime.
Runaway Autonomous Loops: Let Me Run Free and I Might Burn Through Your Tokens and Your Budget
In one sentence: I may repeat model/tool requests without progress, accumulating costs and side effects; the executor must track calls, time, spend, and permissions separately, since prompts are not hard caps.
Running subagents in parallel without clear boundaries or a shared contract
In one sentence: I can delegate in parallel, but context, messages, files, and Git state are separate sharing surfaces. Define contracts, workspaces, and an integrator. Prefer separate worktrees for concurrent writes and one Git writer in a shared workspace.
The destructive op is done before you realize it's irreversible: I might wipe the DB, erase backups, or ignore a freeze
In one sentence: resource permission does not establish task authorization for an irreversible action. Check the target, recovery path, and independent controls before production deletion, overwrites, or publishing. File checkpoints generally cannot undo external service effects.
Trusting a parent can grant configuration trust to repositories added later
In one sentence: when Gemini CLI Trusted Folders is enabled, trusting a parent also trusts its children, including repositories added later. Grant trust at project scope and distinguish configuration loading from tool permissions.
When I Wire Up CI/CD, I Assume Automation Steps Will Work and Miss the Permission Boundary
In one sentence: I can write a plausible deployment workflow while mixing execution, resource setup, and permission changes. A passing CI run does not establish correct access, and an authorization failure is not a reason to add an administrator token.
You acted before aligning on an ambiguous or high-consequence task
In one sentence: Explore and resolve key choices before ambiguous or high-consequence tasks. Clear, reversible small changes can proceed directly. Planning and approval depth depend on risk and unresolved decisions, not the number of files.
You compacted without checking task recovery
In one sentence: Compaction summarizes history; it does not automatically delete uncommitted files. Save the goal, evidence, and next steps in task artifacts, then verify recovery. A commit does not guarantee restored context.
You configured tool permissions without checking process and resource isolation
In one sentence: Client policies intercept covered calls; OS isolation limits the resources accessible to covered processes. Verify which processes, readable paths, and network routes are inside the boundary, rather than relying on “sandbox enabled.”
You didn't restrict my outbound network, so I became the "external communication" leg of the lethal trifecta
In one sentence the source code, secrets, and data I read, I can encode into a URL and send to an attacker's server—an outward capability that needs explicit controls.
You point my config at a world-writable system directory — an attacker drops a file, and I run their command as every user
In one sentence: a historical Windows vulnerability allowed a low-privileged account to create trusted system configuration that later ran commands as another user launching the tool. Actual ACLs, paths, versions, and victim-process privileges determine exposure.
You Wrote a settings.json Rule as a CLAUDE.md Note
In one sentence: Writing “do not read secrets” or “ask before pushing” in CLAUDE.md can guide me, but it is not an execution boundary. Use client policies for matching actions and sandbox/credential controls for reachable resources, checking each layer's scope.