How to test milestone Initialize on macOS
This guide checks on a Mac (Apple Silicon) everything milestone Initialize produced: the automated tests, the test-agent tooling, the ACP exchange with the real agents, the interface prototype and the wireframes. It assumes you are at ease in a terminal and that the repository is cloned, on branch feature/initialize. Allow 30 to 45 minutes, model downloads included.
Each part ends with checkboxes; part 5 is the only one still open in the tickets (issue #3).
0. Prepare the machine
Install what is missing (check first with go version, node --version, jq --version):
xcode-select --install # Xcode command line tools (compiler, codesign)
brew install go node jq # Go ≥ 1.26, Node ≥ 20
go install github.com/wailsapp/wails/v3/cmd/wails3@v3.0.0
wails3 doctor # must end without errors
If wails3 is not found, add $(go env GOPATH)/bin to your PATH.
Install mm v1.0.3 (the mm-1.0.3-darwin-arm64 asset of the release):
cd ~/Downloads
shasum -a 256 mm-1.0.3-darwin-arm64
# expected: 601351f273ec35d8a3b98c44d805771777457c878336357bbaa38c84e58d5726
chmod +x mm-1.0.3-darwin-arm64
xattr -d com.apple.quarantine mm-1.0.3-darwin-arm64 # otherwise Gatekeeper blocks it
sudo mv mm-1.0.3-darwin-arm64 /usr/local/bin/mm
mm -version # v1.0.3
Start llmman and pull the test agents' models:
llmman pull hf.co/unsloth/gemma-4-E2B-it-GGUF:Q4_K_M # Alice
llmman pull hf.co/unsloth/Qwen3.5-2B-GGUF:Q4_K_M # Bob and Riker
llmman pull hf.co/unsloth/gemma-4-E4B-it-GGUF:Q4_K_M # Garfield
curl -s http://127.0.0.1:17434/api/ps # {"models":[]}: llmman answers, nothing loaded
Open Activity Monitor, Memory tab, and keep an eye on "Memory Pressure" throughout the guide.
1. The automated tests
At the root of the repository:
make test
Expected: an ok … sidekicks/schema line, then 14 passed, 0 failed. These tests use no agent, no model and no network.
-
make testpasses on macOS.
2. The test-agent tooling (#7)
The two-agents limit. Open three terminal tabs at the root of the repository:
# tab 1
scripts/agents.sh run alice
# tab 2
scripts/agents.sh run bob
# tab 3
scripts/agents.sh run riker
Tabs 1 and 2 wait (the agent expects JSON-RPC on stdin; this is normal). Tab 3 must answer at once:
agents.sh: 2 agent(s) already running, the limit is 2:
alice.<pid>
bob.<pid>
In tab 3, type scripts/agents.sh ps: Alice and Bob are listed. Stop Alice and Bob with Ctrl+C in their tabs, then run scripts/agents.sh ps again: both lists are empty.
Unloading. These agents received no message, so no model was loaded: ps shows no model and run printed not loaded: …. This is expected — the script never loads a model in order to unload it.
- The third agent is refused.
- After Ctrl+C,
pslists no agent.
3. Talk ACP with the real agents (#2)
Run the commands of this part from spikes/acp-trace:
cd spikes/acp-trace
Alice — conversation and Markdown:
go run . -agent alice -out /tmp/alice.jsonl \
-prompt "Bonjour, qui es-tu ? Réponds en une phrase." \
-prompt "Écris un bloc de code Go qui affiche hello."
Expected: == protocol version: 1, [commands] 3 available, two answers, == stop reason: end_turn twice, then unloaded: hf.co/unsloth/gemma-4-E2B-it-GGUF:Q4_K_M.
Riker — tools, permission granted:
go run . -agent riker -permission allow -out /tmp/riker-allow.jsonl \
-prompt "Utilise l'outil bash pour exécuter la commande ls dans le dossier courant, puis dis-moi combien d'entrées il y a."
Expected: a line == permission requested for "call_1", options: [allow_once allow] [allow_always allow_always] [reject_once reject] [reject_always never], then the output of ls (agent.yaml) and an answer such as "Il y a 1 entrée" — the wording varies, the model chooses its words.
Riker — permission refused (takes 1 to 3 minutes):
go run . -agent riker -permission reject -out /tmp/riker-reject.jsonl \
-prompt "Utilise l'outil write_file pour créer le fichier notes.txt contenant le mot hello."
Expected: Riker retries in a loop, then exceeded maximum tool call iterations (40) and exit status 1. This is the behaviour observed in the sandbox and documented in ADR 0001, not a problem with this guide. Check that no file was created: ls ../../agents/riker shows only agent.yaml.
Garfield — a skill through a slash command:
go run . -agent garfield -out /tmp/garfield.jsonl -prompt "/idioms Il pleut des cordes."
Expected: [commands] 7 available, a line [tool read] read_skill: idioms, then a translation such as "It's raining cats and dogs.".
Garfield — cancellation:
go run . -agent garfield -cancel-after 4s -out /tmp/garfield-cancel.jsonl \
-prompt "Traduis en anglais, en trois paragraphes détaillés : Sidekicks est une application de bureau pour converser avec des agents d'IA."
Expected: == sending session/cancel then == stop reason: cancelled.
After each command, ../../scripts/agents.sh ps must list no agent and no model.
- Alice answers, with a Go code block.
- Riker asks for permission; granted, it runs
ls; refused, it loops then stops with an error without creating a file. -
/idiomsruns Garfield's skill. - Cancellation gives
stop reason: cancelled. - No model stays loaded at the end; memory pressure stayed green.
4. The interface prototype, in development mode (#3)
cd ../wails-ui
cd frontend && npm install && cd ..
wails3 dev
The first run compiles Go and the frontend (one to two minutes). A "Sidekicks — UI spike" window opens. Check:
- Panels: drag both vertical separators and the horizontal one. Quit (⌘Q), run
wails3 devagain: the layout is restored. - Streaming: click Simuler (50 chunks/s). The answer appears progressively, the Go block is coloured while it is written, the table is rendered, and the quote shows
<img src=x onerror="alert(1)">as text (no alert). The counter shows about219 chunks · 4500 ms. - Throughput: click Simuler (500 chunks/s). The interface stays fluid; the counter shows under one second.
- Terminal: click in the black panel, type
ls, thentop; enlarge the bottom panel whiletopruns: the display follows. Leavetopwithq. - YAML editor: the right panel colours the YAML; typing works.
- Theme: System Settings → Appearance → switch Light / Dark: the conversation, the code and the dock follow (the YAML editor keeps the theme it started with — a known limit of the prototype).
- macOS window: the title bar is integrated (red/orange/green buttons over the application's background) and the left dock starts below those buttons: "CHANNELS" is not covered.
- Points 1 to 7 are as described.
5. The prototype packaged as an application (#3)
wails3 package
open bin/wails-ui.app
wails3 package produces bin/wails-ui.app, signed ad hoc. Quickly repeat points 2 and 4 of the previous part in the application opened from the Finder.
-
bin/wails-ui.appopens and works as in development mode.
If both parts are as described, ADR 0002 is confirmed: close the last task of issue #3 ("Lancer le prototype sur macOS"), set the issue to closed, then set milestone Initialize to closed in .tickets/milestones.yaml. Otherwise, describe what differs in a comment on issue #3 (a screenshot helps).
6. The wireframes (#6)
Open docs/design/wireframes.drawio with the VS Code Draw.io Integration extension (recommended by the repository) or on app.diagrams.net. Its six pages are the six screens; the PNG files of the same folder are their rendering.
The acceptance criterion of issue #6 to validate: the path "I create a channel, invite Alice, ask her a question" reads from screen to screen (screens 6, 1, 3 and 2).
- The file opens with its 6 pages.
- The path is understandable; otherwise, comment on issue #6.
Troubleshooting
| Symptom | Likely cause | Fix |
|---|---|---|
"mm" cannot be opened |
Gatekeeper quarantine | xattr -d com.apple.quarantine /usr/local/bin/mm |
agents.sh: llmman does not answer… |
llmman stopped or on another port | start llmman, or export LLMMAN_URL=http://127.0.0.1:<port> |
agents.sh: could not lock … |
an agents.sh was killed abruptly |
rm -rf .run/agents/.lock |
wails3: command not found |
GOPATH/bin not on PATH |
export PATH="$(go env GOPATH)/bin:$PATH" |
wails3 dev waits 60 s then fails |
npm dependencies missing | cd frontend && npm install |
| Memory pressure turns red | a model stayed loaded | scripts/agents.sh unload --all |
See also
- How to run a test agent · How to run the tests
- Reference: scripts/agents.sh
- Why these choices: Why ACP · The interface stack
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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
|