Cursor, Droid, Claude: Why Your Agent Forgets Rules

From the creator

Your AI agent follows instructions for a while, then just does its own thing. Whether you're using Cursor, Droid, Claude Code, Codex, or GPT-5.1 - I've been there with all of them. In this video, I show you my actual AGENTS.md files, the exact prompt I use to generate them, and why this structure lets me run sessions that are millions of tokens long without the agent going off the rails. The secret is just-in-time context indexing. Instead of one massive file drowning the context window, the agent pulls what it needs when it needs it. Works with Cursor rules, CLAUDE.md files, and any agent that reads markdown instructions. GET THE TOOLS - My generate-AGENTS.md Prompt: https://rfer.me/agentsmd - My generate-CLAUDE.md Prompt: https://rfer.me/claudemd - Try Droid (40M Free Tokens): https://rfer.me/rayfactory - Join our Discord (FREE MONTH w/ code COOKWITHME): https://rfer.me/discord Timestamps 00:00 Why AI agents ignore your instructions 00:38 Example: Cursor fails to rename a file correctly 01:53 Introducing the AGENTS.md file structure 02:34 Explaining the hierarchical repo structure 03:26 How just-in-time context indexing works 03:47 The prompt that generates AGENTS.md files 04:00 The five core principles for the agent to follow 05:03 How to run the generation prompt on your codebase 06:33 Comparing AGENTS.md with CLAUDE.md 07:07 Why multi-million token sessions don't fail 08:05 Three key takeaways to improve your AI agent CONNECT WITH RAY X (Twitter): https://x.com/RayFernando1337 - 1-1 AI Shipping Mentorship (December): https://startmy.ai #Cursor #ClaudeCode #Droid #GPT5 #Codex #Opus45 #AIcoding #CursorRules #FactoryAI #SoftwareEngineering #AgenticWorkflow

Stop watching · start building
Matched to AI Coding Agent

Makers residency 4th edition

Your idea can be anything. At our last workshops, people built plant-based nutrition businesses, a way to measure planetary resilience, crochet headwear and a way to connect lonely people living in the same building. An asset manager went on to raise an additional £25M on their fund within nine months. The fourth workshop is a full day at KOKO with Nick Sarafa, learning to build with Claude Code. Bring the thing you keep meaning to start. We’ll bring the pizza.

◆ Fri 13 Nov 2026 ◆ KOKO, London
Makers residency 4th edition
Live event
Makers residency 4th edition
Fri 13 Nov 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.