Build the complete loop
Goal, state, action, verification and stop, with a level 3 done criterion that you can check by command.
LOOP-R Engineering Training · 6 technical courses
Claude Code and Codex already write code on their own. What separates a session that delivers from one that gets lost is the loop around the model: where the state lives, who checks the work, and when to stop. In 6 short courses you build that loop on your own machine, with hands-on practice of the command → expected output kind.
Prerequisite: terminal, git, and Claude Code or Codex installed. Practice runs in dry-run mode, without using up your quota.

The problem
A better prompt won't fix it. The problems below come from what surrounds the model, and each one has a course that deals with it.
After the training
Goal, state, action, verification and stop, with a level 3 done criterion that you can check by command.
Frozen tests, diff guard, golden set and a judge with a calibrated rubric to catch shortcuts.
A goal.md with no shortcuts, context in bands of 50, 70 and 85%, a handoff that checks it saved, and a headless loop with a ceiling.
Subagents, orchestrator and workers, worktrees, queues and the Claude + Codex team split by role.
Lethal trifecta, Rule of Two, per-step permissions, guard hooks and network and file sandbox.
Hypothesis, single-metric experiment, decision card, rollback and lessons promoted to AGENTS.md.
6 courses in order · 48 lessons
Each topic has a single owner. Course 0 gives the big picture and points to which course goes deeper on each piece. If you already run long sessions, you can enter at course 2.
Foundation
The five pieces of the loop, the harness around the model, today's engines (/goal, /loop, Ralph, routines, codex exec) and your first loop with a level 3 criterion.
Verification
Why the agent overrates itself and how to build the gate: a separate evaluator, frozen tests, reward hacking detection and metrics such as pass@k and pass^k.
Long execution
The seven-file kit that holds up an execution of hours, from goal.md to the headless loop with flock, timeout and MemoryMax, and how to measure the session.
Multi-agent
When not to open the second agent, a subagent that returns little, generator × evaluator, isolation by worktree and the Claude + Codex team.
Security
Injection through the content the agent reads, per-step permissions, hooks against deleting and colliding, sandbox and the security audit of your loop.
Learns
Hypothesis with a number, keep or discard by one metric, promotion with rollback, per-cycle observability and LOOP-R built into your system.
Who it's for
Included in the training
The training starts from open INEMA projects on GitHub. They come along with it, together with the videos on the topic.
Why this training
Each exercise ends in a command and the expected output. You know right away whether it worked.
Six courses with no repetition: verification lives in 1, long execution in 2, security in 4.
Engines, metrics and numbers from October 2026, each with the reference read at the source.
All six courses exist in Portuguese, English and Spanish, in the v7.2 version of October 2026.
Questions
The suggested order is 0 → 1 → 2 → 3 → 4 → 5. If you already leave the agent running for hours, you can start at course 2 and come back to 0 and 1 later.
With both. The courses show the engines of each one, and course 3 teaches how to split the work between them.
The practices run first in dry-run mode, without using up quota. You turn on real execution whenever you want.
That's 48 lessons, 8 per course. You can do one course per week at your own pace.
INEMA's open framework that gives the training its name: Localize, Operate, Observe, Propose and Reinforce, with nine agents in which whoever does the work is never the one who evaluates it.
Start with course 0. In 8 lessons you build your first loop with a done criterion and learn which course goes deeper on each piece.