Here are the AI feedback loops I use on every single TypeScript project.
@mattpocockuk383K followers
80,116 views
50 Comments
Comments from the original post on X (Twitter)

@GeoffreyHuntley
hahaha i see you put your engineering hat on 💕 let’s go!
30 likes

@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

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

@thesobercoder
Doing exactly this and also threw in formatting with biome
2 likes

@mattpocockuk
See the lint-staged setup, it's nicer than formatting the entire repo
5 likes

@thesobercoder
Yeah I already took notes about that

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

@BrenBuilds
people are still running tests? jk GPT writes all my tests for claude
2 likes

@KonanDestylator
Too much going on, can't handle this. Tired. Overwhelmed. Burned...
1 like

@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
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

@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

@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

@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

@HaythemLaz
Do you write the tests yourself or does the agent write them?
1 like

@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

@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

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

@mattpocockuk
Wasted a solid few minutes on this, weirdly enjoyable
1 like

@baz7c8
Thanks for checking :))





















