← Back to Leaderboard
AAI45Lab

AI45Lab/AgentDoG

HF Paper ↗

Model-based guardrails for auditing agent trajectories and checking actions before execution

View on GitHub ↗
AI Framework
Engineering Health (Methodology)
B+ · 64/100
Maintenance Activity
● Updated 2d ago
Latest Release
Rolling commits (main)
Commercial License Check
Custom / Check Repo

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption12/25
Release Cadence11/20
License Clarity6/20
Total Stars
★ 851
24h Growth
+40
7d Growth
+145
Forks
42

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

AI45Lab/AgentDoG Star History (2026-01-07 - 2026-12-04) ALL-TIME STAR HISTORY (2026-01 – 2026-12) +850 in 331d · avg +3/day 899 450 0 2026-01-07: ★ 12026-01-31: ★ 2612026-02-21: ★ 3332026-03-14: ★ 3682026-04-04: ★ 3952026-04-25: ★ 4322026-05-16: ★ 4462026-06-06: ★ 5812026-06-27: ★ 6182026-07-18: ★ 6462026-08-08: ★ 6612026-08-29: ★ 6772026-09-19: ★ 6882026-10-10: ★ 6932026-10-31: ★ 7022026-11-21: ★ 7052026-12-04: ★ 851 ★ 851 2026-01 2026-06 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

AgentDoG separates post-run auditing from pre-execution review. AgentDoG2 takes a completed trajectory and emits a verdict or diagnostic labels without generating a chain of thought. Jev scores allowed labels at designated JSON schema positions in one forward pass. Step evaluates a pending tool call or reply against the history and returns a short analysis and verdict. For long-running tasks, the distinction matters: Step needs the original request and the authorization still in force, not just the latest tool arguments.

The Python project includes a Transformers trajectory-auditing example and versioned templates under prompts/v2.0/, with separate directories for AgentDoG2, Jev, and Step. AgentDoG2 and Step use supervised fine-tuning followed by GDPO; Step also learns from risk-source feedback on safe steps. SafeRSI adds a separate feedback loop: failure traces inform harness rules or runtime checks, and reviewed safer continuations train the policy model. The integration surfaces shown are checkpoints, prompts, examples, and harness code, not a documented plugin protocol.

Key Capabilities & Differentiators

AgentDoG2 and Step offer Qwen3.5 checkpoints at 0.8B, 2B, 4B, and 9B, plus Llama-3.1 8B. Jev offers Qwen3.5 variants at 0.8B, 2B, and 4B and a Llama-3.1 8B variant. The v2 taxonomy has 18 risk-source labels, 21 failure modes, and 11 harm labels. An unsafe diagnosis includes all three dimensions; a safe diagnosis can name the risk source or return None, so exposure to a risky instruction is distinguishable from acting on it.

The reported results favor different checkpoints for different jobs. AgentDoG2 2B reached 81.7% unsafe-class F1 on ATBench; on ATBench-Pro, AgentDoG2 8B reached 81.0% accuracy and 71.8% unsafe-class F1. Step 4B reached 87.5% overall unsafe-class F1 and 94.0% worst-class recall, the lower of safe and unsafe recall, aggregated across three pre-execution benchmarks. ATBench-Pro covers long, stateful traces, while ManipulationArena examines whether running agents preserve user intent in 888 validated cases.

Trade-offs & Limitations

Jev is the lower-generation-overhead option for offline classification, but speed and quality do not move together. Jev 4B-U reached 77.9% unsafe-class F1 at 59.8 ms mean latency on ATBench; on ATBench-Pro, Jev 4B reached 68.9% at 1.465 s. These measurements used one H200, serial requests, and no prefix caching. The checkpoints differ, so the figures illustrate deployment conditions and workload differences rather than a controlled latency comparison. Fine-grained labels are weaker than binary verdicts: the highest listed failure-mode accuracy on ATBench is 28.8%.

Compared with a deterministic policy engine, AgentDoG can consider intent and prior tool results, but its verdicts are probabilistic. Keep permission expiry, scope checks, and stop requests enforceable in the runtime. Compared with an API-hosted judge, local scoring gives the team control over where traces are processed but adds model-serving work. Validate safety and utility together: SafeRSI V1 with Step reduced ManipulationArena attack success from 65.84% to 21.40% versus baseline, yet BFCL-v3 function-calling accuracy fell from 75.34% to 67.39%.

