Skip navigation
Here are the AI feedback loops I use on every single TypeScript project.
0:00 / 4:11

Here are the AI feedback loops I use on every single TypeScript project.

Matt Pocock

@mattpocockuk383K followers

Visit on X
969 likesDownloadOriginal post

80,116 views

Here are the AI feedback loops I use on every single TypeScript project. Before: Ralph produces 100% slop After: Green CI, all the time Feed the tutorial below to your coding agent, and enjoy.

50 Comments

Comments from the original post on X (Twitter)

  • geoff's profile picture

    @GeoffreyHuntley

    hahaha i see you put your engineering hat on 💕 let’s go!

    30 likes

  • Karim C's profile picture

    @BrandGrowthOS

    This is the part people miss: agents don’t need “more prompting,” they need tight feedback loops. Green CI as the acceptance test keeps it from turning into slop, and it’s what makes the workflow adoptable by a team.

    8 likes

  • Matt Pocock's profile picture

    @mattpocockuk

    Recently, I've started taking stuff out of prompts and putting them into feedback loops and I'm really digging it.

    10 likes

  • SDG's profile picture

    @thesobercoder

    Doing exactly this and also threw in formatting with biome

    2 likes

  • Matt Pocock's profile picture

    @mattpocockuk

    See the lint-staged setup, it's nicer than formatting the entire repo

    5 likes

  • SDG's profile picture

    @thesobercoder

    Yeah I already took notes about that

  • avrl ☘'s profile picture

    @avrldotdev

    Great video Matt, umm for anyone wanting to understand what is Ralph, can read this:

    2 likes

  • Bren's profile picture

    @BrenBuilds

    people are still running tests? jk GPT writes all my tests for claude

    2 likes

  • Konan Destylator's profile picture

    @KonanDestylator

    Too much going on, can't handle this. Tired. Overwhelmed. Burned...

    1 like

  • CurleighBraces's profile picture

    @CurleighBraces

    Editing the prd mid flight to correct mistakes is something I hadn't even considered, that's so painfully obvious with hindsight. Ty

    1 like

  • Joshua Skootsky's profile picture

    @Joshua_Skootsky

    In the old days, a repo with all this set up as a Template was Important. Now I think we are happy to let people prompt these guardrails into existence.

    1 like

  • robertus's profile picture

    @rtheoryxyz

    the real unlock is when you stop using AI as an error checker and start treating it as a constraint solver that continuously narrows your solution space. most devs are still stuck in the "ask for help" paradigm when the latency advantage is in automated filtering, not reactive fixes.

    1 like

  • George Tru's profile picture

    @GTrushevskiy

    the loop isn't something you add to check your work, it becomes the actual way you work. most people still treat CI as cleanup. you're treating it as the build process itself

    1 like

  • Vaibhav singh's profile picture

    @SerialAiAbuser

    ran similar loops on a TS monorepo. CI stopped being a gate and became the steering wheel. slop drops fast when feedback is immediate

    1 like

  • Haythem Lazaar's profile picture

    @HaythemLaz

    Do you write the tests yourself or does the agent write them?

    1 like

  • Matt Pocock's profile picture

    @mattpocockuk

    So I haven't experimented with the proper TDD loop yet, but my thinking is that the agent will write them. In a Ralph loop, the agent has lots of budget for writing good tests, and feature changes are small per iteration. So I feel confident it would write good tests.

    2 likes

  • Haythem Lazaar's profile picture

    @HaythemLaz

    Tests are the defining metric for the Ralph loop to be successful. If they are being setup correctly in each iteration, then we can finally be AFK and we'll have the best results.

    1 like

  • behnam's profile picture

    @baz7c8

    Matt! You're a great teacher, no doubt! ❤️ but how are your measuring skills? 😁

    1 like

  • Matt Pocock's profile picture

    @mattpocockuk

    Wasted a solid few minutes on this, weirdly enjoyable

    1 like

  • behnam's profile picture

    @baz7c8

    Thanks for checking :))