Home / Case studies

An AI agent with boundaries enforced in code

An agent that queries databases and documents, and can't step out of scope even when asked to.

The challenge

An agent that can run SQL is useful and dangerous at the same time: one well-crafted message can try to make it delete or modify data. Asking it not to in the prompt is not a guarantee.

How it's built

What it shows

An agent's boundaries belong in code, and its behaviour should be tested with cases designed to break it. It's the same approach I apply to production agents.

Public code: github.com/egtimer/agentic-sql-assistant.

Case studies

Book a 20-min intro call Or email me