firehose> #llmops

Agent Rituals

The fixed steps an agent performs every time it runs, declared once in the harness's context file (CLAUDE.md / AGENTS.md) and framed around the lifecycle of a run: beginning → middle → end. At the start of a session the agent primes context; while working it applies conventions and records what it learns; before finishing it writes back learnings and closes out. Because the ritual lives in the context file, every agent that reads that file — any model, any harness, any contributor's session — performs the same steps, which is the point: rituals are how you make agent behaviour consistent and repeatable rather than dependent on how a given person happened to prompt.

Rituals are the declarative, always-on, harness-native cousin of Loop Engineering: loop engineering replaces the human as prompter with a designed loop; a ritual instead bakes the recurring scaffolding into the context substrate so it fires on every run without a bespoke loop. They are also where a Context Substrate is wired in — "at the start of every session run ml prime; before you finish run ml record" is a ritual that plugs the substrate into the run. In the demo, mulch's ml onboard and seeds' sd onboard commands literally write the ritual snippet into CLAUDE.md, so setup is one command and the ritual is baked into every subsequent agent run.

Claims


Linked from