bots-garden/mini-me-kitpublic Fork
⑂ main
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/mini-me-kit.git
git clone ssh://git@rickub.com/bots-garden/mini-me-kit.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
📦 Mini Me f010e25 · on main · k33g · 3d ago
README.md

Mini Me sbx kit

Use the kit locally

agent.yaml is the default config file name

cd demo
sbx run --name mm-demo ../mini-me

Use another config file name

cd demo
sbx run --name mm-demo ../mini-me -- -tui -config agent.lucy.yaml

Use the kit remotely

Prerequisites

sbx settings set kit.allowedSources '["docker.io/","git.rickub.com/bots-garden/"]'

From the Git repository

cd demo
RELEASE=v0.2.0
REPOSITORY=git+https://git.rickub.com/bots-garden/mini-me-kit.git
sbx run --name mm-demo-remote "${REPOSITORY}#ref=${RELEASE}&dir=mini-me"

Assemble with other kits

RELEASE=v0.2.0
REPOSITORY=git+https://git.rickub.com/bots-garden/mini-me-kit.git
sbx run --name mm-demo-remote "${REPOSITORY}#ref=${RELEASE}&dir=mini-me" \
--kit ./kits/go-toolchain --kit ./kits/nushell \
-- -tui -config agent.lucy.yaml

From Docker Hub

cd demo
sbx run --name mm-demo-hub docker.io/k33g/mini-me-kit:0.2.0

Use it with another agent config file

cd demo
sbx run --name mm-demo-hub docker.io/k33g/mini-me-kit:0.2.0 -- -config agent.lucy.yaml

Assemble with other kits

sbx run --name mm-demo-hub docker.io/k33g/mini-me-kit:0.2.0 \
--kit ./kits/go-toolchain --kit ./kits/nushell \
-- -config agent.lucy.yaml

With the Go toolchain kit, also from Docker Hub

cd demo
sbx run --name mm-demo-hub docker.io/k33g/mini-me-kit:0.2.0 \
--kit docker.io/k33g/go-toolchain-kit:0.2.0

Mini Me Editor: Eclipse Theia (web IDE)

./mini-me-editor runs the Eclipse Theia IDE on the workspace
(port 3000 in the sandbox). mm is installed but not launched: start it from the Theia terminal.

Extensions (from open-vsx, listed in mini-me-editor/theia/package.json → theiaPlugins):

  • JavaScript / TypeScript, HTML, CSS, JSON, Markdown: syntax + language features (completion, diagnostics, go to definition, formatting), Emmet, npm scripts
  • Go (golang.Go): needs go and gopls in the sandbox → add the go-toolchain kit (--kit ../kits/go-toolchain)
  • Rust (rust-lang.rust-analyzer): uses the rust-analyzer of the rust-toolchain kit (--kit ../kits/rust-toolchain)
  • Git (source control view, merge conflicts), YAML, shell, Python, Dockerfile, Makefile, INI, logs (syntax), Material Icon Theme (file icons)
  • ACP Patchbay

To add one: put its .vsix URL from open-vsx in theiaPlugins, then recreate the sandbox.

The terminals use the Starship prompt, configured in mini-me-editor/starship.toml
(standard Unicode symbols only: no Nerd Font needed in the browser). Its version is the starship_version kit arg.

Start the IDE on the host port of your choice (here 8080), then open http://localhost:8080

cd demo
sbx run -d --name mm-editor -p 8080:3000 ../mini-me-editor
# or, once published:
sbx run -d --name mm-editor -p 8080:3000 docker.io/k33g/mini-me-editor-kit:0.2.0 \
--kit docker.io/k33g/go-toolchain-kit:0.2.0

# or, if you need rust
sbx run -d --name mm-editor -p 8080:3000 docker.io/k33g/mini-me-editor-kit:0.2.0 \
--kit docker.io/k33g/go-toolchain-kit:0.2.0 \
--kit docker.io/k33g/rust-toolchain-kit:0.2.0

Or let sbx pick a free host port (it prints published localhost:<port> -> 3000/tcp)

cd demo
sbx run -d --name mm-editor ../mini-me-editor
sbx ports mm-editor
  • -d starts the sandbox without opening a session; drop it to get a shell in the sandbox.
  • -p applies when the sandbox is created. To change the port of an existing sandbox:
    sbx ports mm-editor --publish 9090:3000

Theia logs, if the page does not answer

sbx exec mm-editor cat /tmp/theia.log

Toolchain kits (mixins)

Add them to any of the kits above with --kit:

