Skip to content

AutoGen with AgentFox
what gets checked, and where

AutoGen reaches the model through a client library the one line patches. Each tool call the model asks for is authorised before AutoGen runs it, and AgentTool and TeamTool are recorded as delegation.

Three lines

Everything starts in Watch: nothing is stopped until you switch a library to Block.

Install
pip install agentfox && agentfox init
# at startup, before any model call:
import agentfox; agentfox.auto(agent="support-triage", intent="answer questions about orders")

What gets checked

Each row is a check that runs in your process, before the thing it checks happens.

CheckedHow
Model callsThrough the OpenAI or Anthropic client: messages before, reply after, buffered or streamed
Each tool call in the replyAuthorised against the agent's grants before AutoGen runs it; a refused call raises Blocked
Tool results fed backChecked as tool output; text derived from a result keeps that taint
AgentTool and TeamToolRecorded as an agent used as a tool, not refused as an unknown tool

Found in the code by agentfox scan: AssistantAgent(tools=...), group chats, Swarm hand-offs (AutoGen and AG2). The scan reads the repository and runs nothing, so it works before any of the lines above are added.

Limits
  • A tool your own code calls without the model asking is not seen; AutoGen's own tool runner is not patched.

Where to go from here

Python apps: what the one line covers per framework Tool access: which tools the agent may call What the checks catch, with their limits Every framework

Try AgentFox on your own agent

One command finds your agents. It starts in watch mode, so nothing is blocked until you say so.

uvx agentfox scan