Meta tags:
description= Practical patterns, starters & CLI tools for loop engineering with AI coding agents. Design systems that prompt and orchestrate agents (inspired by Addy Osmani and Boris Cherny). Includes loop-audit, loop-init, loop-cost. - loop-engineering/docs/primitives.md at main · cobusgreyling/loop-engineering;
Headings (most frequently used words):
primitives, saved, searches, md, the, memory, navigation, file, breadcrumbs, footer, search, code, repositories, users, issues, pull, requests, provide, feedback, five, menu, use, to, filter, your, results, more, quickly, filesexpand, tree, latest, commit, history, metadata, and, controls, automations, scheduling, worktrees, skills, plugins, connectors, mcp, sub, agents, maker, checker, split, state, how, pieces, fit, together,
Text of the page (most frequently used words):
the (36), loop (16), and (15), github (13), code (13), you (12), security (11), file (8), when (7), actions (7), all (7), #worktree (6), state (6), engineering (6), your (6), enterprise (6), view (6), for (5), primitives (5), agent (5), with (5), one (5), what (5), another (5), search (5), that (4), this (4), docs (4), community (4), navigation (4), run (4), loops (4), has (4), its (4), connectors (4), read (4), model (4), memory (4), skills (4), use (4), history (4), raw (4), quality (4), issues (4), support (4), can (3), time (3), see (3), tools (3), are (3), scheduling (3), skill (3), important (3), working (3), from (3), implementer (3), common (3), work (3), agents (3), mcp (3), without (3), merge (3), copy (3), blame (3), main (3), more (3), insights (3), pull (3), requests (3), signed (3), settings (3), tab (3), window (3), refresh (3), session (3), reload (3), sign (3), saved (3), documentation (3), feedback (3), grade (3), features (3), copilot (3), platform (3), solutions (3), explore (3), not (2), share (2), manage (2), footer (2), how (2), diagrams (2), each (2), new (2), only (2), tickets (2), prs (2), just (2), sub (2), verification (2), isolation (2), start (2), changes (2), add (2), usually (2), often (2), single (2), most (2), human (2), small (2), dedicated (2), linear (2), project (2), must (2), write (2), durable (2), across (2), sessions (2), condition (2), application (2), maker (2), checker (2), goal (2), verifier (2), test (2), own (2), create (2), query (2), plugins (2), teams (2), every (2), intent (2), review (2), build (2), off (2), grok (2), edit (2), same (2), files (2), worktrees (2), tree (2), lines (2), loc (2), path (2), breadcrumbs (2), projects (2), discussions (2), cobusgreyling (2), appearance (2), cancel (2), available (2), searches (2), repositories (2), business (2), advanced (2), developer (2), topics (2), open (2), source (2), resources (2), customer (2), services (2), devops (2), app (2), perform, action, personal, information, cookies, contact, status, privacy, terms, 2026, inc, these, map, onto, actual, packages, plus, lifecycle, sequence, architecture, best, ones, where, primitive, added, previous, version, proven, value, failure, modes, want, drive, instead, suggesting, acting, autonomously, making, then, minimal, viable, starts, triage, pieces, fit, together, artifact, produces, waiting, did, try, last, was, outcome, currently, good, answers, database, row, section, board, repo, json, something, long, term, separate, turns, several, uses, fresh, decide, whether, stopping, been, met, idea, unattended, lets, walk, away, some, confidence, writer, runner, reviewer, explorer, splits, wrote, terrible, judge, second, sometimes, stronger, always, different, instructions, performs, structural, pattern, reliable, split, context, protocol, become, substrate, written, tool, trigger, deploys, runbooks, branches, databases, internal, apis, post, slack, discord, update, jira, let, filesystem, limited, also, unit, reuse, package, them, repos, derives, everything, scratch, debt, domain, knowledge, standards, lint, commands, don, way, because, incident, conventions, optional, scripts, references, encodes, persistent, cleanup, should, delete, task, done, handed, cli, makes, mechanical, per, attempt, tracked, manifest, swept, reject, escalation, pass, spawning, subagents, two, get, hell, git, equivalent, isolated, checkouts, give, directory, shares, but, parallelism, chaos, key, properties, interval, fire, immediately, recurring, shot, survives, restarts, custom, harness, schedulers, until, verifiable, true, repository, dispatch, scheduled, tasks, cron, claude, realizations, heartbeat, have, automations, document, expands, core, building, blocks, five, outline, download, preview, metadata, controls, top, latest, commit, expand, additional, options, star, fork, change, notification, notifications, public, message, dismiss, alert, switched, accounts, out, resetting, focus, qualifiers, our, name, filter, results, quickly, submit, include, email, address, contacted, piece, take, input, very, seriously, provide, syntax, tips, clear, users, jump, pricing, premium, ons, powered, collections, trending, archive, program, stars, accelerator, maintainer, lab, programs, fund, developers, sponsors, partners, trust, center, forum, ebooks, reports, events, webinars, stories, type, software, development, topic, industries, government, manufacturing, financial, healthcare, industry, cases, devsecops, modernization, case, nonprofits, startups, medium, enterprises, company, size, marketplace, changelog, blog, why, stop, leaks, before, they, secret, protection, secure, find, fix, vulnerabilities, enforce, plan, track, instant, dev, environments, codespaces, automate, any, workflow, workflows, integrate, external, registry, direct, issue, better, creation, toggle, menu, skip, content,
Text of the page (random words):
loop engineering docs primitives md at main cobusgreyling loop engineering github skip to content navigation menu toggle navigation sign in appearance settings platform ai code creation github copilot write better code with ai github copilot app direct agents from issue to merge mcp registry new integrate external tools developer workflows actions automate any workflow codespaces instant dev environments issues plan and track work code review manage code changes code quality enforce quality at merge application security github advanced security find and fix vulnerabilities code security secure your code as you build secret protection stop leaks before they start explore why github documentation blog changelog marketplace view all features solutions by company size enterprises small and medium teams startups nonprofits by use case app modernization devsecops devops ci cd view all use cases by industry healthcare financial services manufacturing government view all industries view all solutions resources explore by topic ai software development devops security view all topics explore by type customer stories events webinars ebooks reports business insights github skills support services documentation customer support community forum trust center partners view all resources open source community github sponsors fund open source developers programs security lab maintainer community accelerator github stars archive program repositories topics trending collections enterprise enterprise solutions enterprise platform ai powered developer platform available add ons github advanced security enterprise grade security features copilot for business enterprise grade ai features premium support enterprise grade 24 7 support pricing search or jump to search code repositories users issues pull requests search clear search syntax tips provide feedback we read every piece of feedback and take your input very seriously include my email address so i can be contacted cancel submit feedback saved searches use saved searches to filter your results more quickly name query to see all available qualifiers see our documentation cancel create saved search sign in sign up appearance settings resetting focus you signed in with another tab or window reload to refresh your session you signed out in another tab or window reload to refresh your session you switched accounts on another tab or window reload to refresh your session dismiss alert message cobusgreyling loop engineering public notifications you must be signed in to change notification settings fork 1 2k star 9k code issues 15 pull requests 1 discussions actions projects security and quality 0 insights additional navigation options code issues pull requests discussions actions projects security and quality insights files expand file tree main breadcrumbs loop engineering docs primitives md copy path blame more file actions blame more file actions latest commit history history history 99 lines 64 loc 3 67 kb main breadcrumbs loop engineering docs primitives md copy path top file metadata and controls preview code blame 99 lines 64 loc 3 67 kb raw copy raw file download raw file outline edit and raw actions the five primitives memory this document expands on the core building blocks of loop engineering 1 automations scheduling the heartbeat without scheduling you just have a one off agent run common realizations loop grok scheduled tasks cron in claude code github actions repository dispatch goal run until a verifiable condition is true custom harness schedulers key properties interval fire immediately recurring vs one shot durable survives restarts 2 worktrees parallelism without chaos when two agents edit the same files at the same time you get merge hell git worktrees or equivalent isolated checkouts give each agent its own working directory that shares history but not the working tree in grok pass isolation worktree when spawning subagents or use worktree dedicated sessions cleanup is important loops should delete the worktree when the task is done or handed off the loop worktree cli makes this mechanical one worktree per attempt tracked in a manifest swept on reject or escalation 3 skills the persistent memory of intent a skill usually a skill md optional scripts references encodes project conventions we don t do it this way because of x incident build test lint commands review standards domain knowledge without skills the loop re derives everything from scratch on every run intent debt skills are also the unit of reuse package them as plugins to share across repos or teams 4 plugins connectors mcp a loop that can only read the filesystem is limited connectors let the loop read and update linear jira tickets post to slack discord query databases or internal apis create branches and prs on github trigger deploys or runbooks mcp model context protocol has become the common substrate so connectors written for one tool often work in another 5 sub agents maker checker split the single most important structural pattern for reliable loops the agent that wrote the code is a terrible judge of its own work a second agent sometimes on a stronger model always with different instructions performs verification common splits explorer implementer verifier implementer security reviewer implementer test writer runner in unattended loops the verifier is what lets you the human walk away with some confidence goal in several tools uses a fresh model to decide whether the stopping condition has been met another application of the maker checker idea memory state the model has no long term memory across separate turns or sessions the loop must read from and write to something durable a state md or loop state json in the repo a dedicated section of a linear board or github project a small database row good state answers what are we currently working on what did we try last time and what was the outcome what is waiting for a human the state file is often the single most important artifact the loop produces how the pieces fit together a minimal viable loop usually starts with scheduling one skill triage state file you then add worktree isolation when you start making changes sub agent verification when the loop is acting autonomously connectors when you want it to drive tickets and prs instead of just suggesting the best loops are the ones where each new primitive is added only when the previous version has proven its value and its failure modes see architecture diagrams md for how these primitives map onto the actual tools packages plus the run lifecycle and sequence diagrams footer 2026 github inc footer navigation terms privacy security status community docs contact manage cookies do not share my personal information you can t perform that action at this time
|