Gezinmeyi atla
Andrej Karpathy posted about the new programmable layer developers need to master: agents…
0:00 / 10:20

Andrej Karpathy posted about the new programmable layer developers need to master: agents…

Ray Fernando

@RayFernando133740 B takipçi

X profili
900 beğeniİndirOrijinal gönderi

61.008 görüntüleme

Andrej Karpathy posted about the new programmable layer developers need to master: agents, subagents, prompts, contexts, memory, hooks, MCP. He said it came with no manual and everyone has to figure out how to hold it. This video is part of that manual. Hooks are one of the most underused features in Cursor and Droid, and they're what separate intentional AI-assisted development from hoping it works in production. After file edit: If the agent touches Rust code, hooks automatically regenerate TypeScript types for the frontend. If it touches TypeScript, ESLint runs with autofix. If it touches backend code, cargo clippy runs. On stop: When the agent finishes, it runs cargo check to validate the build before I even look at the output. 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

14 Yorum

Yorumlar X (Twitter) üzerindeki orijinal gönderiden alınmıştır

  • Ray Fernando profil fotoğrafı

    @RayFernando1337

    YT:

    19 beğeni

  • CrazyAI Tech profil fotoğrafı

    @CrazyAITech

    Thanks for sharing. In this era where AI is evolving at lightning speed, I truly believe collective intelligence matters a lot, especially developers who are willing to share. It’s very hard for any individual to have enough time to discover so many creative and useful use cases on their own.

    2 beğeni

  • JustSomeMusings profil fotoğrafı

    @wanderertimes

    ok, so do you have the script for this video? i would like to feed into cursor

    1 beğeni

  • Abdulmuiz Adeyemo profil fotoğrafı

    @AbdMuizAdeyemo

    Hooks are underrated game-changers. They turn AI from a guess-and-check assistant into a production-ready collaborator, automating verification and ensuring safe, consistent outputs. Intentional AI development isn’t about smarter models—it’s about smart guardrails.

    1 beğeni

  • Kol Tregaskes profil fotoğrafı

    @koltregaskes

    Useful thanks.

    1 beğeni

  • Anayat profil fotoğrafı

    @anayatkhan09

    Hooks in Cursor are great until agent loops hit a type-regen failure and cascade frontend breaks. Switched to Vercel AI SDK tool calls with inline validation to catch sync issues mid-run instead of post-file-change. Less brittle for TypeScript stacks.

    1 beğeni

  • Shreyas Shinde profil fotoğrafı

    @shreyas1009

    Finally world catching up to the review driven design I have been practicing at Kanaeru AI Read up my blog I wrote in October

  • Joshua profil fotoğrafı

    @techlifejosh

    Very cool! Flashbacks of first diving into how to code react

  • Cipher Vectors profil fotoğrafı

    @CipherVectors

    What is missing in your video to provide the community with the template (prompt ) to run inside the project to work for them

  • Singular Prism profil fotoğrafı

    @singular_prism

    frankly with a model as good as gpt-5.2 you don’t need all this wiring that CC needs

  • Isaac Cullinane ⚡️ profil fotoğrafı

    @isaac_cullinane

    “intentional AI-assisted development” sounds like it’s gonna be a popular term

  • SomacoSF profil fotoğrafı

    @somaco_sf

    @grok give me the "I know Kung Fu" version of teaching me what Hooks are/how best use Hooks - Give top examples for best utility - most component in a stack/system to benefit from 'Hookifying' that function

  • Bitplanet profil fotoğrafı

    @Bitplanet_AI

    This captures how agent reliability comes from deterministic guardrails and execution hooks rather than increasing model intelligence alone.

  • United Records profil fotoğrafı

    @RecordsUni63959

    Interesting