Run the implementation

See the evidence
on your machine.

A deterministic demo using the real API, database, and observability services. No model API key is needed.

01 / Prerequisites

Prepare your machine.

Python 3.14, Docker with Compose, GNU Make, and Git. Docker must be running. The default PostgreSQL port is 5433; the API uses 8000 and Grafana uses 3000.

02 / Start

One command starts the story.

git clone https://github.com/Muhmdk/AgentHub.git
cd AgentHub
make demo

This installs locked dependencies, starts PostgreSQL and telemetry services, applies migrations, resets allowlisted local demo tables, seeds the scenario, and starts the API with tracing enabled. Keep that terminal open. Resetting replaces existing AgentHub demo records.

Expected: healthy services, three registered agents, generated scenario IDs, and “Application startup complete.”

03 / Inspect

Open the console, then send a request.

Open localhost:8000/console. In a second terminal:

curl -sS http://127.0.0.1:8000/gateway/agents/knowledge-agent/invoke \
  -H 'Content-Type: application/json' \
  -H 'X-AgentHub-Identity: local/demo' \
  -d '{"query":"Can I return an unopened product after 20 days?","seed":4}'

Expect a grounded answer with citations. Open Observability to inspect the request and follow its trace into Grafana.

04 / Exercise recovery

Follow the incident to rollback.

Use the live mode of the guided demo. Inspect the seeded retrieval regression, then open Incidents to request a policy-checked rollback. Candidate traffic should return to zero; recovery still requires post-rollback observations.

05 / Verify safely

Run tests against an isolated database.

The database-backed test fixtures clear AgentHub tables. Use a disposable test database, never your active demo or valuable data. Without a test database URL, database-dependent tests skip.

AGENTHUB_DATABASE_URL="<disposable PostgreSQL test database URL>" make test-e2e

The live observability test is separately opt-in. See the repository’s test fixtures and CI workflow for the complete environment.

06 / Reset and stop

Keep a repeatable starting point.

# Stop the API with Ctrl+C first.
make demo  # resets the local scenario and enables tracing

# To stop after the demo, press Ctrl+C, then:
make observability-down
make down

Stopping services preserves the database volume. make run alone does not enable the telemetry settings supplied by make demo.

07 / Troubleshooting

Check the boundary that failed.

Port already in use

Stop the earlier API process before starting another. Restart after changing Python source.

No metrics or trace link

Invoke an agent after startup and ensure telemetry is enabled. Empty measurements mean no observations, not perfect health.

Old incident IDs

A reset creates new scenario IDs. Refresh your console and select the newly seeded incident.