Better with Kent · draft
Closing the agentic loop has been my pursuit since early 2026.
Better with Kent
This is Better With Kent, where we get better at the parts of software that keep mattering.
Today: closing the agentic loop.
First clarification
I don't use /loop or /goal for this workflow.
The loop lives in the task, tools, feedback, automations, and stop condition.
Loop engineering widens the human loop.
Give the agent a task, feedback, a way to verify its own work, and a stop condition. The human still decides where the boundary belongs.
Before browser testing
That was useful, but bounded by what the tests could observe. Manual testing widened the feedback loop to real app behavior.
Then the agent got eyes
Before full Cloud Agent environments, Cursor browser mode let agents observe UI behavior directly instead of only reading code and tests. Open the browser-mode slide.
This came before the PR loop
Cursor gave Cloud Agents a real machine, real browser, and persistent environment.
Example:
Cursor Agent
+
kody#550
This was the center of my
How I Build Web Applications in 2026
talk
(slides):
Cursor controls
the browser, agents test behavior, and the loop gets closer to reality.
Before I put it in the prompt
Example:
kentcdodds.com#581
— if I keep typing the same follow-up, that follow-up belongs inside the loop.
First self-running attempt
First informal self-loop:
Cursor Agent
+
kody#280
The real unlock
First formal:
Cursor Agent
+
kody#155
Example tab:
kody#155
— by the time the PR comes to me, AI reviewers and CI have already pushed back.
When CI is green and no valid feedback remains, ping me with the PR link.
That Discord message is the handoff. I do not have to keep an eye on the loop while it runs.
This is where closed loops become proactive loop engineering: triggers, schedules, and state.
This is not under-$200-plan behavior.
Sometimes I let the agent merge and validate production.
Move the human stop point earlier.
Pocket OS callback: give the agent agency inside clear boundaries.
Homework
Pick your preferred agent and automate one loop you already repeat by hand.
Better with Kent
Good agents make code cheaper to generate. Good loops make work cheaper to verify.
Like · comment · subscribe · get better with me