The demo's app built and copied in moments, which left nothing for the progress in `slop` and the web app to show. It now has twelve parts in three layers, each layer built once the one below it is, so a build takes about a minute and a half; each part adds a few MiB to copy, and the box VM has room for them. `demo-help` shows `--logs` too. The parts follow from the version alone, so a version built before is already in the builder's store and only evaluates, and a new one rebuilds them all. `demo-bump` in the agents' VM sets a new version and pushes it on a branch of its own, and a check runs it against a bare copy of the repository, including from a fresh clone, as after the VM restarts. Refs #21 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
slop-broker
An approval broker that runs privileged operations (SSH commands, deploys, builds and age
secrets, and later 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 or a web app (sign-in with
OpenID Connect, passkeys, Web Push).
docs/design.md— the design and its rationale.docs/architecture.md— how the code is put together and how to add an operation.docs/demo.md— a setup to try it in.slop-tools.md— the guide for agents (slop guideprints it).
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, 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.
Releasing
Use SemVer for the CLI, request protocol and Nix module options. Bump the patch for
compatible fixes and the minor for compatible features. While the major is zero,
use a minor bump for breaking changes and document how to upgrade. After 1.0.0,
bump the major for breaking changes.
- In a release pull request of its own, once the changes for it have merged, set
package.versioninCargo.tomland runcargo checkto refreshCargo.lock. Feature and fix pull requests leave the version alone. The Nix package reads the version fromCargo.toml. - After the release commit lands on
mainand passes CI, tag itv<version>and push the tag. Keep published tags fixed. - Update the
slop-brokerinput in nixfiles toref=refs/tags/v<version>and runnix flake update slop-brokerthere to refresh its lock entry.
License
MIT; see LICENSE.