bots-garden/mini-mepublic Fork
⑂ v2.0.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/mini-me.git
git clone ssh://git@rickub.com/bots-garden/mini-me.git

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

Download ZIP
🛟 Updated. f3a4b95 · on v2.0.0 · k33g · 9d ago
v1.0.8.en.md · 39 lines · 2.4 KBmarkdown
Blame HistoryOpen raw

mini-me v1.0.8

Version française

mm sbxinit writes a simpler sbxenv.yaml for a .mm project: no PROJECT_DIR argument and no --env-arg on the sbx env commands.

New

mm sbxinit without PROJECT_DIR (#209)

In v1.0.7, mm sbxinit wrote two more blocks for a project whose agent is .mm/agent.yaml: a required PROJECT_DIR argument, and AGENT_CONFIG built from it. Every sbx env command then needed --env-arg PROJECT_DIR="$PWD". They were there so that the file would also work with a kit that ships an mm older than v1.0.7.

mm sbxinit always writes the latest kit. From mini-me-kit:0.1.5 on, the kit ships mm 1.0.7 or later, which finds .mm/agent.yaml on its own when it starts in the workspace. The two blocks are gone, and so is the argument:

sbx env create --force
sbx env run --force

The mounts do not change. .mm/ is still mounted read-only over the workspace, the agent file's sessions.dir and trace.dir are writable again, and every path is relative to the folder of sbxenv.yaml. A comment in the file says why it sets no AGENT_CONFIG.

Checked in a Docker Sandbox with mini-me-kit:0.1.5: mm starts in the workspace and reads .mm/agent.yaml with no PROJECT_DIR.

See How to run mini-me in a Docker Sandbox.

Documentation

  • The Docker Sandbox guide, in its .mm section:
    • shows the file without args and env;
    • says what to do if the banner shows config: built-in defaults;
    • says how to clean a file written by mm sbxinit 1.0.7;
    • gives the editor settings (Zed) that run mm in the sandbox with sbx exec … mm -acp -config <absolute path of .mm/agent.yaml>.
  • The CLI reference describes the new mm sbxinit output for a .mm project.

Upgrading

  • Agent files do not change. Replace the binary: see the install guides for macOS, Linux and Windows.
  • A sbxenv.yaml written by mm sbxinit 1.0.7 for a .mm project still works. With a kit of 0.1.5 or later, you can remove its args: and env: blocks, then drop --env-arg from the commands. You can also run mm sbxinit again and answer yes to replace the file.
  • A sandbox keeps the kit and the mounts it was created with. After changing the file, remove it once with the old command (sbx env rm --force --env-arg PROJECT_DIR="$PWD"), then create it again with sbx env run --force.
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# mini-me v1.0.8

*[Version française](v1.0.8.fr.md)*

`mm sbxinit` writes a simpler `sbxenv.yaml` for a `.mm` project: no `PROJECT_DIR` argument and no `--env-arg` on the `sbx env` commands.

## New

### `mm sbxinit` without `PROJECT_DIR` (#209)

In v1.0.7, `mm sbxinit` wrote two more blocks for a project whose agent is `.mm/agent.yaml`: a required `PROJECT_DIR` argument, and `AGENT_CONFIG` built from it. Every `sbx env` command then needed `--env-arg PROJECT_DIR="$PWD"`. They were there so that the file would also work with a kit that ships an mm older than v1.0.7.

`mm sbxinit` always writes the latest kit. From `mini-me-kit:0.1.5` on, the kit ships mm 1.0.7 or later, which finds `.mm/agent.yaml` on its own when it starts in the workspace. The two blocks are gone, and so is the argument:

```bash
sbx env create --force
sbx env run --force
```

The mounts do not change. `.mm/` is still mounted read-only over the workspace, the agent file's `sessions.dir` and `trace.dir` are writable again, and every path is relative to the folder of `sbxenv.yaml`. A comment in the file says why it sets no `AGENT_CONFIG`.

Checked in a Docker Sandbox with `mini-me-kit:0.1.5`: mm starts in the workspace and reads `.mm/agent.yaml` with no `PROJECT_DIR`.

See [How to run mini-me in a Docker Sandbox](../docs/en/how-to/run-in-a-docker-sandbox.md).

## Documentation

- The Docker Sandbox guide, in its `.mm` section:
  - shows the file without `args` and `env`;
  - says what to do if the banner shows `config: built-in defaults`;
  - says how to clean a file written by `mm sbxinit` 1.0.7;
  - gives the editor settings (Zed) that run mm in the sandbox with `sbx exec … mm -acp -config <absolute path of .mm/agent.yaml>`.
- The CLI reference describes the new `mm sbxinit` output for a `.mm` project.

## Upgrading

- **Agent files do not change.** Replace the binary: see the install guides for [macOS](../INSTALL.MACOS.md), [Linux](../INSTALL.LINUX.md) and [Windows](../INSTALL.WINDOWS.md).
- **A `sbxenv.yaml` written by `mm sbxinit` 1.0.7 for a `.mm` project** still works. With a kit of 0.1.5 or later, you can remove its `args:` and `env:` blocks, then drop `--env-arg` from the commands. You can also run `mm sbxinit` again and answer `yes` to replace the file.
- A sandbox keeps the kit and the mounts it was created with. After changing the file, remove it once with the old command (`sbx env rm --force --env-arg PROJECT_DIR="$PWD"`), then create it again with `sbx env run --force`.