Skip to content

CrewAI with AgentFox
what gets checked, and where

CrewAI agents write tool calls as text, which no check on the model call can read. So the tools are checked where they run, and the model calls where they are made.

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 LiteLLM, OpenAI or Anthropic client the crew calls the model with: messages before, reply after
Tools where they runCrewStructuredTool.invoke and BaseTool.run, sync and async, are authorised before the body runs, with the arguments' provenance taken from earlier tool results
Tool resultsChecked as tool output before the agent reads them; text derived from a result keeps that taint
Delegate work to coworkerRecorded as a delegation between members, not refused as an unknown tool; calls are credited to the agent running its task

Found in the code by agentfox scan: Agent(role=..., tools=[...]), Crew(agents=[...]), @CrewBase. 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, outside the crew, is checked only if it is a CrewAI or LangChain tool.

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