mini-me v0.5.0
Hooks: your own scripts around generations, tool calls and calls to other agents.
New
Hooks (#36)
hooks:runs your own commands at four moments:preGeneration,preToolCall,postToolCallandpostGeneration.- What a hook can do:
- stop a question;
- add context for the model;
- deny or rewrite a tool call;
- add text after a tool's output;
- observe the end of a turn.
- Protocol: one JSON object on stdin, an optional JSON object on stdout.
- Per hook:
matcher(a regular expression on the tool name),timeoutandonError. - A stopped question is masked in the history.
- The banner lists the hooks.
Hooks around calls to other agents (#87)
preAskandpostAsk, declared in the asking agent's file, with amatcheron the agent's name. They run forask_agent,/ask…andmm --ask.preAskcan deny the call, rewrite the question or the conversation sent, or add context.postAskcan replace the answer or add context after it.
Fixed
- Hook input JSON is no longer HTML-escaped:
&&reached hooks as&&, which hid it from a plain text search. - A call denied by a hook now names the command in its title. In the line mode, a denied
ask_agentshows a line. - In an editor, the plan tool's "unknown action" message now lists the valid actions.
Security
- Dependency updates (
golang.org/x/net0.61.0, OpenTelemetry 1.47.0) and the toolchain pinned togo1.26.9, to clear known CVEs reported by osv-scanner.
Demos
hooks(Node.js hooks);hooks-ask;dungeon(a role-playing team on Qwen3.5 4B);coding-helpers(Go and Rust documentation);structured-output-pizza(structuredOutputwith Go types).
Docs
- New hooks pages (EN + FR): reference, explanation, and the how-to guides "Guard the agent with hooks" and "Control agent calls with hooks".
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 |
|