---
title: "Deploy Agent Regression Diff"
description: "Compare expected and observed agent outputs by case ID"
category: "AI/ML"
url: https://railway.com/deploy/agent-regression-diff
---

# Deploy Agent Regression Diff

Compare expected and observed agent outputs by case ID

**[Deploy Agent Regression Diff on Railway](https://railway.com/template/agent-regression-diff)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/agent-regression-diff/manifest.json

- **Creator:** dankeewithtwoes's Projects
- **Category:** AI/ML

## Template content

### Tool

- **Image:** python:3.13-slim
- **Start command:** `python -c "import base64,os;exec(compile(base64.b64decode(os.environ['TOOL_CODE']),'tool.py','exec'))"`
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host Agent Regression Diff on Railway

Compare expected and observed agent outputs by case ID.

## About Hosting Agent Regression Diff

This is a stateless JSON tool. Deploy it, copy TOOL_TOKEN from service variables and send it as an Authorization: Bearer header on POST /run. The /health endpoint is public and returns readiness only. Inputs are limited to 64 KiB. The application does not store requests or call a model.

## Why Deploy Agent Regression Diff

Call a deterministic operation from an agent, workflow or application without an LLM API key.

## Common Use Cases

- Compare expected and observed agent outputs by case ID.
- Insert a deterministic check or transformation in a workflow.
- Repeat the documented example in a regression check.

## Dependencies for Agent Regression Diff

- Python 3.13 container and a Railway project.
- An HTTP client with your generated bearer token.

### Example input for POST /run

```json
{"expected": {"a": 1, "b": 2}, "actual": {"a": 1, "b": 3}}
```

### Expected response

```json
{"result": ["b"]}
```

The single process is intended for small internal workloads. Set concurrency and load limits upstream before serving high volume traffic.


## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/agent-regression-diff
