AgentDoG-Step-Qwen3.5-2B
Security Guard for AI Agents
2 min readupdated
The AgentDoG-Step-Qwen3.5-2B model was created by the AI45Research team to inspect AI agent actions before execution or sending responses to users. Built on Qwen/Qwen3.5-2B-Base (2.27 billion parameters), it acts as a guard model (a specialized safety filter). By taking the interaction history and planned action as input, the model outputs a Safe/Unsafe verdict, explains the reasoning, and points out the risk source. This tool is useful for autonomous agent developers to prevent dangerous API calls and unwanted responses.
Key features
- Step-by-step control: validates tool calls before execution and assistant responses before delivery.
- Detailed threat breakdown: alongside the Safe/Unsafe verdict, it flags the source of risk, and for dangerous actions, the failure mode and consequences.
- Compact size: 2.27B parameters allow deploying the model as a fast standalone filter in front of the main LLM.
- Ready-to-use wrappers: the repository includes
step_inference.pyhelpers and an input schema for quick integration.
What you can do
- Set up a local moderation server: deploy the model via vLLM as an OpenAI-compatible API to filter requests in real time.
- Integrate into an agent pipeline: place the model as a middleware layer before executing critical functions (file operations, databases, external requests).
- Evaluate your own scenario safety: run custom dialog logs through the provided scripts and the
taxonomy.jsonrisk taxonomy.
Example
vllm serve AI45Research/AgentDoG-Step-Qwen3.5-2B --served-model-name agentdog-step --dtype bfloat16 --language-model-onlyRead more
DetailsBenchmarks (Table 7): TS-Bench-Dojo — 95.6% Accuracy (92.6% Unsafe F1), TS-Bench-ASB — 86.6% Accuracy, StepShield — 98.0% Accuracy, with an Overall average of 93.4%.
Inference: supported via vLLM in bfloat16 precision, with 0.8B, 4B, and 9B parameter versions also available in the series.
License: Apache 2.0.










Comments