惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
Last Week in AI
Last Week in AI
人人都是产品经理
人人都是产品经理
博客园 - 【当耐特】
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Check Point Blog
月光博客
月光博客
腾讯CDC
Engineering at Meta
Engineering at Meta
博客园 - Franky
Vercel News
Vercel News
D
Docker
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
F
Fortinet All Blogs
Microsoft Security Blog
Microsoft Security Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
雷峰网
雷峰网
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
GbyAI
GbyAI
B
Blog
Hugging Face - Blog
Hugging Face - Blog
T
Tailwind CSS Blog

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
I built Agent Shield an open-source traffic control layer...
Vadim · 2026-04-29 · via DEV Community
Cover image for I built Agent Shield an open-source traffic control layer for AI coding agents.

Vadim

The idea is simple: AI agents send a lot of stuff over the network: prompts, code snippets, logs, tool output, telemetry, sometimes secrets. Most of that is hidden inside the CLI.

Agent Shield sits between the agent and the network, so you can see and control what goes out.

What you can do with it

  • See traffic — inspect HTTP, WebSocket, and SSE traffic from AI tools in real time.
  • Audit and observability — record what was sent, where it went, which tool produced it, when it happened, and which decision was applied.
  • Data protection and DLP — stop secrets, private code, customer data, internal logs, or environment details before they leave the machine; run traffic through custom rules, a local classifier, a DLP service, or a local LLM.
  • Modify packets — redact, replace, block, or reroute requests and responses.
  • Model routing — send simple work to a local model via Ollama or llama.cpp, route harder tasks to external APIs.
  • Cost control — attach counters, budgets, latency rules, and project-specific policies outside the AI client itself.
  • Agent orchestration — observe and coordinate multiple CLI agents through one traffic layer instead of writing a custom integration per client.
  • Worker status — see which agent is busy, which is free, what task it is on, and where it may be blocked.
  • Alerts — plug in listeners for Telegram, dashboards, logs, or analytics.
  • Client independence — keep control outside the vendor UI, pricing model, telemetry settings, and protocol changes.

How it works

There are two extension points:

  • Listeners get a copy of the event. They do not block traffic. Good for logs, alerts, dashboards, and analytics.
  • Decision handlers run before traffic continues. They can allow, block, modify, replace, or route it.

Current pieces:

  • MITM proxy for explicitly routed traffic
  • HTTP, websocket, and SSE handling
  • normalized events
  • REST listeners and handlers
  • NATS event flow
  • dashboard for captured traffic
  • worker status signals

AS architecture

Why I built it

AI agents are becoming part of the dev workflow, but we still treat their network traffic like a black box.

Terminal control is useful, but it does not answer the important question:

What did the agent actually send out?

Agent Shield gives that traffic a clear control point.

Repo: agent-shield