Files
slop-broker/README.md
T
jackos1998andClaude Opus 5.5 1f834df326 docs: Add the design, architecture and agent rules
The design and architecture docs come from nixfiles'
`docs/slop-broker.md` and its working notes, rewritten to describe the
broker rather than one deployment: roles such as the agents' VM and
the broker's box replace box names, and the rollout plan and
deployment's agent setup stay in nixfiles. `AGENTS.md` carries over
the general rules from nixfiles plus this repository's commands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 00:39:37 +00:00

2.2 KiB

slop-broker

An approval broker that runs privileged operations (SSH commands, deploys, builds, and later secrets, DNS and previews) for coding agents, under a policy and usually after a human approves each one. Agents use the slop CLI; approvers use slop-approve, a web app (sign-in with OpenID Connect, passkeys, Web Push) or Home Assistant notifications.

Trying it

devenv up    # the broker, its web app, Pocket ID and a box VM for the SSH targets
demo         # in another terminal: the agents' VM, signed in as an agent that can send requests

See docs/demo.md.

Using it

The flake provides:

Output What
packages.<system>.default slop, slop-broker and slop-approve
overlays.default pkgs.slop-broker
nixosModules.slop-broker The broker (services.slop-broker)
nixosModules.slop-broker-builder The builder for deploys and builds (services.slop-broker-builder)
nixosModules.slop-broker-cache The binary cache side of builds (services.slop-broker-cache)
homeModules.slop The clients on other boxes, over SSH (programs.slop)

nixosModules.default imports all three NixOS modules. The modules default their package to this flake's build. Deployment-specific concerns (persisting state on an ephemeral root, the firewall in front of the web app, SSH targets, policies) are left to the configuration that imports them; nixfiles is the reference deployment.

Developing

The development environment is devenv: direnv with .envrc, which takes the devenv CLI from the flake's nixpkgs so it needn't be installed, or devenv shell. cargo test and cargo clippy --all-targets work there, devenv test runs both, and vm-test runs the NixOS VM test (needs KVM). See AGENTS.md for conventions.

License

MIT; see LICENSE.