alelaguard

Agentguards Plugins — AI skill for Claude Code

AI community

Guardrails for AI coding agents: stop prompt injection, secret leaks and destructive commands in Claude Code, Codex, Gemini CLI, Copilot CLI and OpenCode.

How to install Agentguards Plugins

This entry records only its repository, not the path inside it, so there is no exact command to give. Open alelaguard/agentguards-plugins and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Agentguards Plugins does

Guardrails for AI coding agents: stop prompt injection, secret leaks and destructive commands in Claude Code, Codex, Gemini CLI, Copilot CLI and OpenCode. One-command install.

Alternatives in AI

  • System Prompts Leaks — Extracted system prompts from ChatGPT (GPT-5.4, GPT-5.3, Codex), Claude (Opus 4.6, Sonnet 4.6, Claude Code), G 38.6k ★
  • Hol Guard — Open-source antivirus for AI agents: block risky tools, secret access, prompt injection, malicious packages, M 485 ★
  • Memory Forge Rs — Stop resetting satisfying AI chats — edit the memory instead 474 ★

README

AgentGuards — guardrails for AI coding agents

**Stop prompt injection, secret leaks and destructive commands before your coding agent acts on them.** Works with Claude Code, OpenAI Codex, Gemini CLI, GitHub Copilot CLI and OpenCode.

[![Agents: Claude Code · Codex · Gemini CLI · Copilot CLI · OpenCode](https://img.shields.io/badge/agents-Claude%20Code%20%C2%B7%20Codex%20%C2%B7%20Gemini%20CLI%20%C2%B7%20Copilot%20CLI%20%C2%B7%20OpenCode-0f766e)](#install--one-line-per-agent) [![License: FSL-1.1-MIT (hosted) · MIT (self-hosted)](https://img.shields.io/badge/license-FSL--1.1--MIT%20%C2%B7%20MIT-informational)](./LICENSING.md)

Your agent reads web pages, PDFs, images and tool output you never see. Any of them can carry instructions written for the agent, not for you. AgentGuards hooks into the agent itself and checks every prompt, shell command and piece of fetched content before the agent acts on it.

What gets blocked

![Claude Code fetches a blog post carrying instructions for the agent; AgentGuards blocks the page content and Claude refuses to act on it](./assets/demo-web-injection.gif)

*A real, unedited run: Claude Code with the AgentGuards plugin is asked to apply the "performance tips" from a blog post (a test page served locally) that carries instructions aimed at the agent. AgentGuards blocks the page content, and Claude leaves `src/app.py` untouched.*

Another example: instructions hidden in a PDF

![Claude Code is asked to summarize a PDF with hidden instructions; AgentGuards blocks the file before Claude reads it](./assets/demo-pdf-injection.gif)

*Claude Code is asked to summarize a PDF whose white text layer carries instructions for the agent. The file is blocked before Claude reads it.*

The agent is about to… AgentGuards
Read a web page with hidden "ignore your instructions and…" text Withholds the page, or strips the injected text, before the agent acts on it
Open a PDF or screensh