Back to AI Jason

wtf is Loop Engineer & how to setup for real

AI JasonJune 18, 202620m
In a Nutshell

Loop engineering shifts from manual prompting of coding agents to building autonomous agent loops that self-trigger via cron jobs, webhooks, or other agents to continuously discover work, execute tasks, and improve systems without oversight. The core setup requires four components: triggers, shared file structures with artifacts/signals/contracts/logs for cross-loop coordination, tool connectors, and a legible/executable codebase with scripts for parallel agent work and verification. Multiple compounding loops—like support (every 30min), SEO (daily), and ads—read/write from shared signals folders, enabling cross-domain prioritization where one loop's findings feed another's backlog.

AI-Generated Notes

These notes were generated by AI and may contain inaccuracies.

At 1:00 a.m. yesterday, multiple PRs were being submitted to the codebase automatically by different agent loops finding issues and picking up work. A Go loop has been running for the past 2 days straight, outputting 20 to 40 extremely high-quality pages daily that drive traffic to the company without manual oversight. Loop engineer represents the shift from manually prompting coding agents to designing autonomous loops that automatically prompt agents.

Before diving into advanced loop engineering concepts, the basic agent pattern consists of three core components: a programming language agent loop, a memory layer, and tool access. HubSpot offers free video courses demonstrating how to build agents from scratch using different tools, including personal assistant agents that read emails and check calendars, and support-style agents that connect to real business workflows. These courses cover how agent memory works and how to effectively manage context.

In 2023, when GPT-3.5 or 4 API first appeared, the primary LLM usage was simple task completion, providing API input and receiving text output for tasks like structured data extraction or writing blocks. The term prompt engineering emerged to address the model's non-deterministic nature through techniques for engineering the right context in LLM calls to steer behavior.

By mid-2024, models became significantly smarter with larger context windows expanding from around 4,000 tokens to 128k tokens, and eventually reaching 1 million token context windows. This advancement enabled building systems where models are equipped with different tools like MCP, allowing them to decide actions and include both tool calls and responses as part of conversations, enabling the LLM to continue loops until tasks are completed.

Sign in to read the full notes

Get access to AI-generated notes, topic timestamps, and more.