Skip to main content

How It Works

Agent Diff uses templates and environments to create isolated test spaces:

Template

A snapshot of a service’s state (users, channels, messages, etc.) that serves as a starting point and is used to populate an environment.

Environment

An isolated copy of a template where your agent operates. Each test gets its own environment.
1

Clone Template

When you create an environment, Agent Diff clones the template’s data into a fresh database schema.
2

Agent Operates

Your agent makes API calls against the isolated environment. Changes only affect this environment.

Templates

Templates are pre-configured database schemas that serve as starting points.

Built-in Templates

View seed files on GitHub for details of already populated envs: Slack seeds | Linear seeds

Environments

Environments are isolated, ephemeral copies of templates where your agents operate.

Creating an Environment

Key Properties

Isolation

Each environment has:
  • Separate database schema: No cross-contamination between tests
  • Independent state: Changes don’t affect other environments or templates
  • Own API endpoint: Unique URL for routing agent requests

Querying Environment Data

Cleanup


Creating Custom Templates

You can create a template from any environment:

Next Steps

Runs & Diffs

Learn how state changes are captured

Assertions

Define expected outcomes