How the autonomous agents work

A map of simmer and the five projects it works with: wicket, lanyard, gofer, transom, and midden. Each section has one picture and the few facts that explain it.

Each project's own README and plans/00-design.md win where this page differs. The examples are one possible layout of a cluster.

The six projects

simmer calls none of the others except wicket. A Session's pod calls them, and the cluster's manifests put them in the pod.

ProjectIts one jobIts resourcesWhere it runs
simmerStarts a Claude Code turn when an event or a clock says to, and holds it back when the budget says toAccount Allowance Signal McpServer Mandate Duty Session Stopan operator, and one Job for each turn
wicketTakes webhooks from the outside world, checks each signature, and serves the events to subscribers as a streama YAML file of pathsa service that the internet reaches
lanyardGives a pod a credential when the pod asks: a GitHub token for one repository, a Gitea token as one user, or the contents of a SecretGitHubApp GiteaAccount Badgea service in the cluster
goferGives a pod a browser that keeps its logins from one pod to the nextBrowserProfilean operator, and a sidecar in each pod that asks
transomCarries a question from a program to a person, and the answer backnonea service with a web inbox
middenKeeps every transcript, and serves them back for searchnonea service with Postgres

The forge holds all of the work, and the plugins hold all of the instructions: a Duty names a skill, and the skill is a Markdown file in a plugin's repository.

The whole map

Owner ForgeGitea, GitHub, Tangled Monitorsalerts, checks, Flux transomquestions and answers wicketchecks signatures simmer operator Signalsjq reads each Routingpurview, keys Gatesbrake, Stop Data planeinbox, keys, transcript Session pod: one Job, one turn simmer turnruns claude -p with a skill gofer sidecarChromium lanyardgives credentials MCP serversanswer tool calls middenkeeps the transcript gofer operatorkeeps the logins webhooks replies event stream creates a Job events in,keys out MCP on localhost issues, pull requests, comments a question assign, review, merge answers
One loop. Something happens in the world, and wicket turns it into an event. simmer decides whose business the event is and whether a turn may start now. The turn does the work, the work lands on the forge, and the forge sends another webhook. midden also serves its archive back as one of the MCP servers.

simmer's resources

You write these The operator writes these Accountone subscription Allowancedollars an hour Mandatea responsibility Dutya skill, and its start Sessionone conversation Jobone turn McpServera URL, and a sign-in Signalevents, read with jq Stopthe andon cord tools.mcp purview when blocks
Each arrow on the top row reads "has many". A Mandate holds names and patterns and no prose, and its Sessions run as the ServiceAccount simmer-<mandate>. A Duty starts on when (an event), every (a loose cadence), or schedule (a time of day). A Job can change nothing in the control plane except to create a Stop.

From a webhook to a turn

The path of one event. Rows 4 to 7 happen inside the operator.
A Session holds the key event wakes it Session Aholds the key Nobody holds the key event meets a Duty's when new Sessiontakes the key Its own actor caused it event by claude not delivered Session Aacts as claude The Duty is fresh event Session Awakes new Sessionstarts too
What rows 5 and 6 do with one event. Purviews of one Signal do not overlap, so one Mandate owns each event and only its Duties can start a Session for it. A Session that holds the key gets the event whichever Mandate it belongs to. selfStart on a Duty lifts the third case, for one Session handing work to another.
EventsTurnsKeys held The owner assigns the goal issue a CI result and a review the merge turn 1opens a pull request turn 2pushes a fix turn 3releases its keys no pod exists no pod exists Finished the goal issue the pull request
One Session is one conversation, and each turn is a separate Job that resumes it. A key is the name an event is routed by, such as an issue's web address. The agent takes and drops keys with simmer follow and simmer release, and the Session ends when it holds no key and has no follow-up.

When a gate holds, events wait in the inbox, and the next turn reads all of them together. A turn's events are acknowledged only when its Job succeeds. An event that reaches no Session is counted and dropped.

Inside one turn's pod

Job pod, as the ServiceAccount simmer-<mandate> sidecar: goferChromium, only when the pod has the profile label init: simmer-installcopies the simmer binary into the pod init: homesets git's identity, and builds kubectl's and Claude Code's files session: simmer turnruns claude -p with the skill and the events gofer operator lanyard simmer data plane midden MCP servers Kubernetes API audience gofer audience lanyard audience lanyard audience simmer audience midden the server's audience, or OAuth the pod's default token
The containers in the order they start. simmer builds simmer-install and the session container. gofer's webhook adds the sidecar. The Mandate's template and the Duty's template add the rest, and that is where lanyard and midden come in. A cluster can keep one kustomize Component that holds the template that most Mandates share.

claude -p runs with permissions bypassed, because the pod is the sandbox. What a turn can reach is what its ServiceAccount, its template, its NetworkPolicy, and its credentials allow.

Identity: one ServiceAccount, many audiences

A pod starts with one thing, its ServiceAccount. Every service checks that identity the same way, and decides for itself what the ServiceAccount may have.

