LlamaIndex with AgentFox
what gets checked, and where
LlamaIndex reaches the model through a client library the one line patches. The prompt it builds, retrieved chunks included, is checked before the call, and each tool call is authorised before the agent runs it.
Three lines
Everything starts in Watch: nothing is stopped until you switch a library to Block.
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.
| Checked | How |
|---|---|
| The prompt the model receives | Checked before the call, retrieved chunks included, for planted instructions, secrets and PII |
| The model's reply | Checked after; a redaction rule rewrites it before your code reads it |
| Each tool call in the reply | Authorised against the agent's grants before LlamaIndex runs it; a refused call raises Blocked |
| Tool results fed back | Checked as tool output; text derived from a result keeps that taint |
Found in the code by agentfox scan: LlamaIndex agent constructors given tools=[...]. The scan reads the repository and runs nothing, so it works before any of the lines above are added.
- A tool your own code calls without the model asking is not seen; LlamaIndex'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