Tutorial: your first launch of Sidekicks
By the end of this tutorial, you will have written a configuration with one agent, opened Sidekicks with it, started Alice from the interface, read her log, and watched Sidekicks catch a mistake in the file and recover when you fix it.
Prerequisites
- The development tools of How to develop the application, and
make installdone once. mmon yourPATHand llmman running, with Alice's model pulled (see the first ACP exchange tutorial).- A terminal at the root of the repository.
Step 1 — Write a configuration
Type:
cat > /tmp/sidekicks-tutorial.yaml <<EOF
version: 1
agents:
- name: alice
title: Alice (assistante)
icon: "👩"
command: $PWD/scripts/agents.sh
args: [run, alice]
workspace: $PWD/agents/alice
channels:
- name: général
agents: [alice]
EOF
We now have a configuration with one agent, Alice, started through the project's script.
Step 2 — Open Sidekicks with it
Type:
SIDEKICKS_CONFIG=/tmp/sidekicks-tutorial.yaml make dev
After a minute the first time, the Sidekicks window opens. You should see, on the left, CHANNELS with # général, and AGENTS with 👩 Alice (assistante) and the word « arrêté » under it. At the bottom, the status bar says « 0 agent actif ».
Step 3 — Start Alice
Move the pointer over Alice: a ▶ button appears on the right. Click it.
You should see Alice's dot turn orange (« démarre… ») then green (« prêt »), and the status bar say « 1 agent actif ».
Step 4 — Read her log
Click Journal in the status bar. A panel opens at the bottom with Alice's lines, starting with:
mm v1.0.3 | config: …/agents/alice/agent.yaml | provider: llmman | …
[acp] initialize: client "sidekicks" protocolVersion=1 …
This is what Alice writes for whoever looks after her; Sidekicks keeps it for you.
Step 5 — Make a mistake on purpose
Click Settings in the status bar. It says « ✓ Configuration valide ». Now, in a second terminal, break the file:
sed -i.bak 's/ command:/ comand:/' /tmp/sidekicks-tutorial.yaml
Within a second, a red banner appears in the centre, and Settings shows:
ligne 3 — agents[0] : il manque la clé « command »
ligne 6 — agents[0].comand : clé inconnue « comand » ; vouliez-vous dire « command » ?
Alice is still listed: Sidekicks keeps the last valid configuration.
Step 6 — Fix it
mv /tmp/sidekicks-tutorial.yaml.bak /tmp/sidekicks-tutorial.yaml
The banner disappears and Settings shows « ✓ Configuration valide » again — no restart needed.
Step 7 — Stop
Hover Alice and click ■: her dot turns grey. Close the window: had Alice still been running, Sidekicks would have stopped her and freed her model.
What now?
You have run Sidekicks, driven an agent's life and seen how the configuration is checked. To go further:
- All the keys of the file → Reference: the configuration file
- What each state means → Reference: agent states and events
- Why agents start and stop this way → Memory and local models
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 |
|