Writing
Notes from building the projects on this site: AI agents, structured outputs, evals and inference cost, with the real code.
-
Read-only by design: an on-call AI agent that can't be talked into damage
How I scoped the tools, the RBAC role and the loop of an alert-triage agent so a prompt injection in a log line has nothing to work with.
-
The model never writes SQL: structured outputs as a safety boundary
A plain-English stock screener where the model fills a small JSON spec and my own compiler writes the query.
-
Testing AI features like code: evals that include an attack
Recorded incidents, scored questions and a prompt injection in the test set. How I check two AI features before I trust them.
-
Paying for inference only where it counts
Cache the expensive step, size the effort to the task, and let cheap math decide when a model is needed at all.