bots-garden/mini-mepublic Fork
⑂ feature/mm-init
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. 65bdebd · on feature/mm-init · k33g · Oct 20, 2026
v0.5.0.en.md · 49 lines · 1.9 KBmarkdown
Blame HistoryOpen raw

mini-me v0.5.0

Version française

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, postToolCall and postGeneration.
  • 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), timeout and onError.
  • A stopped question is masked in the history.
  • The banner lists the hooks.

Hooks around calls to other agents (#87)

  • preAsk and postAsk, declared in the asking agent's file, with a matcher on the agent's name. They run for ask_agent, /ask… and mm --ask.
    • preAsk can deny the call, rewrite the question or the conversation sent, or add context.
    • postAsk can 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_agent shows a line.
  • In an editor, the plan tool's "unknown action" message now lists the valid actions.

Security

  • Dependency updates (golang.org/x/net 0.61.0, OpenTelemetry 1.47.0) and the toolchain pinned to go1.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 (structuredOutput with 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
# mini-me v0.5.0

*[Version française](v0.5.0.fr.md)*

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`, `postToolCall` and `postGeneration`.
- **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), `timeout` and `onError`.
- **A stopped question is masked** in the history.
- **The banner** lists the hooks.

### Hooks around calls to other agents (#87)

- **`preAsk` and `postAsk`**, declared in the asking agent's file, with a `matcher` on the agent's name. They run for `ask_agent`, `/ask…` and `mm --ask`.
  - `preAsk` can deny the call, rewrite the question or the conversation sent, or add context.
  - `postAsk` can 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_agent` shows a line.
- **In an editor**, the plan tool's "unknown action" message now lists the valid actions.

## Security

- **Dependency updates** (`golang.org/x/net` 0.61.0, OpenTelemetry 1.47.0) and the toolchain pinned to `go1.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` (`structuredOutput` with 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".