How to test milestone M4 on macOS
This guide checks on a Mac what milestone M4 (Agents' workspace) produced: an agent's files with an editor, changes followed live, deletion to the trash, and a terminal in the agent's folder — locally, and in a Docker container if Docker Desktop is installed. It assumes the Mac was prepared for milestone M3 and the repository is on the M4 branch. Allow 30 minutes.
Keep a macOS Terminal window open at the root of the repository.
0. Prepare
make install # new frontend dependencies (xterm.js, CodeMirror languages) and creack/pty
make check # expected: 0 issues, Tests 62 passed, 15 passed, licence headers ok
make dev
make check runs the workspace contract tests in a container only if Docker and the alpine:3.22 image are present (docker pull alpine:3.22); otherwise they are skipped, which is fine.
-
make checkpasses.
1. The agent's view (#27)
- In Agents, hover Garfield: a 📂 button appears next to ▶. Click it.
- The centre shows
🐮 Garfield (translator), its state,local · …/agents/garfield,in #translations, and 💬 Conversation, ▶ Start; tabs Files, Terminal, Log. Garfield's row is highlighted. - ▶ Start: the state turns ready; Log shows Garfield's
mm v1.0.3 | …line. ■ Stop. - 💬 Conversation opens the direct conversation; 📂 brings the workspace back.
- Points 1 to 4 are as described.
2. Files and the editor (#29, #30)
- Files lists
skills,agent.yaml,AGENTS.md,README.md(folders first). Clickskills: it opens;idioms,styles… inside. - Tick Show hidden files: hidden entries appear (for instance
.mmif Garfield already answered). Untick. - Click
AGENTS.md: Markdown in the editor. Add a word: ● modified; Revert brings the text back. Add the word again, ⌘S: Saved. Remove the word and save again (leave the file as it was). - Click
agent.yaml: YAML colours.
- Points 1 to 4 are as described.
3. Changes from outside, and conflicts
- In the macOS Terminal:
echo hello > agents/garfield/notes.md— within a secondnotes.mdappears in the tree. - Open
notes.md, typemy draftin the editor (do not save). In the macOS Terminal:echo from the agent > agents/garfield/notes.md. - A banner: "Garfield (translator) changed this file while you were editing it." — Take their version shows
from the agent.
- Points 1 to 3 are as described.
4. Create and delete
- Select
skills, click + New file, typetest.md, Enter:skills/test.mdopens, empty. - Hover
test.md, click 🗑: "Delete test.md? It goes to the trash." — Delete. Then deletenotes.mdthe same way. - Open the Trash in the Finder:
test.mdandnotes.mdare there (you may empty it).
- Points 1 to 3 are as described.
5. The terminal (#31)
- Terminal: a shell in
…/agents/garfield. Typels skillsthentput cols. - Make the window wider and run
tput colsagain: the number grows. - Run
vim AGENTS.md(ortop): full screen; quit (:q/q). - Run
sleep 777 &, click Files then Terminal: the same shell, with your history. - Click # general (leaving the agent's view). In the macOS Terminal:
ps aux | grep '[s]leep 777'prints nothing. - Back in Garfield's Terminal, type
exit: "The shell has ended." — Open a new shell opens another.
- Points 1 to 6 are as described.
6. An agent in a container (optional, Docker Desktop)
docker run -d --rm --init --name sidekicks-box -v "$PWD/agents/alice:/workspace" alpine:3.22 sleep 3600
- In Settings, add to
agents:(and save):- name: boxed title: Boxed (container) icon: "📦" command: /usr/bin/false runtime: type: container container: sidekicks-box workspacePath: /workspace - 📂 on Boxed:
container sidekicks-box · /workspace; the tree shows Alice's files (the folder is mounted). - Terminal:
cat /etc/alpine-release; stty size— an Alpine shell, the right size. Runsleep 888 &, then click # general.docker exec sidekicks-box psshows noshand nosleep 888. - A deletion in Boxed asks "Delete … for good? A container has no trash." — Cancel.
- Remove the
boxedagent from Settings, thendocker rm -f sidekicks-box.
- Points 1 to 5 are as described (or Docker is not installed).
7. An agent in an sbx sandbox (#39, optional)
With the sandbox milo-sbx running (it mounts agents/milo):
- In Settings, add to
agents:(and save):- name: milo title: Milo (sbx) icon: "🦊" command: sbx args: [exec, -i, milo-sbx, mm, -acp] workspace: /Users/k33g/kDrive/Rickub/bots-garden/sidekicks/agents/milo/workspace runtime: type: sbx sandbox: milo-sbx - 📂 on Milo:
sandbox milo-sbx · …/agents/milo/workspace; the tree shows that folder (each action takes a second or two). - Create
test.md, write a line, ⌘S; in the macOS Terminal,cat agents/milo/workspace/test.mdshows it. Delete it: "Delete test.md for good? There is no trash in a container or a sandbox." - Terminal:
uname -n; pwd; stty size—milo-sbx, the workspace folder, the panel's size. Runsleep 999 &, click # general, thensbx exec milo-sbx sh -c 'ps ax | grep "[s]leep 999"'prints nothing. - 💬 Conversation: write to Milo — mm answers from inside the sandbox.
- Points 1 to 5 are as described.
If something differs
| Symptom | Likely cause | What to do |
|---|---|---|
| "Cannot open a terminal" | $SHELL points to a shell that does not exist |
check echo $SHELL |
| Boxed: "container sidekicks-box: …" | the container is not running, or Docker Desktop is stopped | docker ps |
| A deleted file is not in the Trash | the repository is on another disk than your home folder | expected: the deletion is then final |
Close the milestone
If everything matches, M4 is confirmed: close issue #39 (the others are closed) and the milestone M4 · Workspace des agents (or ask the assistant). Otherwise, comment the issue concerned with what differs.
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 |
|