Kit Provides Version arg
./kits/go-toolchain go, gofmt, gopls go_version
./kits/rust-toolchain cargo, rustc, rustfmt, clippy, rust-analyzer, plus gcc (linker, C build scripts) rust_version
./kits/python-toolchain python3, pip, uv, uvx, ruff, ty, basedpyright (standalone CPython, tools installed with uv) python_version, uv_version (+ ruff_version, ty_version, basedpyright_version: none to leave one out)
./kits/swift-toolchain swift, swiftc, SwiftPM (swift build/test/run/package), swift-format, lldb, sourcekit-lsp, plus the system packages it needs (binutils, libc / libstdc++ headers, libcurl, libxml2…) — the toolchain matches the workload distro (Ubuntu / Debian), about 3.5 GB swift_version
./kits/kotlin-toolchain kotlinc, kotlin, JDK (java, javac, jshell…, Eclipse Temurin), gradle, ktlint, kotlin-lsp kotlin_version, jdk_version (+ gradle_version, ktlint_version, kotlin_lsp_version: none to leave one out; kotlin-lsp is about 1.2 GB)
./kits/nushell nu (static binary) nushell_version
cd demo
sbx run -d --name mm-editor -p 8080:3000 ../mini-me-editor \
--kit ../kits/go-toolchain --kit ../kits/rust-toolchain --kit ../kits/nushell

Mini Me Agent (mixin)

./mini-me-agent only adds the mm binary (/usr/local/bin/mm) on top of another workload:
use it to get Mini Me in a sandbox running another agent or editor kit. Its version is the mm_version kit arg.

cd demo
sbx run --name mm-agent <agent> --kit ../mini-me-agent
# or, once published:
sbx run --name mm-agent <agent> --kit docker.io/k33g/mini-me-agent-kit:0.2.0

Then start it from a terminal in the sandbox: mm -tui.

Editors on the host, over SSH

Two workload kits for a shell sandbox driven from an editor running on the host, through the
sandbox SSH endpoint (ssh <name>.sbx). Nothing graphical runs in the sandbox: the editor installs
its remote server there, and the kit opens the network policy that server needs.

Kit Editor Image
./kits/vscode-ssh VS Code (Remote-SSH extension) docker.io/k33g/vscode-ssh-kit
./kits/zed-ssh Zed (remote development) docker.io/k33g/zed-ssh-kit

VS Code

sbx setup ssh
sbx create --name my-box ./kits/vscode-ssh "$PWD/demo" --kit ./mini-me-agent
code --remote ssh-remote+my-box.sbx "$PWD/demo"

Zed

sbx setup ssh
sbx create --name my-box ./kits/zed-ssh "$PWD/demo" --kit ./mini-me-agent
zed --new "ssh://my-box.sbx$PWD/demo"

With a sandbox environment file (sbxenv.yaml)

sbxenv.yaml assembles the published vscode-ssh kit with the nushell, mini-me-agent,
go-toolchain and rust-toolchain kits, on ./demo. The sandbox is named vscode-mm (SSH host vscode-mm.sbx).

sbx setup ssh
sbx env create --force
code --new-window --remote ssh-remote+vscode-mm.sbx "$PWD/demo"
# remove it
sbx env rm
  • The workload image is listed in kits: and named in agent:. For a registry image, agent: is the
    last component of the repository name (docker.io/k33g/vscode-ssh-kit:0.2.0 → agent: vscode-ssh-kit).
  • ./00-prepare-release.sh bumps the image tags of sbxenv*.yaml from PREVIOUS_TAG to TAG.

Release & publish

  1. Update TAG, PREVIOUS_TAG, MINI_ME_VERSION and ABOUT in release.env
  2. Update the versions in the kit descriptors, sbxenv*.yaml and this README, then check the diff:
    ./00-prepare-release.sh
    
  3. Tag the release (commit, push, tag, push the tag):
    ./01-release.tag.sh
    
  4. Publish the kits to Docker Hub (linux/amd64 + linux/arm64, tags <TAG without v> and latest):
    docker login
    ./02-publish-kit.sh                  # ./mini-me           -> k33g/mini-me-kit
    ./03-publish-go-toolchain-kit.sh     # ./kits/go-toolchain -> k33g/go-toolchain-kit
    ./04-publish-rust-toolchain-kit.sh   # ./kits/rust-toolchain -> k33g/rust-toolchain-kit
    ./05-publish-mini-me-editor-kit.sh   # ./mini-me-editor    -> k33g/mini-me-editor-kit
    ./06-publish-nushell-kit.sh          # ./kits/nushell      -> k33g/nushell-kit
    ./07-publish-mini-me-agent-kit.sh    # ./mini-me-agent     -> k33g/mini-me-agent-kit
    ./08-publish-vscode-ssh-kit.sh       # ./kits/vscode-ssh   -> k33g/vscode-ssh-kit
    ./09-publish-zed-ssh-kit.sh          # ./kits/zed-ssh      -> k33g/zed-ssh-kit
    ./10-publish-python-toolchain-kit.sh # ./kits/python-toolchain -> k33g/python-toolchain-kit
    ./11-publish-swift-toolchain-kit.sh  # ./kits/swift-toolchain -> k33g/swift-toolchain-kit
    ./12-publish-kotlin-toolchain-kit.sh # ./kits/kotlin-toolchain -> k33g/kotlin-toolchain-kit
    
    • DOCKER_HUB_NAMESPACE=<namespace> to push under another namespace (default: k33g)
    • SIGN=1 to sign the kit after the push (sbx kit sign)

Agent Client Protocol

ACP

sbx create --name mm-acp ./mini-me . --kit ./kits/go-toolchain

sbx exec -i mm-acp mm -acp -config agent.lucy.yaml