Skip to content

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.

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
The prompt the model receivesChecked before the call, retrieved chunks included, for planted instructions, secrets and PII
The model's replyChecked after; a redaction rule rewrites it before your code reads it
Each tool call in the replyAuthorised against the agent's grants before LlamaIndex runs it; a refused call raises Blocked
Tool results fed backChecked 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.

Limits
  • 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