guid.foo simmer-deploy

0 0 pulls 2 Updated 12m
docker pull atcr.io/guid.foo/simmer-deploy:20261124134544-20c47bc
Image Size Layers
23.6 KB 1
Pushed 12m
Vulnerabilities
Loading...
Pulls
0 total
No pulls yet

simmer

simmer runs Claude Code sessions on long-horizon work: software
projects, research, and personal logistics. The owner, the person who
runs simmer, sets the goals, the design, and the constraints. Sessions
do the work in the background at a slow, steady pace, and ask the owner
for input through the forge.

The goal is steady forward progress on everything the owner has in mind.

This file is the design. simmer runs as a Kubernetes operator:
plans/operator.md is that design, and plans/operator-build.md holds
the decisions of its first build. Where those plans and this file
differ, the plans win. AGENTS.md is how to work on the code.
PRIMER.html is a map, in diagrams, of simmer and the projects it works
with: wicket, lanyard, gofer, transom, and midden.

simmer also runs Consoles, a person’s own Remote Control servers in the
cluster, which are not part of the autonomous work: plans/console.md
is their design.

Principles

  • The owner runs the whole stack. Claude Code and the owner’s Claude subscription
    are the only parts simmer does not own. The subscription reaches the
    model only through Claude Code, as claude -p with a setup-token or as
    Remote Control. The routing, the guardrails, the brake, and the
    knowledge are simmer’s own code and files. simmer uses no agent
    framework, such as Hermes Agent or OpenClaw, and no vector store.
  • The forge is the only shared state for work. Each unit of work is
    an issue, and each change is a pull request. Sessions communicate
    through comments, assignments, labels, and reviews, and through
    nothing else. The owner reads the same record on a phone, and the forge
    history explains what happened.
  • No personas. simmer names no characters and prescribes no
    personalities or job titles. The runtime enforces a few guardrails,
    and Claude decides how to do the work.
  • Event-driven. Events start sessions. A duty that must run at a
    time of day has a schedule, and a cadence covers the rest of the
    recurring work.

Use cases

The first use cases are:

  • dependency maintenance across all projects
  • long builds on liken
  • triage of open-source projects, with a notification to the owner
    for each item that needs them
  • ideation on spare capacity, with a critic that holds back what does
    not meet the owner’s standards
  • finding refactoring opportunities as the projects change
  • keeping documentation current
  • notes: the owner drops a note about anything into any chat, and simmer
    files it in the right place in the knowledge repository

The same core runs research and personal logistics.

Repositories and goals

simmer adds no concept of its own for a line of work. Each part of the
work already has a home:

  • Scope is the Mandate. A Mandate names the repositories that its
    Sessions clone, the McpServers they get, and the plugins they load.
    It can also clone the repository that a Session’s first event names,
    so one Mandate can work in many repositories and clone one of them
    for each Session.
    A Job starts with --strict-mcp-config and only the Mandate’s
    servers, so a session never reads a repository’s own .mcp.json: a
    Mandate for one project names no personal-finance server, and one for
    the knowledge repository can. A change to a Mandate is a change to the cluster’s
    manifests, which the owner reviews.
  • The gate is the forge’s access. A session works only in a
    repository where claude is a collaborator, and the list of those is
    in the owner’s infrastructure repository. Letting the agent work
    somewhere new is a pull request that the owner approves.
  • Privacy follows the repository. A session in a private repository,
    such as the knowledge repository, is private, and so is its
    transcript.
  • A line of work is a goal issue. The issue is the written plan
    and the record of progress, and one patient Session does the work.
    Whether a goal moved this week is a question about its issue’s
    activity.

Several lines of work can share one repository, because the goal issue,
not the repository, says what the work is for.

The parts

Part Where What it holds
Runtime this repository The operator, its resources, the data plane, the brake, and the commands a Session’s Job runs
Deployment this repository’s deploy/, and an overlay in the owner’s infrastructure repository The kustomize base that runs the operator, and the cluster’s own settings and Mandates
Project context each project’s repository AGENTS.md, skills, plans/, and issues
Instructions the owner’s dotfiles, such as ~/.ai The instructions that every session loads, and the owner’s own working skills, such as commit and dispatch
Knowledge one private repository on the owner’s forge Skills, the owner’s taste and preferences, how their systems work, and what simmer learned
Transcripts midden, its own project Every session’s prompts, responses, and tool calls

The runtime

