# AgentDoG 1.5 — Shanghai AI Lab Ships a Lightweight Agent-Safety Alignment Framework, Trains 0.8B–8B Guardrails on ~1k Samples That Match GPT-5.4 Accuracy and Cuts Docker Overhead 100x

> Shanghai AI Lab's open AgentDoG 1.5 guardrails catch unsafe agent actions in real time, trained on a thousand samples and matching GPT-5.4-class safety classifiers.

- Org: Shanghai AI Lab (AI45Lab)
- Date: 2026-05-28
- Category: paper, repo, model
- Source: https://arxiv.org/abs/2605.29801
- Canonical page: https://ai-tldr.dev/releases/ai45lab-agentdog-1-5/

## In short

AgentDoG 1.5 is a four-size open guardrail family (0.8B/2B/4B/8B) plus an SFT-and-RL training stack for AI agent safety. Trained on ~1,000 samples, it scores 72.4% accuracy on ATBench, runs as an online guardrail, and is openly released under Apache 2.0.

## What it is

AgentDoG 1.5 is the second generation of Shanghai AI Lab's diagnostic guardrail for autonomous agents like OpenClaw and Codex-style coding agents. It ships as four sizes — 0.8B, 2B, and 4B built on Qwen3.5, plus an 8B built on Llama-3.1 — and is paired with the ATBench safety benchmark family. The whole stack, including model weights, datasets, and a training-free online guardrail pipeline, is released openly on GitHub and Hugging Face.

## How it works

The team updated their agent-safety taxonomy to cover risk sources, failure modes, and real-world harms emerging from desktop and coding agents. They then built a taxonomy-guided data engine, filtered with influence-function purification, that needs only about a thousand samples to train guardrail variants. Training uses a combined SFT-and-RL pipeline (GDPO and GSPO via Slime) inside a synthetic agentic environment they claim runs 10,000+ concurrent containers under 2.5GB of memory — a 100x reduction in Docker overhead vs prior setups. At inference, AgentDoG 1.5 plugs in as a pre-reply guardrail that diagnoses each agent action and intervenes before unsafe tool calls fire.

## Why it matters

Agent safety has been gated by either heavyweight closed-source classifiers or per-deployment custom rules. AgentDoG 1.5 lands an Apache-2.0 sub-1B-to-8B family that matches frontier-class accuracy on agent-safety benchmarks while running as a thin online guardrail, which is the shape teams shipping production agents actually need. The 100x reduction in Docker setup overhead is also useful: safety-RL labs that previously needed a cluster to spin up a few hundred environments can now stress-test agents on a single box.

## Who it's for

agent platform teams, AI safety researchers, red teams

## Try it

git clone https://github.com/AI45Lab/AgentDoG

## Links

- [arXiv 2605.29801](https://arxiv.org/abs/2605.29801)
- [GitHub Repo](https://github.com/AI45Lab/AgentDoG)
- [HF Papers](https://huggingface.co/papers/2605.29801)
- [Earlier AgentDoG Paper](https://arxiv.org/abs/2601.18491)