Session podruns as ServiceAccount S a servicelanyard, gofer, midden, ... Kubernetes API its own resourceBadge, BrowserProfile, settings 1 a token for its audience 2 TokenReview 3 this pod, ServiceAccount S 4 does it name S? 5 the answer
The kubelet gives the pod a short-lived token for each audience its volumes name. Every other service refuses a token made for that audience, and the token stops working when the pod ends.
The pod callsAudienceThe service answers whenWhat says who may
simmer's data planesimmerthe pod is an unfinished Job pod of the Session in the paththe operator's own records
lanyardlanyarda Badge in the pod's namespace names its ServiceAccountBadge
gofer's state APIgoferthe pod carries the profile's label and the sidecar, and the profile names its ServiceAccountBrowserProfile
midden's pod portmiddenthe pod's namespace has a user in midden's settingsmidden's settings
an MCP serverthe McpServer's audiencethe server admits the ServiceAccountthe server
wicket, from the operatorwicketwicket admits the operator's ServiceAccount to the pathwicket's settings
DutyIts pods run asBadgelanyard gives goaland most other Duties simmer-builders author tokens as claude, four scopes reviewits turns simmer-builders--reviewer reviewer tokens as claude-review reviewits hooks simmer-builders--review-status review-status tokens as claude, one scope
The same check in a Mandate that builds software. Which ServiceAccount a turn runs as decides what it gets, so a Duty that must hold different credentials runs as a different ServiceAccount. The review turn never gets a token as claude.
The Duty hasIts turns run as
nothing specialsimmer-<mandate>
grants of its ownsimmer-<mandate>--<duty>
serviceAccount: <label>simmer-<mandate>--<label>
hooks.serviceAccount: <label>its hooks run as simmer-<mandate>--<label>, and its turns as above

Three credentials are still shared secrets, because the other side checks no Kubernetes token: the Account's claude setup-token, the OAuth sign-in of an MCP server with no audience, and the subscribe secret of a wicket path whose Signal names a token. lanyard itself holds two more, in its own namespace alone: each GitHub App's private key, and each Gitea user's password.

lanyard: credentials on request

A GitHub token for one repository. A Secret takes rows 1 to 3, and then lanyard answers the Secret that the Badge's secrets entry names.

The pod asks every time and keeps nothing. Each tool takes its credential the one way it can:

ToolHow it asksWhat it gets
gitlanyard git-credential, as its credential helpera GitHub token for the remote's repository, or a Gitea token as the account on the remote's host
gha one-line wrapper that runs lanyard run /usr/bin/ghGH_TOKEN for the repository the command works on: -R, a URL or API path, GH_REPO, or the checkout's remote
teaa one-line wrapper that runs lanyard run with tea's patha login in tea's config file for each Gitea account of the pod's Badges
a scriptlanyard gitea-token <address>, lanyard github-token <owner/repo>, or lanyard secret <name> <key>the token or the value, and nothing else, on its output

When lanyard refuses, the tool does not run, and the error is lanyard's reason. No Session holds an SSH key or a standing token for the forge. The Sessions that read what strangers write act as no Gitea user of their own: they clone their plugin as the Gitea user simmer, who reads that one repository.

Author and reviewer

Two Duties, two forge users, two ServiceAccounts, two Badges. Each Session wakes on the other's events and never on its own. A hook is a plain container with no model, which the operator runs before and after each turn as its own ServiceAccount. Here it posts the commit status with a token as claude, because Gitea takes a status only from a user with write access and the reviewer has read access.

Asking the owner

A Session asks under its own name, such as @simmer-ops. The other way to reach the owner is the forge: assign them an issue or ask them for a review, and their reply is an ordinary forge event on a key the Session holds.

gofer: a browser for one Duty

Session pod claude sidecarChromium behind an egress proxy the web gofer operator Secrets tool calls on 127.0.0.1 only the profile's hosts logins saved and loaded, secret values reads
The agent drives the browser and cannot read what the browser holds. No tool runs script in the page or returns a secret's value: browser_fill_secret types a secret into a page of an origin that the profile allows.
kind: Duty
spec:
  mcp: [browser]                      # the McpServer at http://127.0.0.1:8931/mcp
  template:
    metadata:
      labels:
        gofer.guid.foo/profile: research
---
kind: BrowserProfile
metadata: { name: research }
spec:
  serviceAccounts: [simmer-research]

The logins outlive the pod: the next pod with the same profile starts logged in. A profile with any secret must list the hosts the browser may reach. A Duty that gains grants runs as a new ServiceAccount, and loses the browser until the profile names it.

midden: the record

Session podsa token for the audience midden The owner's own sessionsan app password middeneach entry, stored once midden's MCP serverlist, read, search midden ship serves
Claude Code hooks in each Session's settings.json run midden ship at the end of each turn. A Mandate that lists midden's MCP server reads the archive back, which is how the session-review Duty reads what every other Session did. simmer's data plane keeps its own copy of each transcript for a different purpose: the next turn downloads it to resume the conversation.

What holds a turn back