The runtime is a Kubernetes operator, simmer operator, in one
Deployment. Custom resources in the simmer.foo group are the control
plane. Events, inboxes, and transcripts are the data plane, which the
operator keeps on its own volume and serves to Jobs over HTTP.

  • Resources. The cluster owner declares Account, Allowance,
    Signal, McpServer, Mandate, and Duty resources. The
    operator writes each Session, and any Job can create a Stop.
    kubectl get simmer -A lists them all.
  • Signals. A Signal subscribes to one wicket path or to one AT
    Protocol Jetstream, and holds the jq that keys and scopes its events.
    wicket receives signed webhooks from Gitea, GitHub, Tangled, and
    Alertmanager. The operator subscribes to a wicket path with the
    Secret that the Signal’s token names, or, without one, with its own
    ServiceAccount token for the audience wicket. A Jetstream sends the commits to the collections a
    Signal names, such as Tangled’s tickets and comments. The core has no
    forge fields. A Signal’s debounce, such as 30s, holds a Session’s
    turn until each of its waiting events from the Signal is that old, so
    a pull request’s CI result and its reviews, which land within a
    minute of each other, share one turn.
  • Mandates. A Mandate is a responsibility: the events it hears, the
    repositories it works in, the Roles it is granted, and the MCP
    servers it uses. The operator gives each Mandate a ServiceAccount and
    binds the Roles it names.
  • Duties. A Duty is one thing that a Mandate owes: a skill, and the
    events, the cadence, or the schedule that start it. Each Duty is its
    own resource beside its Mandate, with its own Ready condition, so
    kubectl get duties -A lists what every Mandate does and one bad
    Duty does not stop the others. An event starts every Duty of its
    Mandate that it meets, in the order of their priority. A Duty with
    grants of its own gets a ServiceAccount of its own, bound to the
    Mandate’s Roles and the Duty’s, so the Mandate’s other Duties never
    hold what only that Duty needs.
  • Actors and credentials. simmer gives a Session no credentials.
    The cluster gives them to a pod by its ServiceAccount, with a tool
    of its choosing, such as lanyard’s Badges, and the Mandate’s or the
    Duty’s template adds whatever volume or environment that tool
    needs. A Mandate’s actors name who its Sessions act as on each
    Signal, such as their login on a forge, and a Duty’s actors take
    their place for the Signals it lists. A Session never wakes on an
    event that its own actor caused. A Duty with a serviceAccount
    label runs its turns as simmer-<mandate>--<label>, so a Duty that
    acts as another user gets that user’s credentials and no other
    Duty’s.
  • Sessions. A Session is one conversation under one Mandate, and
    each of its turns is a Kubernetes Job. The Job runs the deployment’s
    session image, which holds claude and git. An init container
    copies the simmer binary into the pod, and the session container
    runs simmer turn.
  • Guardrails. The runtime decides which events start or resume a
    Session, and the brake and the andon cord decide when a Job may
    start. Claude decides how to do the work. The forge’s permissions and
    branch rules decide what the forge user can do and which changes need
    the owner’s approval.

deploy/ in this repository is the kustomize base: the CRDs, the
operator’s RBAC, its Deployment, volume, and Service, and a monitoring
Component with a PodMonitor and alert rules. CI publishes it as an OCI
artifact beside each image, at the same tag. A cluster takes both
through Flux and patches the base with its own settings.

Reactive and generative work

Reactive work starts from an event: an issue, a comment, a review, a CI
result, an alert, or a new release of a dependency. Recurring work is a
duty with every or schedule. every is a loose cadence: the duty
runs about that often, when the Allowance has room and no event waits.
schedule is a time of day, such as a board review at 5am, which a
cadence cannot pin. The operator runs it with a CronJob that the
Mandate owns, and the CronJob’s Job asks the operator to start the
duty’s Session. A Session can ask for one wake of its own, a follow-up,
but a follow-up is not a schedule.

Generative work has no outside event: ideation, finding refactoring
opportunities, and keeping documentation current. Spare capacity starts
it. When the brake allows a Job and no inbox has an event waiting, the
runtime starts a generative session. Reactive work always comes first,
and the order of generative work is:

  1. ideas that the critic sent back for more work
  2. new ideas

A generative session decides for itself whether a change goes straight
to a pull request or becomes a proposal. Every pull request needs
the owner’s approval to merge, so a wrong choice costs one review. The
owner’s merges, closes, and comments are recorded in the knowledge
repository, and sessions read them before they decide. The line between
a pull request and a proposal comes from the owner’s past decisions, for
each project.

Follow-ups

A Session can ask simmer to wake it once, at a time it chooses, to
look again at a situation it already works on. Its turn ends, and no
pod waits. plans/follow-up.md is the design.

