cd /news/ai-agents/ai-court Β· home β€Ί topics β€Ί ai-agents β€Ί article
[ARTICLE Β· art-172971] src=dev.to β†— pub= topic=ai-agents verified=true sentiment=Β· neutral

AI court

A developer built an AI court simulation in which a case file generator produces three rewritten network disputes per day and a core state machine runs a trial with plaintiff, defendant, lawyers, a judge, 12 jurors, and observer roles including a clerk, reporter, and commentator. Every spoken sentence is appended to a transcript.jsonl file, which is then pushed live over SSE, stored in SQLite, and delivered via iMessage.

recommendation

Model multi-role simulations as one central state machine with an append-only transcript as the source of truth, then fan out to live, stored and push outputs from that log.

more in playbook: Designing agent systems
by read1 min views7 publishedNov 20, 2026

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”

β”‚ Case File Generator β”‚ 3 cases per day

β”‚ (docket.py) β”‚ Rewritten from real network disputes

β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜

β”‚ case.json

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”

β”‚ Trial Engine β”‚ ← Core State Machine

β”‚ (courtroom.py) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”

β”‚ β”‚ β”‚

β”Œβ”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”

β”‚ Party Level β”‚ β”‚ Court Level β”‚ β”‚ Observer Level β”‚

β”‚Plaintiff / Defendant β”‚ β”‚ Judge β”‚ β”‚ Clerk (Transcription) β”‚

β”‚ Plaintiff's lawyer β”‚ β”‚ 12 jurors β”‚ β”‚ Reporter (reporting) β”‚

β”‚ Defendant's lawyer β”‚ β”‚ β”‚ β”‚ Commentator (roast) β”‚

β””β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

β”‚ β”‚ β”‚

β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

β”‚ Every sentence spoken

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”€β”€β”

β”‚ transcript.jsonlβ”‚ ← Full records, append only

β”‚ (A bomb that keeps getting bigger) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜

β”‚

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”

β”‚ β”‚ β”‚

β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β–Όβ”€β”€β”€β”€β”€β”€β”

β”‚ SSE Push β”‚ β”‚ SQLite β”‚ β”‚ iMessage β”‚

β”‚ (Web Live Broadcast) β”‚ β”‚ (History) β”‚ β”‚ (Push to You) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

── more in #ai-agents 4 stories Β· sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain β€” perfect for shipping the agent you just read about.

$git push zahid main
β†’ Live at https://your-agent.zahid.host βœ“
Get free account β†’ Pricing
from €0/mo Β· no card required
LIVE [news/ai-court] indexed:0 read:1min 2026-11-20 Β· β€”