bots-garden/sidekickspublic Fork
⑂ v1.7.0
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/sidekicks.git
git clone ssh://git@rickub.com/bots-garden/sidekicks.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP
manage-channels.md · 86 lines · 7.3 KBmarkdown
Blame HistoryOpen raw

How to manage channels and their agents

This guide shows how to create, rename and delete channels, choose the agents in them, talk with an agent directly, and clear a conversation's history. It assumes Sidekicks runs with a configuration that has agents.

Create a channel

  1. In the Channels panel, click + New channel under the list.
  2. Type a name (1 to 64 characters, spaces and accents allowed) and press Enter. The channel opens in the centre, with no member.
  3. Invite agents (next section), or simply mention one: @alice … invites Alice before the answer — the channel says "Alice (assistant) joined the channel."

A name already used by another channel, whatever its case, is refused: the error appears under the name.

Choose the agents of a channel

  • Invite: in the channel's header, open + Invite and pick an agent.
  • Remove: click × next to an agent's name in the header. The agent's past messages stay; it no longer answers in this channel unless mentioned again.

Rename or delete a channel

Hover the channel in the list:

  • ✎ turns its name into a text box: type the new name, Enter to keep it, Escape to cancel.
  • 🗑 asks "Delete #name and its whole history?": Delete removes the channel, its members and all its messages, for good.

Talk with one agent directly

Click an agent in the Agents panel. Its direct conversation opens; the agent stays highlighted while it is shown, and a counter next to it gives the answers you have not read yet. Every message goes to that agent; @ mentions are plain text there. When the agent is removed from the configuration, its direct conversation is hidden but kept: it comes back if the agent is added again.

Clear the history of a channel or a direct conversation

To start again from an empty conversation without deleting the channel:

  1. Open the channel, or the direct conversation (click the agent in Agents).
  2. Click 🗑 (Clear the history) at the right of the conversation's header. It shows once the conversation has messages.
  3. Confirm with Erase.

Every message is erased, for good. A channel keeps its name, description and members. The agents start a new conversation: they do not remember what was erased, and their context gauge goes back to zero.

While an agent is answering, the history cannot be cleared: stop it (■) or wait for the end of its answer, then click 🗑 again.

Address the right agent

You want Type
a specific agent to answer @name your message (the list after @ filters as you type; Tab or Enter picks)
several agents to answer in turn @alice @bob compare your answers
several agents to answer at the same time /parallel @alice write a poem and @bob find a title (below)
each agent to do its own part @alice write a story about Picard, then @bob sum it up: each agent receives only the words after its name
an agent to involve another one ask it: @alice …, and ask @bob (below)
the agent you were talking with your message, without mention
an agent's command / then pick it in the list; with several agents, /agent:command

Have several agents answer at the same time

By default, the agents a message mentions answer one after the other. Start the message with /parallel to have them answer at the same time:

  1. Type / at the very start of the message and pick /parallel in the list (or type it).
  2. Mention the agents and give each one its part: /parallel @alice write a poem about the sea and @bob find a title for a book about the sea.
  3. Send. The bar above the composer shows "Alice, Bob are answering…" and both answers are written at the same time. ■ stops them all.

Use it when the agents do not need each other's answer: each one receives only its part, and does not see the other answers of the same message (it reads them with your next message). Agents that call each other with @name in their answers still answer one after the other, after the answers given together.

/parallel counts only as the first word of the message: @alice /parallel is a command for Alice. No more agents answer at the same time than limits.maxRunningAgents (the others wait for a place); with local models, keep it for agents that fit in memory together. With a single agent, or in a direct conversation, /parallel is left out and the message is sent as usual. The message you sent keeps /parallel, the agents do not receive it.

Let the agents call each other

