Glass-Box AI: Showing Model Confidence So People Trust It
The problem is not the model
People mistrust AI when they cannot check it. I built a glass-box UI where every answer shows its work. I keep that habit of showing work on every screen where an agent acts, and I lay those screens out in Designing Interfaces That Act: The Agentic UI Guide.
Three primitives
Confidence Rails encode certainty in the border gradient. High is solid, low is dashed.
Undo Trails keep a ghost of every generative action. You scrub back in one click.
Intent Forks show 2 to 3 plausible next steps as cards when the model is unsure. You pick, it learns. I wire those three primitives into a running agent one stage at a time, and I take the stage order from AI Agent Development: From Prototype to Production.
How I built it
I stream tokens via SSE from a Neon edge worker, score hallucinations with a critic model, and log corrections for nightly tuning. Trust went up because control stayed with the human. The correction log holds user text, and I cover the scrub, approval and deletion rules around such a store in Why Your AI Agent Needs a Compliance Layer.