"The loop I designed so my agent runs without me"
A production-ready agent loop that turns a single topic into a finished Twitter thread + Instagram Reel script with minimal human input.
Most people still manually prompt agents for every step.
This loop flips the model: you design the system once, give it a goal, and it iterates until the output meets your standards.
Given only a topic, the agent will autonomously:
- Research the topic deeply
- Create a content strategy (thread + Reel)
- Write a full Twitter thread
- Write a Reel script + caption
- Self-critique the output
- Refine until quality threshold is met
- Output final assets ready to post
- Copy the loop from
loop.md - Paste it into Claude Code / Cursor / your agent environment
- Give it a topic like:
"Build vs buy for AI tools in 2026" - Let it run. Review only the final output.
loop.md— The full loop system prompt (copy this)examples/— Real examples of topics and outputsworkflow.md— Explanation of the loop architecture
This is loop engineering, not prompt engineering.
You define the goal + success criteria once. The agent handles the iteration.
Built by @kjut4q • June 2026