How jeliasson/bur works
bur runs coding agents in disposable, rootless Podman sandboxes, with the project’s Nix devshell built on the host and exposed inside the container. The main workflow is user command → CLI → sandbox launch → agent; configuration, port publishing, Git identity, clipboard access, and on-demand package installation are supporting capabilities. Host project files, Nix store, and agent state are mounted into the sandbox as documented. Some implementation links are omitted because the excerpts do not show the relevant calls; documented relationships cite the README.
Main entry points: main.go bur CLI · container.go Podman sandbox · pkgbridge.go Package bridge · clipboard.go Clipboard bridge
Components 19
Command and configuration
- bur CLI
cmd/bur/main.go - Project config
internal/config/config.go - Init scaffolding
internal/config/init.go - Git setup
internal/config/initgit.go
Sandbox runtime
- Podman sandbox
internal/sandbox/container.go - Sandbox lifecycle
internal/sandbox/sandbox.go - Port allocation
internal/ports/ports.go - Sandbox Git config
internal/sandbox/gitconfig.go
Host environment
- Devshell resolver
internal/nixenv/nixenv.go
Sandbox bridges
- Clipboard bridge
internal/clipboard/clipboard.go - Package bridge
internal/pkgbridge/pkgbridge.go - Command shims
internal/shim/shim.go
Other components
- User
- Coding agent
- Project checkout
- Agent state
- Nix store
- Host clipboard tools
- Host Nix
Connections 23
- User → bur CLI: runs command
README.md - bur CLI → Podman sandbox: starts sandbox
cmd/bur/main.go - bur CLI → Init scaffolding: initializes files
README.md - bur CLI → Sandbox lifecycle: lists or cleans
cmd/bur/main.go - Project checkout → Devshell resolver: provides devshell
README.md - Devshell resolver → Host Nix: builds environment
internal/nixenv/nixenv.go - Host Nix → Nix store: realizes paths
README.md - Podman sandbox → Coding agent: runs command
README.md - Project checkout → Coding agent: mounts read-write
README.md - Nix store → Coding agent: mounts read-only
README.md - Agent state → Coding agent: mounts read-write
README.md - Project config → Podman sandbox: configures runtime
- Port allocation → Podman sandbox: allocates mappings
internal/sandbox/container.go - Git setup → Project config: writes identity
internal/config/initgit.go - Sandbox Git config → Podman sandbox: writes Git settings
internal/sandbox/gitconfig.go - bur CLI → Clipboard bridge: starts bridge
cmd/bur/main.go - Clipboard bridge → Command shims: installs shims
- Coding agent → Host clipboard tools: requests paste
README.md - Host clipboard tools → Clipboard bridge: reads clipboard
internal/clipboard/clipboard.go - bur CLI → Package bridge: starts bridge
cmd/bur/main.go - Package bridge → Command shims: installs shim
internal/pkgbridge/pkgbridge.go - Coding agent → Package bridge: requests packages
README.md - Package bridge → Host Nix: builds packages
internal/pkgbridge/pkgbridge.go