In a channel, an agent can hand the floor to another member by mentioning it in its answer: when Alice answers "@bob knows the trains better", Bob answers right after, told that Alice addressed him (he also reads your message and Alice's answer).

  1. Put the agents in the same channel (only members can be called this way: an agent never brings a new one in).
  2. Ask one of them, e.g. @alice plan a trip to Lyon, and ask @bob for the trains. Most agents only mention another one when asked to, or when their instructions say who is in the team.
  3. To stop a chain, click ■: the agent answering stops, and the others do not answer.

An agent does not call itself, an agent that answers your message anyway is not asked twice, a mention inside code does not count, and the answer to a /command calls nobody. A message is handed from agent to agent 3 times at most; then the channel says the chain stops, and you can mention the next agent yourself. Change the limit with limits.maxAgentHandoffs in the configuration (0 turns it off). In a direct conversation, mentions stay plain text.

Variants

  • Leave a message half written: switch to another channel or conversation; when you come back, the text you were writing is still there, until you send it. Drafts are kept while Sidekicks runs, not after quitting.
  • Fold the lists of the left panel: click the heading AGENTS or CHANNELS to fold the list under it, again to unfold it. Folded, the heading still shows how many agents or channels there are and, in blue, the answers you have not read yet. Sidekicks remembers it at the next launch. ⌘N unfolds the channels to create one; Add an agent stays in the command palette (⌘K) and on ⇧⌘N.
  • Channels from the configuration file: channels declared under channels: are created at startup if they do not exist yet, with their agents; afterwards they are ordinary channels. Removing them from the file deletes nothing (configuration reference).
  • Start again from an empty history, for every channel at once: use the Danger zone (Reset Sidekicks), or quit Sidekicks and delete the folder sidekicks/data/<…> of your configuration (its location is in the reference). The channels declared in the file come back at the next launch, empty.
  • "History unavailable" banner: another Sidekicks has the same configuration file open. This one keeps working, but forgets everything when it quits; close the other one and relaunch.

See also

 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
# How to manage channels and their agents

This guide shows how to create, rename and delete channels, choose the agents in them, talk with an agent directly, and clear a conversation's history. It assumes Sidekicks runs with a configuration that has agents.

## Create a channel

1. In the **Channels** panel, click **+ New channel** under the list.
2. Type a name (1 to 64 characters, spaces and accents allowed) and press Enter. The channel opens in the centre, with no member.
3. Invite agents (next section), or simply mention one: `@alice …` invites Alice before the answer — the channel says "Alice (assistant) joined the channel."

A name already used by another channel, whatever its case, is refused: the error appears under the name.

## Choose the agents of a channel

- **Invite**: in the channel's header, open **+ Invite** and pick an agent.
- **Remove**: click **×** next to an agent's name in the header. The agent's past messages stay; it no longer answers in this channel unless mentioned again.

## Rename or delete a channel

Hover the channel in the list:

- **✎** turns its name into a text box: type the new name, Enter to keep it, Escape to cancel.
- **🗑** asks "Delete #name and its whole history?": **Delete** removes the channel, its members and all its messages, for good.

## Talk with one agent directly

Click an agent in the **Agents** panel. Its direct conversation opens; the agent stays highlighted while it is shown, and a counter next to it gives the answers you have not read yet. Every message goes to that agent; `@` mentions are plain text there. When the agent is removed from the configuration, its direct conversation is hidden but kept: it comes back if the agent is added again.

## Clear the history of a channel or a direct conversation

To start again from an empty conversation without deleting the channel:

1. Open the channel, or the direct conversation (click the agent in **Agents**).
2. Click **🗑** (*Clear the history*) at the right of the conversation's header. It shows once the conversation has messages.
3. Confirm with **Erase**.

Every message is erased, for good. A channel keeps its name, description and members. The agents start a new conversation: they do not remember what was erased, and their context gauge goes back to zero.

While an agent is answering, the history cannot be cleared: stop it (**■**) or wait for the end of its answer, then click **🗑** again.

## Address the right agent

| You want | Type |
| --- | --- |
| a specific agent to answer | `@name your message` (the list after `@` filters as you type; Tab or Enter picks) |
| several agents to answer in turn | `@alice @bob compare your answers` |
| several agents to answer at the same time | `/parallel @alice write a poem and @bob find a title` ([below](#have-several-agents-answer-at-the-same-time)) |
| each agent to do its own part | `@alice write a story about Picard, then @bob sum it up`: each agent receives only the words after its name |
| an agent to involve another one | ask it: `@alice …, and ask @bob` ([below](#let-the-agents-call-each-other)) |
| the agent you were talking with | your message, without mention |
| an agent's command | `/` then pick it in the list; with several agents, `/agent:command` |

## Have several agents answer at the same time

By default, the agents a message mentions answer one after the other. Start the message with `/parallel` to have them answer at the same time:

1. Type `/` at the very start of the message and pick **/parallel** in the list (or type it).
2. Mention the agents and give each one its part: `/parallel @alice write a poem about the sea and @bob find a title for a book about the sea`.
3. Send. The bar above the composer shows "Alice, Bob are answering…" and both answers are written at the same time. **■** stops them all.

Use it when the agents do not need each other's answer: each one receives only its part, and does not see the other answers of the same message (it reads them with your next message). Agents that call each other with `@name` in their answers still answer one after the other, after the answers given together.

`/parallel` counts only as the **first word** of the message: `@alice /parallel` is a command for Alice. No more agents answer at the same time than `limits.maxRunningAgents` (the others wait for a place); with local models, keep it for agents that fit in memory together. With a single agent, or in a direct conversation, `/parallel` is left out and the message is sent as usual. The message you sent keeps `/parallel`, the agents do not receive it.

## Let the agents call each other

In a channel, an agent can hand the floor to another member by mentioning it in its answer: when Alice answers "@bob knows the trains better", Bob answers right after, told that Alice addressed him (he also reads your message and Alice's answer).

1. Put the agents in the same channel (only **members** can be called this way: an agent never brings a new one in).
2. Ask one of them, e.g. `@alice plan a trip to Lyon, and ask @bob for the trains`. Most agents only mention another one when asked to, or when their instructions say who is in the team.
3. To stop a chain, click **■**: the agent answering stops, and the others do not answer.

An agent does not call itself, an agent that answers your message anyway is not asked twice, a mention inside code does not count, and the answer to a `/command` calls nobody. A message is handed from agent to agent **3 times at most**; then the channel says the chain stops, and you can mention the next agent yourself. Change the limit with `limits.maxAgentHandoffs` in the [configuration](../reference/configuration.md#limits) (`0` turns it off). In a direct conversation, mentions stay plain text.

## Variants

- **Leave a message half written**: switch to another channel or conversation; when you come back, the text you were writing is still there, until you send it. Drafts are kept while Sidekicks runs, not after quitting.
- **Fold the lists of the left panel**: click the heading **AGENTS** or **CHANNELS** to fold the list under it, again to unfold it. Folded, the heading still shows how many agents or channels there are and, in blue, the answers you have not read yet. Sidekicks remembers it at the next launch. ⌘N unfolds the channels to create one; **Add an agent** stays in the command palette (⌘K) and on ⇧⌘N.
- **Channels from the configuration file**: channels declared under `channels:` are created at startup if they do not exist yet, with their agents; afterwards they are ordinary channels. Removing them from the file deletes nothing ([configuration reference](../reference/configuration.md)).
- **Start again from an empty history, for every channel at once**: use the **Danger zone** ([Reset Sidekicks](reset-sidekicks.md)), or quit Sidekicks and delete the folder `sidekicks/data/<…>` of your configuration (its location is in the [reference](../reference/agents-and-events.md#history)). The channels declared in the file come back at the next launch, empty.
- **"History unavailable" banner**: another Sidekicks has the same configuration file open. This one keeps working, but forgets everything when it quits; close the other one and relaunch.

## See also

- [Channels and what each agent knows](../explanation/channels-and-context.md)
- [Reference: agents, channels and events](../reference/agents-and-events.md)