An Allowance's balance, in dollars cap 0time gains perHour full a turn ends, and its cost comes off no Job starts, events wait work resumes
The brake. A turn's cost is the notional price of its tokens, known only when it ends, so a turn that starts with a small balance can take it below 0. A quiet night pays for a busy morning.
GateWhat it doesWhat lifts it
The brakeEach finished turn takes its notional cost from its Allowance's balance, which gains perHour. No new Job starts for the Allowance's Mandates while the balance is at or below 0.time
The AccountEvery Allowance holds while a window of the subscription is used up.the window's reset
maxActiveBounds a Mandate's turns that run at one time, because a turn's cost is known only when it ends.a turn that ends
maxTurnsFails a Session that takes too many turns.nothing
A StopNo Job starts, and the operator deletes each one that runs. Any Job can create one with simmer stop <reason>.only the owner, by deleting it
suspendPauses one Mandate.a commit

A Session that must look again later asks for one wake with simmer follow-up <duration> <reason>. Its turn ends, and the operator delivers one event when the time comes.

Mix and match

Each row is one thing a Duty might need, and the parts that give it.

To give a DutyWriteIn
a start on an eventa when that names a Signal's condition, and a purview on its Mandate that matches the scopesimmer
a new source of eventsa path in wicket's settings, a webhook that posts to it, and a Signal with the jqwicket, simmer
a start on a clockevery or schedulesimmer
a skillskill, and the plugin's repository in the Mandate's tools.pluginssimmer, the plugin
a Gitea user to act asa Badge with a gitea entry that names the account and its scopes, and the GiteaAccount for that userlanyard
a GitHub repository to work ina Badge with a github entry for the owner, and the GitHubApp for that ownerlanyard
a login for some servicea Badge with a secrets entrylanyard
credentials that the Mandate's other Duties must not getserviceAccount: <label>, and a Badge that names simmer-<mandate>--<label>simmer, lanyard
a Kubernetes rolegrants on the Duty or the Mandatesimmer
an MCP serveran McpServer, and its name in tools.mcp or the Duty's mcpsimmer
a browsera BrowserProfile, the profile label in the Duty's template, and mcp: [browser]gofer, simmer
a way to ask the ownerthe transom McpServer and plugin, and a Signal on transom's wicket pathtransom, wicket, simmer
an action the model must not skip, or must not hold the credential forhooks, with a ServiceAccount label of their ownsimmer, lanyard
a second forge useractors on the Duty, a serviceAccount label, and a Badge that names that user's accountsimmer, lanyard
an archive of its transcriptsthe shipper's hooks and the midden token volume in the templatemidden
a tighter boundary for text that strangers writea separate Mandate with its own template, Badges, and egress NetworkPolicythe cluster

Where to look

kubectl get simmer -A                 # every simmer resource
kubectl get sessions -A               # each Session: its Duty, phase, what it waits on, its cost
kubectl get duties -A                 # each Duty: its Mandate, skill, and last start
kubectl get allowances                # each budget: its rate, balance, and whether it holds
kubectl get stops                     # the andon cord
kubectl get badges -A                 # what lanyard gives, and to whom
kubectl get githubapps,giteaaccounts  # whether GitHub accepts each key, and Gitea each password
kubectl get browserprofiles -A        # each browser identity and its saved state
kubectl -n simmer logs deploy/simmer-operator
kubectl -n lanyard-system logs deploy/lanyard    # one line for each credential given or refused

A turn's Job log is the turn's stream from Claude Code. The usual failure is that nothing happens, and simmer_events_total counts each event by its outcome, so it says where an event stopped.

When this is wrongLook at
an event started nothingthe Signal's jq, the Mandate's purview, the Duty's when, and whether the sender is the Session's own actor
a Session waits and no Job startskubectl get allowances, kubectl get stops, and the Session's waitingOn
a pod fails in its home init containerlanyard's log: no Badge names the pod's ServiceAccount
git, gh, or tea gets no tokenthe reason lanyard printed, lanyard show in the pod, then the Badge's entries and the Ready condition of the GitHubApp or GiteaAccount
a pod with a profile label is refusedthe BrowserProfile's serviceAccounts
a Session cannot reach a servicethe NetworkPolicy beside that service

Where each part is declared

PartIts code and designIts settings in your cluster's repository
simmerguid.foo/simmer on Tangledsimmer/, and one directory for each Mandate
wicketguid.foo/wicket on Tangledwicket/
lanyardguid.foo/lanyard on Tangledlanyard/, and each Mandate's badges.yaml
goferguid.foo/gofer on Tangledgofer/, and a BrowserProfile beside the Mandate that uses it
transomchrisguidry/transom on GitHubtransom/
middenguid.foo/midden on Tangledmidden/
the session imagean image that you build and name in each Mandate's templateit carries claude, git, gh, tea, and the lanyard and midden binaries
the skillsplugin repositories that you choose, and each project's .agents/skills/each Mandate's tools.plugins

simmer also runs Consoles, which are a person's own Remote Control servers in the cluster. They use the same session image and are not part of the autonomous work. plans/console.md is their design.