# Agent Reliability Lab > Record every AI agent run in development, then change its prompt, model, tools or input and replay it, with traces, diffs and statistics. Open source, one container, no-op outside dev. Also known as Lab of Night and Flame. Created by Vico Aritonang (Vicoworks). Apache-2.0. It is meant for development: a few SDK calls that only run when STAGE=dev record every run of an AI agent, so the prompt, model, tools or input can be changed in the lab and the run sent again, instead of editing code, restarting and reproducing inputs by hand. The lab is one container (API, web UI and job worker in a single Go binary, with PostgreSQL) next to the agent being built. Agents report runs through SDKs (Python, TypeScript, Go), JSON over a WebSocket (protocol arl/1), gRPC, or OpenTelemetry (OTLP). ## What it does - Live traces: every run is recorded phase by phase (input, retrieval, agent, output, or custom phases): retrieved context and knowledge-graph walks, retries, nested spans, model requests and responses, tool calls, a cost ledger and checks. - Workbench: a captured run becomes an editable scenario (input, state, model, system prompt, parameters) that can be sent again through the agent's own code (replay) or as a single LLM step. Runs are compared side by side with a word diff. Scenarios export as arl-workbench/1 JSON. - Experiments: benchmarks on frozen datasets with seeded schedules, retries and budgets; Wilson and bootstrap 95% intervals; paired comparisons with exact McNemar tests, Holm and Benjamini–Hochberg corrections and Cohen's h; power analysis; acceptance gates; reports. - Quality loop: user and reviewer feedback, annotation queues with Krippendorff's alpha and Cohen's kappa, LLM-judge calibration, online evaluators and alert webhooks. - Trajectory checks: required tools, tool order, step budgets, output regex, JSON schema, canary leaks, cost and latency budgets. - Prompt registry with immutable versions and labels; regression suites for CI (`arl suite`, exit code 1 when the gate fails); a load-testing perf lab; built-in safety probes. - Modules are chosen with ARL_FEATURES (traces, otel, monitor, quality, workbench, suites, prompts, playground, datasets, experiments, perf; presets tracing, agent, eval). ## Links - [Website](https://arl.vicoworks.com/) - [Full guide for language models](https://arl.vicoworks.com/llms-full.txt) - [Source code and README](https://github.com/VicoAritonang/lab-of-night-and-flame) - [Protocol reference: connecting an agent](https://github.com/VicoAritonang/lab-of-night-and-flame/blob/main/connection.md) - [Deployment guide](https://github.com/VicoAritonang/lab-of-night-and-flame/blob/main/DEPLOYMENT.md) - Container image: ghcr.io/vicoaritonang/agent-reliability-lab ## Quick start git clone https://github.com/VicoAritonang/lab-of-night-and-flame.git && cd lab-of-night-and-flame && docker compose up -d # http://localhost:8000 Agents set LAB_WS_URL=ws://arl:8000/api/agent-lab/ws and STAGE=dev.