Skip to content

Operating model

This is the reference detail behind the the-loop skill — the operating model an agent harness follows once a work item's phase is underway. Each page below is read by the harness at the point in the loop where it's relevant (progressive disclosure — see token economy); read them here for the same detail, up front.

ReferenceCovers
WorkflowThe loop, phases, TDD, reviews, autonomy, DAG, resumability.
ContextContext-window management: clearing vs. compaction, the checkpoint-then-reset protocol, per-harness mechanics.
OnboardingThe guided, schema-driven config onboarding /the-loop:init runs.
InstructionsUser-provided custom instruction docs: when to read them, precedence, what they can and cannot override.
Design artifactsUI/UX design artifacts (Figma / HTML prototypes) in the design phase and the designer iteration loop.
ReviewingThe self/critic review procedure the review counts drive.
SecurityThe security lens on every phase gate: threat-model-lite, security design, the security-review gate, human sign-off tiers.
ToolingRepo management, per-language tooling matrix, hooks, CI parity.
TestingGherkin scenario docstrings on integration tests, the queryable scenario view, OpenAPI/GraphQL contract conventions.
MinimalismThe generation-time decision ladder to counter code bloat.
Token economyToken/cost levers (model routing, verbosity, disclosure, sub-agents, telemetry); advisory, never at the expense of rigor.
CollaborationPersonas/roles, paper trail, conflict log, messaging, MCP.
ObservabilityDev==runtime logging, levels, browser logging.
AutomationDistribution, the CLI, webhooks, predictability, learnings lifecycle.

The source SKILL.md that ties these together lives at skills/the-loop/SKILL.md in the repository.

Released under the MIT License.