simmer follow-up <duration> <reason>
simmer follow-up --cancel

A follow-up is one wake, for one Session, about one situation that the
Session already holds. Its reason names what to check and what result
ends the work:

  • Alert triage. The cause looks fixed, and the alert is quiet. Look
    again in 2 hours, and close the issue if it stayed quiet.
  • A performance soak. A change to a memory limit merged. Read the
    p99 and the restarts after 24 hours of traffic.
  • A migration. A Job in the cluster migrates a database. Read its
    result in 3 hours, then take the next step of the goal.

A follow-up is not a schedule. Each of these is a different thing:

  • A duty with every or schedule is a standing order. It runs on
    its cadence or at its time of day, for whatever it finds then, and no
    Session asks for it. A check that must run each day is a duty in a
    Mandate, which the owner reviews.
  • An event already wakes a Session for a CI result, a comment, a
    review, a merge, and an alert’s resolve. A Session never sets a
    follow-up to learn something that an event will tell it.
  • A sweep or a poll looks at many things, or at one thing over and
    over. A follow-up that sets another one is for a situation that has
    not settled, and the next reason says what changed.

How it runs:

  • A Session has at most one follow-up, and a second one replaces the
    first. A follow-up is from 10 minutes to the Mandate’s
    sessions.maxFollowUp, 168h by default. Its reason is at most 500
    characters.
  • A Session with a follow-up does not finish, even with no keys. An
    event on one of its keys still wakes it first, and the follow-up
    stays. A Session that fails drops its follow-up.
  • When it falls due and no turn runs, the operator delivers a simmer
    event with the reason. The event waits on the brake and a Stop like
    any other. A follow-up that falls due during a turn waits for the
    turn to end.
  • sessions.maxFollowUps, 10 by default, bounds the follow-ups that
    fall due for one Session over its life, so a Session cannot keep
    itself alive with them. The operator also refuses a follow-up on the
    last turn that maxTurns allows. It drops one that falls due after
    an event took that turn, with the Warning Event FollowUpDropped.

kubectl get sessions -A shows each Session that waits on followUp,
and its FOLLOW-UP column says when. -o wide adds the reason. The
Events FollowUpSet, FollowUpCanceled, FollowUpDue, and
FollowUpDropped record each one, and the metrics simmer_follow_ups
and simmer_follow_ups_due_total count them.

Proposals

A proposal is an issue that claude opens with the label proposal
and assigns to no one. A proposal for a new line of work is a proposed
goal issue.

  • No event of a proposal starts work. Work starts only when the owner
    assigns claude, and the forge records who assigned it.
  • A critic session reads each proposal before the owner sees it, and
    sends back the ones that do not meet their standards.
  • The number of open proposals has a cap. At the cap, ideation stops
    until the owner triages.

The brake

simmer is one of several users of the owner’s Claude subscription. The
owner’s own sessions on a phone or a laptop use the same account. The
brake gives each class of simmer’s work a budget, so that simmer uses
the subscription at a steady, small rate, and the owner’s own use never
holds it.

The budget is in notional US dollars: what a turn’s tokens would cost at
the API’s prices. A subscription pays nothing for a turn, but Claude
Code still reports that cost in the result line that ends
claude -p --output-format stream-json, for each model and each kind
of token. It is the only measure that counts one turn alone and that
compares turns on different models. The subscription itself reports
only how much of each window every user together has used.

An Allowance is a class of work on one Account, with a budget:

  • perHour is the dollars that the Allowance’s balance gains each hour.
  • cap is the most dollars that the balance holds. Without it, the cap
    is what perHour gains in 24 hours.

Each finished turn takes its cost from the balance of the Allowance
that its Mandate draws on. A Mandate’s next Job waits while that balance
is at or below 0, and starts once the rate has paid the debt back. So a
quiet night pays for a busy morning, and a burst that spends more than
the balance holds is followed by a wait of hours. The cost of a turn is
known only when it ends, so a turn that starts with a small balance can
take it below 0.

Triage gets a rate above what it spends on a normal day, so an alert
waits only after an unusual burst. Deferrable work gets a lower rate.

The brake also holds every Allowance of an Account while a window of
the subscription is used up, because a Job’s requests would be refused.
Short of that, the Account’s usage holds nothing: simmer and the owner spend
the week together until it is gone.

When the brake holds, events wait in their sessions’ inboxes. The next
turn reads all of them together, so a backlog makes fewer, larger turns.

claude -p --output-format stream-json --verbose reports the windows
in a rate_limit_event, on the setup-token the same as on a full
login, so the Jobs see the account’s whole usage. A plan with no
five-hour limit, such as Ultra, reports the seven-day window alone:

