LlamaFirewall
Open-source Python guardrail framework for detecting prompt injection, goal hijacking and insecure code in AI agents.
What it does
Lets developers wrap agent inputs, reasoning and outputs in layered security scanners. It combines a prompt-injection classifier, a chain-of-thought alignment checker, a code security scanner and custom regex rules into one policy engine for real-time use.
What an agent can do with it
- detect prompt injection
- audit agent reasoning for misalignment
- scan generated code for vulnerabilities
- apply custom regex rules
How to set it up
pip install llamafirewall (Python 3.10+); some scanners need access to Meta's Llama models on Hugging Face.
Full steps: Meta's documentation.
Give the agent only the access it needs, and keep a person approving anything it sends, pays, or deletes.
Use cases that use it
Ad copy variants within written brand rules
Give the agent your brand rules and offer details; it drafts several ad headline and description… Read →
Marketing · Google Docs (brand rulebook) · Google Sheets · ClaudeSocial comment moderation queue
The agent sorts incoming social comments into questions, complaints, spam, and praise, and drafts… Read →
Marketing · Meta Business Suite or another social inbox · Airtable or Google Sheets · ClaudeFilter social comments into reply, hide, and escalate
Comments on your business's social posts are sorted by a decision model into needs a reply, spam to… Read →
Decision models (Jev) · Jev (TypeSafe AI) · Meta Business Suite · MakeAd performance questions answered in a chat
Marketers ask a chat assistant connected to live ad data how campaigns are doing and get reports… Read →
Marketing · Supermetrics · Claude · Google AdsSimilar AI agents
Agent Development Kit (ADK) for Go
Google's open-source, code-first Go framework for building, evaluating and deploying AI agents. Details →
Automation & agents · Google · Free / open sourceAgent Development Kit (ADK) for Java
Google's open-source, code-first Java framework for building, evaluating and deploying AI agents. Details →
Automation & agents · Google · Free / open sourceAgent Development Kit (ADK) for Python
Google's open-source, code-first Python framework for building, evaluating and deploying AI agents. Details →
Automation & agents · Google · Free / open sourceAgent Development Kit (ADK) for TypeScript
Google's open-source, code-first TypeScript framework for building, evaluating and deploying AI… Details →
Automation & agents · Google · Free / open sourceAgentCore CLI
Command-line tool to create, develop locally and deploy agents to Amazon Bedrock AgentCore. Details →
Automation & agents · AWS · Needs AWS accountAmazon Bedrock AgentCore SDK (Python)
Framework-agnostic Python primitives to run any agent on Bedrock AgentCore runtime, memory… Details →
Automation & agents · AWS · Needs AWS accountSources
Descriptions are written by Agents Lookup unless marked as quoted. Each link opens the original.
- Official page: github.com/meta-llama/PurpleLlama/tree/main/LlamaFirewall (checked 2026-11-19)
- Meta list where it appears: github.com/meta-llama/PurpleLlama