guid.foo simmer-deploy

0 16 pulls 3 Updated 9h
docker pull seamark.cr/guid.foo/simmer-deploy:20261204181045-50449b5
Image Size Layers
27.4 KB 1
Pushed 9h
Vulnerabilities
Loading...
Pulls
16 total
Last pull 9h

simmer

simmer runs Claude Code
agents in your Kubernetes cluster, where they
work on your repositories in the background.

The agents keep dependencies current, triage issues and alerts, and
review pull requests. They can also carry one goal through many pull
requests over weeks. You review their work on your forge, and they run
on your Claude subscription.

You give simmer each responsibility as a Mandate, with the events it
hears and the repositories it works in. Each task of a Mandate is a
Duty, which names a skill and what starts it: an event, a cadence, or
a time of day. This Duty runs the skill summarize once a day:

apiVersion: simmer.foo/v1alpha1
kind: Duty
metadata: { name: summarize, namespace: example }
spec:
  mandate: notes
  skill: summarize
  every: 24h

An event such as an issue, a comment, a CI result, or an alert
starts a Session. When a Session already follows that issue or pull
request, the event wakes it instead. A Session works in turns, and
each turn is a Kubernetes Job that runs claude -p with the skill.
A Session asks you for input by assigning you an issue or a review.

Each Allowance is the budget for one class of work. It counts
notional US dollars: what the turns’ tokens would cost on the API. The
budgets keep simmer to a small, steady share of your subscription.

simmer needs wicket to receive
events. wicket receives the signed webhooks of
Gitea, GitHub,
Tangled, and
Alertmanager,
and streams them to simmer. A Signal says which of those events
simmer hears.

These projects are optional:

  • lanyard provides a
    Session’s pod with forge credentials. It also provides the
    atproto service token that some MCP servers
    need.
  • midden stores every
    Session’s transcript. The session image contains the midden
    binary, and Claude Code’s hooks run midden ship after each turn.
  • gofer runs a browser for a
    Duty. The browser keeps its logins from one pod to the next.
  • transom lets a Session
    ask you a question, and your answer wakes the same Session.

Install

simmer needs:

  • Kubernetes 1.31 or newer, with a default StorageClass.
  • kubectl.
  • wicket, reachable from the cluster over HTTP.
  • A Claude subscription.
  • A session image you build, with claude and git on the PATH.
  • A login for atcr.io, the registry that
    hosts simmer’s image.
  • Forge credentials for each Session’s ServiceAccount. The first
    use below needs none.

The install skill has the details of each
requirement.

simmer’s base leaves two settings empty: wicket’s address and your
session image. The operator does not start until you set both. Set them
in a kustomization that uses the base from
this repository:

# simmer/kustomization.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
  - https://tangled.org/guid.foo/simmer//deploy?ref=main
patches:
  - patch: |
      apiVersion: apps/v1
      kind: Deployment
      metadata:
        name: simmer-operator
      spec:
        template:
          spec:
            containers:
              - name: operator
                env:
                  - name: SIMMER_WICKET_URL
                    value: http://wicket.example.svc:8080
                  - name: SIMMER_SESSION_IMAGE
                    value: registry.example.com/claude-session:1.0.0
kubectl create namespace simmer
kubectl apply -k simmer/
kubectl -n simmer rollout status deploy/simmer-operator

ref=main installs the newest commit. The
install skill covers pinned releases,
monitoring, Flux, and other namespaces.

First use

This example gives simmer a budget and one Duty that runs a skill
once a day. First, commit a project skill to a public repository, such
as .claude/skills/summarize/SKILL.md in
https://forge.example.com/you/notes.git. The skill must be there
before the Duty runs.

Run claude setup-token and save the token it prints in
setup-token.txt. Then run:

kubectl -n simmer create secret generic claude-setup-token \
  --from-literal=credential="$(cat setup-token.txt)"
kubectl create namespace example
kubectl apply -f first.yaml
# first.yaml
apiVersion: simmer.foo/v1alpha1
kind: Account
metadata: { name: personal }
spec:
  provider: anthropic
  credential:
    secretRef: { namespace: simmer, name: claude-setup-token, key: credential }
---
apiVersion: simmer.foo/v1alpha1
kind: Allowance
metadata: { name: upkeep }
spec:
  account: personal
  budget: { perHour: 1 }
---
apiVersion: simmer.foo/v1alpha1
kind: Mandate
metadata: { name: notes, namespace: example }
spec:
  allowance: upkeep
  workspace:
    repositories: [https://forge.example.com/you/notes.git]
---
apiVersion: simmer.foo/v1alpha1
kind: Duty
metadata: { name: summarize, namespace: example }
spec:
  mandate: notes
  skill: summarize
  every: 24h

A Duty that has never run is due at once, so simmer starts a
Session for it. perHour: 1 in the Allowance is one notional
dollar an hour. The Session has no forge credentials, so it can only
read. The turn’s output is in its Job’s log:

kubectl get sessions -n example          # its phase, what it waits on, its turns, and their cost
kubectl logs -n example job/<session>-1  # the turn's stream from Claude Code
kubectl get simmer -A                    # every simmer resource

Skills

skills/ contains a guide for each task, as
Agent Skills:

  • install: install, upgrade, and remove
    the operator.
  • set-a-budget: declare an Account
    and its Allowance resources, and read the brake.
  • connect-a-signal: subscribe to
    a wicket path or an AT Protocol
    Jetstream.
  • declare-a-mandate: give simmer
    a responsibility, its repositories, and its credentials.
  • declare-a-duty: start a skill on
    an event, a cadence, or a schedule.
  • stop-or-hold: stop all of simmer
    with a Stop, from your shell or from a Session, or hold one
    Duty’s events.
  • work-in-a-session: the
    commands an agent runs inside a turn.
  • run-a-console: run a Console,
    your own Claude Code
    Remote Control
    server in the cluster, and drive it from the Claude app.
  • troubleshoot: find why an event
    started no turn or a Session waits.

The repository is its own plugin marketplace. In Claude Code:

claude plugin marketplace add https://tangled.org/guid.foo/simmer.git
claude plugin install simmer@simmer

In Codex:

codex plugin marketplace add https://tangled.org/guid.foo/simmer.git
codex plugin add simmer@simmer

Any other agent that reads Agent Skills can use skills/ directly.

More

The design is in plans/00-design.md.

MIT. See LICENSE.

Report a problem at https://tangled.org/guid.foo/simmer/issues.