{"type": "rate_limit_event", "rate_limit_info": {"unifiedWindows": {
  "five_hour": {"utilization": 0.11, "resetsAt": 1792084200},
  "seven_day": {"utilization": 0.14, "resetsAt": 1792425600}}}}

A reading comes from the rate_limit_event of any turn, or from a
simmer probe Job, which runs only when work waits on a hold that a new
reading can lift. plans/operator-build.md, “The brake”, has the
details, and the metrics simmer_account_usage_ratio,
simmer_allowance_budget_dollars_per_hour,
simmer_allowance_balance_dollars,
simmer_allowance_charged_dollars_total, and simmer_allowance_holding
show the brake’s inputs and decisions. simmer_turn_cost_dollars_total
has what each Duty’s turns cost.

The andon cord

Any session, and the owner, can stop all of simmer at any time. Only the
owner can start it again.

A session pulls the cord when simmer itself does damage and needs a
person to look before anything else runs. Examples are a runaway loop
of sessions or Jobs, such as sessions that start each other, and Jobs
that push, merge, comment, or delete what nobody asked for. An ordinary
failure, such as a failed check or a task a session cannot finish,
goes in an issue instead. The reason is the Stop’s spec.reason, so
it says what the session saw. After a start, the session that
pulled the cord does not stop simmer again for the same cause.

  • simmer stop <reason> is the stop, a command in each Job. It creates
    a Stop resource with the Job’s ServiceAccount, which may create
    Stops and do nothing else in the control plane. A person can create
    one with kubectl too.
  • While any Stop exists, the operator creates no Job, and it deletes
    every running Session Job and marks its turn Interrupted. Events
    continue to arrive in inboxes. A turn’s events stay with its Session
    until a turn succeeds, so the next turn after a start reads them
    again.
  • Only the cluster owner can delete a Stop, and Kubernetes RBAC
    enforces that. A Job cannot remove its own Stop.
  • The operator exports simmer_stopped, and the SimmerStopped alert
    in deploy/monitoring fires on it, so the stop reaches the owner.
  • When the last Stop is deleted, the operator puts a note in each
    interrupted Session’s inbox that the cluster owner started simmer
    again, so the Session does not stop it a second time for the same
    cause. Then work resumes.

Observing and steering

The resources answer what simmer is doing. kubectl get sessions -A
lists each Session with its Mandate, its Duty, its phase, what it
waits on, its turns, and their cost. A Session’s phase, Mandate, and skill are
selectable fields, so the API server filters on them:
kubectl get sessions -A --field-selector status.phase!=Finished
lists only the Sessions in flight. kubectl get duties -A lists each
Duty with its Mandate, its skill, its active Sessions, and when it last
started, and the metric simmer_duty_pressure has each cadence’s
pressure; an Allowance’s status has its balance, what it spent in the last day, and whether it holds, and each object has Events
for its transitions. Each turn’s Job log is the turn’s stream from
Claude Code. The operator’s metrics and alert rules are listed in
plans/operator-build.md, “Observability”.

The design names answers that the resources do not give yet:

  • the goal that each Session in flight works for
  • links from a turn to its transcript in midden
  • the proposals that Sessions opened since a time
  • what the critic sent back

The owner steers simmer through the forge, as themselves: a comment,
an assignment, a close, or a merge. The runtime receives an ordinary
forge event, so the forge history is a complete record of every change
of direction. The cluster owner’s resources and the Stop are the only
controls outside the forge.

Goals and attention

A goal has two parts in the project’s repository:

  • A file in plans/ holds the design and constraints. Changes to it
    need the owner’s review.
  • An issue with the label goal links the plan, holds the
    conversation, and records the progress. A goal has no child issues.

The owner starts a goal by assigning claude its issue. That event starts
one Session, which holds the goal issue’s key for the life of the goal.
The Session does each step itself. It opens a pull request for the
step and follows the pull request’s key, so each review and the merge
wake the same Session, whichever Mandate owns the repository. The
Mandate that owns the repository reviews each pull request in a new
Session that acts as another forge user, so the author and
the reviewer wake each other and neither wakes on its own work.
plans/review.md is that design. After each step, it writes on the goal issue
what it did and what comes next, so the issue reads as the plan and its
progress. When the goal is done, the Session releases the goal issue’s
key and finishes. A goal can take weeks. Between turns, the Session
waits for its next event and takes none of its Mandate’s turns.

