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. e019565 · on v2.0.0 · k33g · 8d ago
v1.0.9.en.md · 68 lines · 5.3 KBmarkdown
Blame HistoryOpen raw

mini-me v1.0.9

Version française

Create an agent from your editor with mm acp-create — and its container, its sandbox and its editor settings — while mm dockerinit learns the .mm folder and an editor's reload no longer fails.

New

mm acp-create: mm init from your editor (#210)

mm acp-create (also mm --acp-create) asks the questions of mm init over the Agent Client Protocol, from Zed or any other ACP client, and writes the same file. It needs no agent file and calls no model: it only lists the model server's models, as mm init does. Register it once in your client:

"agent_servers": {
  "mm-create": { "type": "custom", "command": "mm", "args": ["acp-create"] }
}

Open a project, start a thread with mm-create and send /start. The file is written in the project's directory, not where the client started mm.

  • The questions follow what your client can show. A client that advertises forms (elicitation.form) gets a few forms, with the defaults filled in; a question whose choices depend on an earlier answer, such as the model list of the server you chose, comes in the next form. Any other client gets one question per message, with numbered choices: reply with a number or a value, . for the default. The choice is made from the client's capabilities, never from its name.
  • Commands: /start, /preview (the file as it stands), /back, /write (take every default left and write), /restart, /help.
  • The rest of the set-up from the same thread: /dockerinit and /sbxinit run mm dockerinit and mm sbxinit for the project (their flags work; existing files are kept unless you add --overwrite, since nothing can be asked here), and /zedconfig shows the Zed agent_servers entries for every way the project can start its agent — on your machine (mm acp <agent file>), in its container (docker exec …), in its sandbox (sbx exec …) — with what to start first for each.
  • The flags of mm init fix answers in advance: "args": ["acp-create", "--provider", "llmman", "--project", "yes"].
  • Reloading the agent restarts the wizard: the answers are not kept, a file already written is untouched.

Tried in Zed. The form path is covered by tests with a simulated client only: no second ACP client was tried, and none that shows forms.

See How to create an agent from your editor.

mm dockerinit knows the .mm folder (#212)

Like mm sbxinit since v1.0.7, mm dockerinit now looks for agent.yaml, then .mm/agent.yaml, and names the service after the agent it finds. For a .mm project, compose.yaml:

  • mounts .mm/ read-only over the project, so the agent cannot change its own settings, skills or hooks;
  • mounts the agent file's sessions.dir and trace.dir (when on and under .mm/) writable again, and mm dockerinit creates them if they are missing — Docker would create them as root, and the agent never runs as root;
  • starts mm tui with no file argument: mm finds .mm/agent.yaml from the project.
    volumes:
      - .:${PWD:-/workspace}
      - ./.mm:${PWD:-/workspace}/.mm:ro
      - ./.mm/sessions:${PWD:-/workspace}/.mm/sessions    # sessions.dir

A plain project gets the same files as before. Checked on Linux with Docker 29.9.3 and Compose v5.7.1: writing in .mm/ is refused, writing in .mm/sessions and in the project works. Not checked on Docker Desktop (macOS).

See How to run mini-me in a container.

An editor's reload never fails (#210)

Zed's Reload Agent answered "Loading or resuming sessions is not supported by this agent" for every agent without sessions.enabled — the default of mm init. mm acp now always accepts the reload (session/load, session/resume). With saved sessions nothing changes: the conversation comes back. Without them the thread starts over, and a message in it says so and how to keep the next one (sessions: {enabled: true}).

mm sbxinit says how to run the sandbox

After writing sbxenv.yaml, mm sbxinit now prints Run the sandbox <name>: sbx env run --force between the create and remove commands; the file's comments list it too.

Documentation

  • New guide: Create an agent from your editor.
  • The container guide has a section for a .mm project; the CLI reference describes mm acp-create and the new --agent lookup of mm dockerinit.
  • The ACP reference, the configuration reference (sessions.enabled) and the explanation of persistent sessions describe the reload without saved sessions.

Upgrading

  • Agent files do not change. Replace the binary: see the install guides for macOS, Linux and Windows.
  • mm acp now always advertises loadSession and session/resume. A client that relied on their absence to know sessions were not saved will see a reload that starts the conversation over instead of an error. session/list still exists only with sessions.enabled.
  • A compose.yaml written by an earlier mm dockerinit for a .mm project mounts the whole project writable and starts mm tui agent.yaml. Run mm dockerinit again and answer yes to replace it.
 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# mini-me v1.0.9

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

Create an agent from your editor with `mm acp-create` — and its container, its sandbox and its editor settings — while `mm dockerinit` learns the `.mm` folder and an editor's reload no longer fails.

## New

### `mm acp-create`: `mm init` from your editor (#210)

`mm acp-create` (also `mm --acp-create`) asks the questions of `mm init` over the Agent Client Protocol, from Zed or any other ACP client, and writes the same file. It needs no agent file and calls no model: it only lists the model server's models, as `mm init` does. Register it once in your client:

```json
"agent_servers": {
  "mm-create": { "type": "custom", "command": "mm", "args": ["acp-create"] }
}
```

Open a project, start a thread with `mm-create` and send `/start`. The file is written in the project's directory, not where the client started `mm`.

- **The questions follow what your client can show.** A client that advertises forms (`elicitation.form`) gets a few forms, with the defaults filled in; a question whose choices depend on an earlier answer, such as the model list of the server you chose, comes in the next form. Any other client gets one question per message, with numbered choices: reply with a number or a value, `.` for the default. The choice is made from the client's capabilities, never from its name.
- **Commands:** `/start`, `/preview` (the file as it stands), `/back`, `/write` (take every default left and write), `/restart`, `/help`.
- **The rest of the set-up from the same thread:** `/dockerinit` and `/sbxinit` run `mm dockerinit` and `mm sbxinit` for the project (their flags work; existing files are kept unless you add `--overwrite`, since nothing can be asked here), and `/zedconfig` shows the Zed `agent_servers` entries for every way the project can start its agent — on your machine (`mm acp <agent file>`), in its container (`docker exec …`), in its sandbox (`sbx exec …`) — with what to start first for each.
- The flags of `mm init` fix answers in advance: `"args": ["acp-create", "--provider", "llmman", "--project", "yes"]`.
- Reloading the agent restarts the wizard: the answers are not kept, a file already written is untouched.

Tried in Zed. The form path is covered by tests with a simulated client only: no second ACP client was tried, and none that shows forms.

See [How to create an agent from your editor](../docs/en/how-to/create-an-agent-from-an-editor.md).

### `mm dockerinit` knows the `.mm` folder (#212)

Like `mm sbxinit` since v1.0.7, `mm dockerinit` now looks for `agent.yaml`, then `.mm/agent.yaml`, and names the service after the agent it finds. For a `.mm` project, `compose.yaml`:

- mounts `.mm/` **read-only** over the project, so the agent cannot change its own settings, skills or hooks;
- mounts the agent file's `sessions.dir` and `trace.dir` (when on and under `.mm/`) writable again, and `mm dockerinit` creates them if they are missing — Docker would create them as root, and the agent never runs as root;
- starts `mm tui` with no file argument: mm finds `.mm/agent.yaml` from the project.

```yaml
    volumes:
      - .:${PWD:-/workspace}
      - ./.mm:${PWD:-/workspace}/.mm:ro
      - ./.mm/sessions:${PWD:-/workspace}/.mm/sessions    # sessions.dir
```

A plain project gets the same files as before. Checked on Linux with Docker 29.9.3 and Compose v5.7.1: writing in `.mm/` is refused, writing in `.mm/sessions` and in the project works. Not checked on Docker Desktop (macOS).

See [How to run mini-me in a container](../docs/en/how-to/run-in-a-container.md).

### An editor's reload never fails (#210)

Zed's *Reload Agent* answered "Loading or resuming sessions is not supported by this agent" for every agent without `sessions.enabled` — the default of `mm init`. `mm acp` now always accepts the reload (`session/load`, `session/resume`). With saved sessions nothing changes: the conversation comes back. Without them the thread starts over, and a message in it says so and how to keep the next one (`sessions: {enabled: true}`).

### `mm sbxinit` says how to run the sandbox

After writing `sbxenv.yaml`, `mm sbxinit` now prints `Run the sandbox <name>: sbx env run --force` between the create and remove commands; the file's comments list it too.

## Documentation

- New guide: [Create an agent from your editor](../docs/en/how-to/create-an-agent-from-an-editor.md).
- The container guide has a section for a `.mm` project; the CLI reference describes `mm acp-create` and the new `--agent` lookup of `mm dockerinit`.
- The ACP reference, the configuration reference (`sessions.enabled`) and the explanation of persistent sessions describe the reload without saved sessions.

## 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).
- **`mm acp` now always advertises `loadSession` and `session/resume`.** A client that relied on their absence to know sessions were not saved will see a reload that starts the conversation over instead of an error. `session/list` still exists only with `sessions.enabled`.
- **A `compose.yaml` written by an earlier `mm dockerinit` for a `.mm` project** mounts the whole project writable and starts `mm tui agent.yaml`. Run `mm dockerinit` again and answer `yes` to replace it.