Your AI Agent Isn't Dumb. It Needs Guardrails.

From the creator

Every time my AI agent wrote code, I was manually running linters, checking types, and rebuilding. The backend and frontend kept getting out of sync. I was babysitting instead of building. Hooks changed that. Now when the agent writes Rust code, TypeScript types regenerate automatically. When it edits any file, linting runs. When it stops, the build validates. The agent catches errors before I even see them. Here's the real insight: the agent isn't actually smarter. We're just giving it better guardrails. This is what separates prompting from praying it builds in production. In this video I walk through setting up hooks in both Cursor and Factory Droid, show you where the config files live, and explain the differences between the two platforms. Join my Discord: https://rfer.me/discord Free Weekly Workshops: https://startmy.ai Key moments 00:00 The problem: manually verifying AI-written code 00:31 Introducing hooks to automate tasks when files change 01:53 How hooks regenerate types for the frontend 02:24 How to set up the cursor.hooks.json file 04:44 Reviewing a more comprehensive hooks plan 05:48 Comparing FactoryDroid hooks vs Cursor hooks 06:45 Implementing the equivalent hooks in FactoryDroid 07:50 AI agent fixes a bug in the build command 08:27 How scaffolding makes the AI agent appear smarter 09:08 Demonstrating the successful hook implementation 09:53 Final insight: It's about providing guardrails, not a smarter AI CONNECT WITH RAY X (Twitter): https://x.com/RayFernando1337 #CursorIDE #FactoryDroid #AIcoding #Hooks #AgenticWorkflow #SoftwareEngineering #VibeCoding

Choose to Build with AI
Matched to Factory AI

AI Maker Residence 3

The third AI workshop taught by our legendary teacher, Nick Sarafa. This is a full-day hands-on training workshop for purposeful co-creation with AI using Claude Code. Imagine having access to hundreds of billions of dollars of computing power and knowing exactly how to make it work for you through the power of super intelligence.

◆ Fri 09 Oct 2026 ◆ KOKO Cafe, London ◆ With Nick Sarafa
AI Maker Residence 3
Live event
AI Maker Residence 3
Fri 09 Oct 2026

More like this

Running one yourself?

List your AI event,
wherever it is.

A meetup, a workshop, a hackathon, a conference. Any city, or online. Tell us about it and it lands in front of people already learning this stuff.