Now in private beta

Look into the mind of
your AI agent

The most in-depth observability platform for AI agents. See every decision. Find exactly where it fails.

Dashboard
Total Traces
12,847 +12%
Avg Latency
1.24s -8%
Error Rate
0.8% -23%
Total Cost
$847.23 +5%
TRACE AGENT COST STATUS
trc_8f3a support $0.02 ok
trc_7e2b research $0.09 warn
trc_6d1c code $0.04 ok
trc_5c0b support $0.01 ok

Use Cases

Understand why your agent does what it does

From support bots to research agents, trace every thought and decision. Know exactly what went wrong and why.

Customer Support

Pinpoint the exact moment your agent went wrong

Trace every thought, every decision, every retrieval. See the complete chain of reasoning and find exactly where the failure occurred. No more guessing.

  • Thought chain replay
  • Hallucination detection
  • Context tracing
Conversation Replay
U
How do I reset my password?
A
You can reset your password by clicking "Forgot Password" on the login page...
Grounded 847 tokens · 0.89s
RAG Applications

See what your agent actually reads and remembers

Watch your agent's memory in action. See which documents it retrieves, which passages it focuses on, and whether it's actually using the context you gave it.

  • Memory inspection
  • Grounding scores
  • Source attribution
Retrieval Analysis
Retrieved Documents
docs/password-reset.md 0.94
docs/security-faq.md 0.87
docs/account-setup.md 0.62
Response fully grounded in sources
Autonomous Agents

Follow every step your agent takes

Watch your agent think in real-time. Visualize decision trees, track tool calls, and understand exactly why it chose one path over another. Catch runaway loops before they drain your API budget.

  • Decision tree view
  • Tool call tracking
  • Loop detection
Execution Timeline
Input
12ms
GPT-4
1.2s
tool:search
890ms
GPT-4
1.4s
Output
24ms
Total: 3.87s · 8,234 tokens · 1 warning
Content & Code Generation

Inspect every generation before it ships

Understand how your agent crafts each output. See the reasoning behind every word. Catch hallucinations, safety issues, and quality problems with deep inspection.

  • Generation breakdown
  • Safety checks
  • Feedback collection
Quality Signals
User Feedback
4.2
Safety Score
95%
Safe On-brand Factual

Platform Features

The deepest visibility into agent behavior

Purpose-built for AI agents. See what no other tool can show you.

Full Thought Tracing

See every step your agent takes: each LLM call, tool invocation, memory read, and branching decision. Understand its complete reasoning chain.

Hallucination Detection

Catch the moment your agent makes things up. Flag responses that contradict context or fabricate sources, in real-time.

Safety Monitoring

Detect policy violations, harmful outputs, and prompt injections before they reach users. See why they happened.

Cost Analytics

Track token usage and API spend down to individual decisions. Find exactly what's burning through your budget.

User Signals

Link user feedback directly to agent decisions. Understand which reasoning paths lead to good or bad outcomes.

Failure Replay

Replay any failed execution step-by-step. Rewind to the exact moment things went wrong and see every detail.

Integration

Up and running in minutes

Add a few lines of code. Works with any framework.

01

Install the SDK

npm install @foil/sdk or pip install foil-sdk. Framework-agnostic with first-class support for LangChain, LlamaIndex, and CrewAI.

npm install @foil/sdk
02

Wrap your agent

One line to instrument. All LLM calls, tool uses, and memory operations are captured automatically.

foil.wrap(agent)
03

View in dashboard

Traces stream in real-time. Set up alerts, analyze trends, and debug issues from a single UI.

// That's it!
agent.ts
import { Foil } from '@foil/sdk';

// Initialize with your API key
const foil = new Foil({ apiKey: 'sk-...' });

// Wrap your agent - that's it!
const tracedAgent = foil.wrap(myAgent);

// All LLM calls, tool uses, and decisions are now traced
const result = await tracedAgent.run("Help the user with their request");

Stop guessing. Start seeing.

Join 50+ teams who finally understand what their AI agents are doing.