The goal’s skill and every other shared skill come from a plugin
repository that the Mandate lists in tools.plugins. simmer holds no
skills of its own; it runs the skill that a duty names.

A session gets the owner’s attention by assigning them an issue or a
pull request, or by asking them for a review. The forge’s own
notifications push it to their phone, through a notification relay for
Gitea and the GitHub app for GitHub.

Intent tracking

Most of what the owner has in mind never becomes an issue. It comes up
in their own Claude Code sessions. A recurring session reads midden
for things the owner says they want, keeps coming back to, or has left
alone for a long time. It records each one in the knowledge repository.
When one has no goal issue, or its goal has not moved, the session
proposes a goal issue, or comments on the stalled one.

Self-improvement

simmer opens pull requests on skills, on the knowledge repository, and
on this repository. Any session can query the shared history and propose a
change to how simmer works. Branch rules require the owner’s approval before
a merge, as on every repository where claude works.

Forges

simmer starts on the owner’s Gitea, with the infrastructure repository,
the knowledge repository, and simmer itself. On GitHub, where a project
may be developed in public, claude has no identity at first. Triage
there reads GitHub events and the public API, and reports in a private
Gitea repository with a link to each GitHub item. The owner acts on
GitHub themselves. simmer gets a GitHub identity when it is clearly
ready for those repositories.

Transcripts

Every Claude Code session exports its events over OpenTelemetry to
midden, a separate project that stores them in Postgres. This includes
sessions in the runtime’s Jobs, in Consoles, and on the owner’s computers.
midden’s README describes the export settings and the storage.

A transcript is private when its session works in a private repository,
such as the knowledge repository, or uses a private tool: a mail,
calendar, or personal-finance server. Every other transcript is shared history.

midden is the raw source for the knowledge repository.

Knowledge

The knowledge repository follows the LLM wiki pattern:

  • immutable raw sources, which are midden and the forge
    history
  • pages that sessions write and maintain
  • a schema file that tells sessions how to work on them

A recurring maintenance session checks the pages for contradictions,
stale claims, and orphan pages.

The pages are plain Markdown files that Claude Code reads with its own
tools. Sessions push pages directly to main. The branch rule on main
lists skills/** and every AGENTS.md and CLAUDE.md in
protected_file_patterns, so Gitea refuses a direct push that changes
a skill or the context every session loads, and those changes come as
pull requests that the owner approves. If pages need
approval later, the rule gets one more pattern.

Notes

The owner can drop a note about anything into any Claude Code session.
Capture and filing are separate, so a note costs one message and no
wait:

  1. Capture. The note skill in the knowledge plugin writes the
    note, unchanged, to inbox/<timestamp>.md in a clone of the
    knowledge repository, with the session and the topic of the
    conversation. It pushes to main, and the chat continues.
  2. Filing. The push is a forge event, and it starts a session that
    reads the note and moves its content to the right place: a
    dossier, a goal’s plan, a new page, or a proposed goal issue. The
    session deletes the note from inbox/. Its commit
    message says where the note went, so the history answers “where did
    my note about X go?”

The brake holds filing like all other work.

Skills

Skills are the main way to steer common procedures, such as triaging an
alert, bumping a dependency, or reviewing the month’s budget. They are in
skills/ in the knowledge repository, which is a Claude Code plugin, so
every session loads the same skills:

  • Jobs pass --plugin-dir with their clone of the knowledge repository.
  • Consoles clone it at each start, as tools.plugins lists it.
  • The owner’s computers install the plugin once.

A skill changes only by a pull request that the owner approves.

Risks

  • simmer can maintain the repository that deploys the forge, wicket, and
    simmer itself. A change that stops the runtime leaves nothing running
    to fix it, so the owner rolls it back by hand.
  • All of an Account’s Jobs use one claude setup-token. When it
    expires, every Session on that Account stops. The Account’s Ready
    condition turns false when a probe fails.
  • The claude.ai connectors do not reach a claude -p Job on a
    setup-token: a Job starts with no MCP servers, where a full
    login has the connectors for mail, calendar, drive, and the like. A private
    repository’s sessions need MCP servers in the cluster, like the
    Prometheus sidecar, declared as McpServer resources and named in
    the Mandate’s tools.mcp.
  • The usual failure is that nothing happens. The operator counts each
    event by its outcome in simmer_events_total, so an event that
    reached no Session shows in the counter of its outcome. The line it
    logs for each event is at the Debug level, which the operator’s
    default handler does not write.

First steps

  1. File the notes in the knowledge repository’s inbox: claude gets
    access to the knowledge repository, a route for pushes that add a
    note, and a filing skill.