mini-me v1.0.9
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:
/dockerinitand/sbxinitrunmm dockerinitandmm sbxinitfor the project (their flags work; existing files are kept unless you add--overwrite, since nothing can be asked here), and/zedconfigshows the Zedagent_serversentries 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 initfix 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.dirandtrace.dir(when on and under.mm/) writable again, andmm dockerinitcreates them if they are missing — Docker would create them as root, and the agent never runs as root; - starts
mm tuiwith no file argument: mm finds.mm/agent.yamlfrom 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
.mmproject; the CLI reference describesmm acp-createand the new--agentlookup ofmm 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 acpnow always advertisesloadSessionandsession/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/liststill exists only withsessions.enabled.- A
compose.yamlwritten by an earliermm dockerinitfor a.mmproject mounts the whole project writable and startsmm tui agent.yaml. Runmm dockerinitagain and answeryesto 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 |
|