cd /news/ai-safety/agentguard-1-1-an-open-source-firewa… · home topics ai-safety article
[ARTICLE · art-76148] src=dev.to ↗ pub= topic=ai-safety verified=true sentiment=· neutral

AgentGuard 1.1: An Open-Source Firewall for Inter-Agent AI Messages

A developer built AgentGuard, an open-source firewall for inter-agent AI messages, to address the security gap in multi-agent systems where messages between agents are often left untrusted. The tool, available on GitHub, allows developers to inspect and block attacks on agent-to-agent communication, with a CPU ML latency of ~3.4 s P95 and support for GPU or rules-only modes.

read3 min views1 publishedJul 27, 2026

I used to think the scary part of AI agents was the model hallucinating.

It isn’t.

The scary part is when your system looks fine — green logs, clean outputs, a polite writer agent producing a report — and somewhere in the middle, one message quietly changed the mission.

Not because a user typed something evil.

Because a researcher agent fetched a page. Because a tool returned poisoned text. Because the next agent trusted its teammate the way we trust people we work with every day.

That trust is beautiful in teams.

In multi-agent systems, it is also the hole.

You wire orchestrator → researcher → writer.

You watch them hand work to each other.

It feels like collaboration.

Then one day it clicks: nobody is standing between them.

We put guardrails on the front door — user → model.

We leave the hallway between agents unlocked.

I looked for an open-source tool that treated those messages as untrusted. Not a chatbot filter. Not another “be careful with prompts” blog. Something in the path that says: this hop is not safe until we prove it.

I didn’t find it.

So I built AgentGuard — open source. A firewall for the conversations agents have with each other.

pip install inter-agent-guard   # import as agentguard

If that unlocked-hallway unease is familiar — stay. This is for you.

Two commands. Same pipeline. Different ending:

git clone https://github.com/nizba06/agentguard.git
cd agentguard
pip install -e ".[all]"
python scripts/download_release_model.py   # ~164 MB INT8 — needed for the secured demo

python examples/vulnerable_pipeline/pipeline.py

python examples/secured_pipeline/pipeline.py

First run: gut punch.

Second run: relief.

Same pipeline. Different outcome. That’s the point.

What it does on every hop

Less “another AI package.” More the colleague who finally checks the handoff before anyone acts on it.

Why you can trust the story

Why you should also trust the limits

CPU ML latency is still ~3.4 s P95. That is above the original 15 ms design target. Use GPU, async inspection, or rules-only on hot paths.

Trust is connection that survives the fine print.

Belief dies when day one is painful. So the adoption path is gentle on purpose:

from agentguard import AgentGuard, CapabilityManifest

guard = AgentGuard(
    risk_threshold=0.85,
    task_objective="Analyse Q3 competitor pricing",
    require_ml_model=False,  # start here — no giant model download
)
guard.register_agent(
    "researcher",
    CapabilityManifest.from_yaml("manifests/researcher.yaml"),
)
secured = guard.wrap(my_langgraph_graph)

AgentGuardMiddleware

for LangChain)

python scripts/download_release_model.py  # ~164 MB, optional upgrade

You don’t need the full stack on day one.

If you are building multi-agent systems, you are not alone in that quiet worry.

Maybe you ship at night as a solo builder.

Maybe your team just wired three agents and felt proud a little too fast.

Maybe a tool return already burned you in a way that “shouldn’t have mattered.”

I built AgentGuard so we could stop pretending the hallway is safe.

If you want to go further:

Goal Action
See it work Run the two demos above
Try it on your stack Wrap one real graph (or add AgentGuardMiddleware )
Help improve it Open an issue with an attack we miss

Stars help people find the repo. Issues and stories help it get better.

Personal open-source. Built because the gap bothered me enough to stay up for it.

If the unlocked hallway bothers you too — star the repo, try a wrap, or open an issue.

── more in #ai-safety 4 stories · sorted by recency
── more on @agentguard 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/agentguard-1-1-an-op…] indexed:0 read:3min 2026-07-27 ·