Hi,πŸ‘‹ we have updated the app and fixed multiple bugs. We are lacking funds, request to free user not to use Adblock. Ads are non intrusive. 😊

Loop Engineering - My Current Setup in a Nutshell

@plainionist
8 views Jun 27, 2026
Advertisement

Loop engineering is often explained in abstract terms.

Media image

Here is my concrete, current, and pragmatic implementation in a nutshell.

What is loop engineering?

Definitions of loop engineering differ in some details, but the common building blocks seem to be these:

  • Sub-agents: Multiple specialized agents working together. One agent does the work, another verifies it independently, and a third one keeps the big picture and focuses on the goal.
  • Worktrees: Isolated workspaces, typically Git worktrees, that let multiple agents work in parallel on the same repository without file conflicts or overwriting each other's changes.
  • State: Persistent storage outside any single conversation, for example `STATE.md` or issue boards. It tracks what is done and what is next. This is essential for long-running or multi-cycle loops.
  • Skills: Persistent, codified instructions, usually in files like `SKILL.md`. They capture conventions, standards, and reusable workflows, preventing agents from re-deriving context every session.
  • Plugins and connectors (often via MCP): Integrations that connect the agent to real external tools like issue trackers, PR systems, or databases. This allows the agent to act rather than just suggest changes.
  • Automations** (scheduling/triggers): Scheduled or event-driven processes that discover tasks, triage work, and initiate execution. Examples are cron jobs, `/loop`, or GitHub Actions.
  • My pragmatic setup

    Sub-agents

    I use SwarmForge by @unclebobmartin, which brings the idea of different roles, realized as separate agents.

    I have an Architect, which prepares the plan, an Implementer, which only changes the production code, and a Verifier, which checks the result and writes the tests. This splits the responsibilities of planning, coding, and verification.

    Furthermore, I have instructions that tell agents to use sub-agents for detailed analysis or research. For example, my Architect instructions include this:

    ## Research

    If you require details from the code, do not read it directly. Use sub-agents instead.

    GitHub Copilot then seems to spawn temporary sub-agents automatically for different tasks, such as analysis and verification of details. When I watch my team working, I see those temporary sub-agents being used quite a bit.

    Media image

    Worktrees

    SwarmForge provides dedicated workspaces for each role or agent.

    Its tooling creates and maintains a dedicated worktree and branch for each agent. It also provides instructions to keep agents disciplined in that regard.

    State

    The overall state of my loop is persisted in tickets: simple Markdown files inside the repository. Open tickets show which work still needs to be done. Completed tickets are simply deleted.

    The details and slices of the current ticket are persisted in an _implementation plan_. It is written by the Architect and read by the rest of the team. It is stored as a Markdown file in a shared folder called `agent_context`.

    Internally, the team also maintains a logbook. I only gave them the instruction to keep track of handoffs and status. I never look into this file. They use it for coordination.

    Skills

    My skills mostly describe capabilities and reusable workflow steps.

    Many people bundle factual knowledge with skills, but I like to keep descriptions of the domain and architecture separate in my knowledge base. The same is true for guidelines like β€œhow to write good Gherkin specs”.

    So I only have a few skills, for example:

  • writing an implementation plan
  • pulling the next ticket
  • running a retrospective
  • Plugins and connectors

    I do not have any actual CLI plugins or MCP servers yet.

    There is simply no need for them right now. All relevant artifacts, such as tickets, the knowledge base, and code, can be accessed directly by my agents through the file system.

    However, my AI team wrote quite a few scripts and tools over the recent weeks. Those tools help with codebase discovery, regression checks, and team workflow. What exactly those tools do is something I will share in a later article.

    Automations

    I do not use an external trigger or scheduler yet, mostly because I still do the final review and approval manually. If everything ran fully automatically, I would probably end up with a long pile of unapproved work.

    What I do instead is simpler: I put a certain amount of tickets on β€œready”. Then I tell the team to process them according to priority. And they do, except for high-risk changes, where they have to ask for my approval first. That assessment is done by the Architect.

    How I work

    My "loop" does not run without me yet.

    But my role has changed a lot.

    I almost stopped coding directly. I also spend less time explaining individual coding steps. I write tickets for new features and improvements, and I review the final outcome. In most cases, I simply approve it. In some cases, I write more tickets for the review feedback.

    Media image

    So the value is not full autonomy.

    The value is that more and more of my work moves from doing individual changes to improving the system that delivers those changes.

    Now I am interested in your thoughts πŸ˜‰

    Actions
    Visual Editor Carousel Maker NEW
    Update Thread
    What You Can Do
    • Download as PDF
    • Save to Notion
    • Export as Markdown
    • Visual Editor
    • LinkedIn & Instagram Carousel Maker
    Create Free Account

    Includes 7-day Premium trial

    Advertisement