Hardware & Deployment Guide

For a local pilot, start with the Python/Transformers walkthrough in examples/getting_started_v2.md and the supplied examples/trajectory_sample.json. Fetch the matching checkpoint from Hugging Face and pair it with the corresponding v2 prompt. Start with post-run scoring to measure errors and resource use, then trial Step in shadow mode before routing any execution decisions through it. Full trajectories may contain sensitive tool results; apply access and retention controls to audit inputs as well as verdicts.

No container deployment, managed inference path, pinned dependency versions, or minimum VRAM is specified. Size the serving environment for checkpoint size, precision, trace length, and concurrency, and test how the application handles histories beyond its context budget without losing permission changes. Model checkpoints and quickstarts are available for 1.0, 1.5, and v2, but no GitHub release is listed. Pin model, prompt, and code revisions together for reproducible evaluation, and resolve the unspecified repository license before commercial use.

Trajectory audit: AgentDoG2 returns a direct verdict or a diagnosis covering risk source, failure mode, and harm.
Single-pass scoring: Jev scores allowed labels at JSON schema positions and returns confidence scores without autoregressive label generation.
Pre-execution checks: AgentDoG-Step evaluates a pending tool call or reply in context; its 4B checkpoint reached 94.0% overall worst-class recall across three benchmarks.
Long-context evaluation: ATBench-Pro contains 1,000 trajectories averaging 48.98 tool calls and 57.51k tokens.
Model selection: AgentDoG2 2B reached 81.7% unsafe-class F1 on ATBench, while the 8B variant led the listed AgentDoG2 checkpoints on ATBench-Pro at 71.8%.
Headroom and cost of improvement: SafeRSI V1 with Step reduced ManipulationArena attack success from 65.84% to 21.40% versus baseline, while BFCL-v3 accuracy fell from 75.34% to 67.39%.
Best For

Teams that operate long-running, tool-using agents with changing permissions and need trace audits, pre-execution checks, or a benchmark-backed evaluation workflow.

Skip If

You need a turnkey authorization gateway, guaranteed enforcement, or a commercially cleared package without integrating and validating a model.

Reviewed on 2026-12-02 · Grounded in GitHub README, root file tree & releasesMethodology

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
AgentDoG ★851+145Python—Model-based guardrails for auditing agent trajectories and checking actions befo
browser-use122.7k+477PythonMITPython REPL and CDP for adaptive browser automation
langgraph45.8k+293PythonMITPython graph orchestration for stateful, resumable agents and workflows
langchain150.4k+290PythonMITModular Python framework for building agents across model providers

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/AI45Lab/AgentDoG.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

AI45Lab/AgentDoG Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about AgentDoG

Where does AgentDoG fit in an existing agent runtime?

Run AgentDoG-Step between action proposal and execution. Give it the original request, relevant history, pending action, and current authorization state. Let your runtime enforce permissions, handle timeouts and ambiguous verdicts, and decide when to require human approval. Use AgentDoG2 or Jev separately on completed traces.

How much GPU memory and runtime capacity should I budget?

No minimum VRAM or dependency versions are specified. Size for the selected checkpoint, numerical precision, input length, and concurrent requests. Evaluate memory and tail latency on representative traces: the reported Jev timings use one H200, serial requests, and no prefix caching, so they do not establish production capacity.

Can we self-host it for commercial use?

A local Transformers inference path is available, but the repository license is unspecified. Verify the rights for the code, each checkpoint and its base model, and any benchmark data you intend to use. Separately, define how sensitive tool traces will be stored, accessed, and retained.

How does it compare with a rules engine or a generative reviewer?

Use deterministic policies for rules your application can check directly, such as whether an approval is still active. A transcript-aware guard can flag behavior that requires interpreting user intent and tool history. For offline classification, compare Jev and AgentDoG2 on your own traces: Jev avoids autoregressive label generation, but it does not consistently match AgentDoG2 on every benchmark.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining AI45Lab/AgentDoG? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature AI45Lab/AgentDoG on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare