Your First Experiment
Create and run your first experiment instance.
Once Athanor is running, let's create an experiment instance and execute a run.
Using the Web Interface
1. Create an Instance
- Navigate to http://localhost:4000
- Click New Instance
- Select an experiment module from the dropdown (try
SubstrateShiftif available) - Give your instance a name and optional description
- Configure the experiment parameters using the form
- Click Create Instance
2. Start a Run
From the instance detail page:
- Click Start Run
- Watch the run execute in real-time
- View logs as they stream in
- See results populate as the experiment progresses
3. Analyze Results
Once the run completes:
- Review the full log history
- Examine structured results with their keys and values
- Compare with other runs of the same instance
Using the MCP Server
If you prefer programmatic access, Athanor exposes an MCP server at /mcp.
List Available Experiment Modules
{
"method": "tools/call",
"params": {
"name": "list_available_modules"
}
}Create an Instance
{
"method": "tools/call",
"params": {
"name": "create_experiment",
"arguments": {
"module": "Elixir.SubstrateShift",
"name": "My First Instance",
"configuration": {
"runs_per_pair": 5,
"parallelism": 2
}
}
}
}Start a Run
{
"method": "tools/call",
"params": {
"name": "start_run",
"arguments": {
"instance_id": "your-instance-uuid"
}
}
}What's Happening?
When you start a run, Athanor:
- Creates a Run record with status
pending - Spawns a RunServer GenServer under the RunSupervisor
- Executes the experiment's
run/1callback in a monitored Task - Buffers logs and results in ETS for performance
- Flushes to the database periodically and on completion
- Broadcasts updates via PubSub for real-time UI updates
Next Steps
- Understand the core concepts behind Athanor's architecture
- Create your own experiment