Skip to main content

- Learnings

Agentic AI

Today's concept: agent safety and guardrails

Guardrails aren't restrictions - they're what make agents trustworthy enough to actually use.

Think of an agent like a junior developer you're onboarding: you don't give them full production access on day one. Guardrails are the boundaries you set - which APIs it can call, what information it can see, what actions require approval. For example, an agent that books meetings could be constrained to only calendar events (not delete access), only with approved attendees, and only during business hours.

Guardrails are only useful if you actually enforce them: a team built an agent that said "no external API calls," but they logged violations and silently dropped them instead of failing hard. Six months later, in production, someone realized the agent was making the calls anyway because error handling was never properly wired up. The guardrail existed on paper; the enforcement didn't. Now many teams use "deny by default" - the agent can only do what's explicitly allowed, which is harder to break than trying to block everything bad.

Quick check before you scroll: You're building an agent that can send emails on behalf of a user. What's one guardrail you'd add, and why?

Full breakdown + the answer: frankduah.me/learnings/2026-07-13-agent-safety-and-guardrails

Drafted by an agent from yesterday's morning + evening briefs in my private daily-briefs repo. Pipeline: frankduah.me/learnings/how

New here? Why I post these: https://lnkd.in/gK8knHDH

#AgentSafetyAndGuardrails #AI #LLM #AIAgents #MachineLearning

The answer

Require human approval before sending to external addresses (not pre-approved contacts). Reason: prevents accidental mass emails or compromised agents from spamming strangers. You're trading some autonomy for the ability to ship safely.

Today's concept: agent safety and guardrails - Frank Duah · Frank Duah