bots-garden/sidekickspublic Fork
⑂ 2bea9ed
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

#91 list_channels ne liste que les channels, pas les conversations directes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
k33g committed 2026-11-11T01:17:35+01:00 Browse files
2bea9ed parent: 0d0cb37
modified docs/en/how-to/use-sidekicks-tools-from-an-agent.md +1 -1
@@ -43,7 +43,7 @@ A model may answer a question it was already asked from its earlier answer inste
4343
4444 then save. The tools are read when an agent starts: a running agent whose tools change shows "restart to apply changes"; restart it. The editor suggests the names after `- `. An unknown name is shown as a warning.
4545 - **The agent says it has no such tool**: open its log (**Log** in the status bar). At start, Sidekicks writes `sidekicks: tools offered (meta): about_sidekicks, current_channel, …`, then mm writes `[acp] client tools (meta): client_…` with the tools it took. A tool missing from the first line is left out by `agentTools`; from the second only, mm refused it (its stderr says why). If an older log lacks it, the agent was started before the change: restart it. If the log shows it and the agent still denies it, the model overlooked it: name the tool in its `system:` instructions.
46-- **Keep an agent to its own channels**: `list_channels` and `search_messages` read every channel and direct conversation, not only the agent's. Leave them out of `offer` if that is not wanted.
46+- **Keep an agent to its own channels**: `list_channels` lists every channel (the direct conversations are not listed), and `search_messages` reads every channel and direct conversation (`channel: @alice`), not only the agent's. Leave them out of `offer` if that is not wanted.
4747
4848 - **`discovery: request`**: Sidekicks reads the agent's file (the one after `--config`) to know it, announces the tools only, and gives the list each time the agent opens a session. The file is read on this computer: an agent in a sandbox or a container must have it at the same path, which the assistant's sbx and Docker variants already require.
4949 - **`permissions: ask`**, or `auto` without `yolo: true`: each call asks the user first, with the usual permission card (`client: <name>`).
@@ -43,7 +43,7 @@ A model may answer a question it was already asked from its earlier answer inste
43 43
44 then save. The tools are read when an agent starts: a running agent whose tools change shows "restart to apply changes"; restart it. The editor suggests the names after `- `. An unknown name is shown as a warning.44 then save. The tools are read when an agent starts: a running agent whose tools change shows "restart to apply changes"; restart it. The editor suggests the names after `- `. An unknown name is shown as a warning.
45 - **The agent says it has no such tool**: open its log (**Log** in the status bar). At start, Sidekicks writes `sidekicks: tools offered (meta): about_sidekicks, current_channel, …`, then mm writes `[acp] client tools (meta): client_…` with the tools it took. A tool missing from the first line is left out by `agentTools`; from the second only, mm refused it (its stderr says why). If an older log lacks it, the agent was started before the change: restart it. If the log shows it and the agent still denies it, the model overlooked it: name the tool in its `system:` instructions.45 - **The agent says it has no such tool**: open its log (**Log** in the status bar). At start, Sidekicks writes `sidekicks: tools offered (meta): about_sidekicks, current_channel, …`, then mm writes `[acp] client tools (meta): client_…` with the tools it took. A tool missing from the first line is left out by `agentTools`; from the second only, mm refused it (its stderr says why). If an older log lacks it, the agent was started before the change: restart it. If the log shows it and the agent still denies it, the model overlooked it: name the tool in its `system:` instructions.
46-- **Keep an agent to its own channels**: `list_channels` and `search_messages` read every channel and direct conversation, not only the agent's. Leave them out of `offer` if that is not wanted.46+- **Keep an agent to its own channels**: `list_channels` lists every channel (the direct conversations are not listed), and `search_messages` reads every channel and direct conversation (`channel: @alice`), not only the agent's. Leave them out of `offer` if that is not wanted.
47 47
48 - **`discovery: request`**: Sidekicks reads the agent's file (the one after `--config`) to know it, announces the tools only, and gives the list each time the agent opens a session. The file is read on this computer: an agent in a sandbox or a container must have it at the same path, which the assistant's sbx and Docker variants already require.48 - **`discovery: request`**: Sidekicks reads the agent's file (the one after `--config`) to know it, announces the tools only, and gives the list each time the agent opens a session. The file is read on this computer: an agent in a sandbox or a container must have it at the same path, which the assistant's sbx and Docker variants already require.
49 - **`permissions: ask`**, or `auto` without `yolo: true`: each call asks the user first, with the usual permission card (`client: <name>`).49 - **`permissions: ask`**, or `auto` without `yolo: true`: each call asks the user first, with the usual permission card (`client: <name>`).
modified docs/en/reference/agents-and-events.md +2 -2
@@ -243,9 +243,9 @@ Issues #90 and #91. Sidekicks offers every agent six tools, as [`agentTools`](co
243243 | --- | --- | --- |
244244 | `memory_pressure` (`client_memory_pressure`) | `_com.rickub.sidekicks/system/memory` | `Memory pressure: warning (yellow). Used: 24.0 GB of 32.0 GB (75 %).`, as the **Log** panel shows it ([Watch the memory pressure](../how-to/watch-the-memory-pressure.md)); `The memory cannot be measured on this computer.` where it cannot be |
245245 | `about_sidekicks` (`client_about_sidekicks`) | `_com.rickub.sidekicks/about` | Sidekicks' version (`info.version` of `build/config.yml`, `dev` for a development build), the system and architecture, what Sidekicks is, the agent's name in it, the releases page |
246-| `list_channels` (`client_list_channels`) | `_com.rickub.sidekicks/channels/list` | Every channel and direct conversation, oldest first: `#name: description. Members: @a (you), @b. 12 messages, the last on 2026-11-10 14:05.`, or `@alice (direct conversation between the user and @alice)` |
246+| `list_channels` (`client_list_channels`) | `_com.rickub.sidekicks/channels/list` | Every channel, oldest first, without the direct conversations: `#name: description. Members: @a (you), @b. 12 messages, the last on 2026-11-10 14:05.` |
247247 | `list_agents` (`client_list_agents`) | `_com.rickub.sidekicks/agents/list` | Every agent of the configuration: `@name (you), title: description. Runs on the user's computer` (or `in a Docker container`, `in an sbx sandbox`) `; ready.` (its state: `stopped`, `starting`, `ready`, `busy`, `error`) |
248-| `search_messages` (`client_search_messages`) | `_com.rickub.sidekicks/messages/search` | The user and agent messages of a channel that contain `query`, case and accents ignored, the most recent first: `- 2026-11-10 14:05, @alice: …excerpt around the match…` (80 characters on each side). Parameters: `query` (required), `channel` (`general`, `#general`, or `@alice` for a direct conversation; default: the channel of the call's session), `limit` (default 10, at most 50). The whole stored history is read, not only the messages shown. An unknown channel is an error that lists the channels |
248+| `search_messages` (`client_search_messages`) | `_com.rickub.sidekicks/messages/search` | The user and agent messages of a channel that contain `query`, case and accents ignored, the most recent first: `- 2026-11-10 14:05, @alice: …excerpt around the match…` (80 characters on each side). Parameters: `query` (required), `channel` (`general`, `#general`, or `@alice` for a direct conversation; default: the channel of the call's session), `limit` (default 10, at most 50). The whole stored history is read, not only the messages shown. An unknown channel is an error that lists the channels (a direct conversation is searched with `@agent`, it is not listed) |
249249 | `current_channel` (`client_current_channel`) | `_com.rickub.sidekicks/channel/current` | `Channel #<name>.`, its description and its members (`you (@agent), @other, and the user.`), or `A direct conversation between the user and you (<agent>)…`. The channel is the one whose session (`_meta["org.mini-me/sessionId"]` of the call) the agent holds; a session of no channel is an error |
250250
251251 Only `search_messages` takes parameters; its `inputSchema` says `query` is required. `list_channels` and `search_messages` read **every** channel, not only the ones the agent is a member of (it already reads those): leave them out of `agentTools.offer` when that is not wanted. A tool left out, or every tool with `enabled: false`, is not announced, and its method answers `-32601`. The protocol:
@@ -243,9 +243,9 @@ Issues #90 and #91. Sidekicks offers every agent six tools, as [`agentTools`](co
243 | --- | --- | --- |243 | --- | --- | --- |
244 | `memory_pressure` (`client_memory_pressure`) | `_com.rickub.sidekicks/system/memory` | `Memory pressure: warning (yellow). Used: 24.0 GB of 32.0 GB (75 %).`, as the **Log** panel shows it ([Watch the memory pressure](../how-to/watch-the-memory-pressure.md)); `The memory cannot be measured on this computer.` where it cannot be |244 | `memory_pressure` (`client_memory_pressure`) | `_com.rickub.sidekicks/system/memory` | `Memory pressure: warning (yellow). Used: 24.0 GB of 32.0 GB (75 %).`, as the **Log** panel shows it ([Watch the memory pressure](../how-to/watch-the-memory-pressure.md)); `The memory cannot be measured on this computer.` where it cannot be |
245 | `about_sidekicks` (`client_about_sidekicks`) | `_com.rickub.sidekicks/about` | Sidekicks' version (`info.version` of `build/config.yml`, `dev` for a development build), the system and architecture, what Sidekicks is, the agent's name in it, the releases page |245 | `about_sidekicks` (`client_about_sidekicks`) | `_com.rickub.sidekicks/about` | Sidekicks' version (`info.version` of `build/config.yml`, `dev` for a development build), the system and architecture, what Sidekicks is, the agent's name in it, the releases page |
246-| `list_channels` (`client_list_channels`) | `_com.rickub.sidekicks/channels/list` | Every channel and direct conversation, oldest first: `#name: description. Members: @a (you), @b. 12 messages, the last on 2026-11-10 14:05.`, or `@alice (direct conversation between the user and @alice)` |246+| `list_channels` (`client_list_channels`) | `_com.rickub.sidekicks/channels/list` | Every channel, oldest first, without the direct conversations: `#name: description. Members: @a (you), @b. 12 messages, the last on 2026-11-10 14:05.` |
247 | `list_agents` (`client_list_agents`) | `_com.rickub.sidekicks/agents/list` | Every agent of the configuration: `@name (you), title: description. Runs on the user's computer` (or `in a Docker container`, `in an sbx sandbox`) `; ready.` (its state: `stopped`, `starting`, `ready`, `busy`, `error`) |247 | `list_agents` (`client_list_agents`) | `_com.rickub.sidekicks/agents/list` | Every agent of the configuration: `@name (you), title: description. Runs on the user's computer` (or `in a Docker container`, `in an sbx sandbox`) `; ready.` (its state: `stopped`, `starting`, `ready`, `busy`, `error`) |
248-| `search_messages` (`client_search_messages`) | `_com.rickub.sidekicks/messages/search` | The user and agent messages of a channel that contain `query`, case and accents ignored, the most recent first: `- 2026-11-10 14:05, @alice: …excerpt around the match…` (80 characters on each side). Parameters: `query` (required), `channel` (`general`, `#general`, or `@alice` for a direct conversation; default: the channel of the call's session), `limit` (default 10, at most 50). The whole stored history is read, not only the messages shown. An unknown channel is an error that lists the channels |248+| `search_messages` (`client_search_messages`) | `_com.rickub.sidekicks/messages/search` | The user and agent messages of a channel that contain `query`, case and accents ignored, the most recent first: `- 2026-11-10 14:05, @alice: …excerpt around the match…` (80 characters on each side). Parameters: `query` (required), `channel` (`general`, `#general`, or `@alice` for a direct conversation; default: the channel of the call's session), `limit` (default 10, at most 50). The whole stored history is read, not only the messages shown. An unknown channel is an error that lists the channels (a direct conversation is searched with `@agent`, it is not listed) |
249 | `current_channel` (`client_current_channel`) | `_com.rickub.sidekicks/channel/current` | `Channel #<name>.`, its description and its members (`you (@agent), @other, and the user.`), or `A direct conversation between the user and you (<agent>)…`. The channel is the one whose session (`_meta["org.mini-me/sessionId"]` of the call) the agent holds; a session of no channel is an error |249 | `current_channel` (`client_current_channel`) | `_com.rickub.sidekicks/channel/current` | `Channel #<name>.`, its description and its members (`you (@agent), @other, and the user.`), or `A direct conversation between the user and you (<agent>)…`. The channel is the one whose session (`_meta["org.mini-me/sessionId"]` of the call) the agent holds; a session of no channel is an error |
250 250
251 Only `search_messages` takes parameters; its `inputSchema` says `query` is required. `list_channels` and `search_messages` read **every** channel, not only the ones the agent is a member of (it already reads those): leave them out of `agentTools.offer` when that is not wanted. A tool left out, or every tool with `enabled: false`, is not announced, and its method answers `-32601`. The protocol:251 Only `search_messages` takes parameters; its `inputSchema` says `query` is required. `list_channels` and `search_messages` read **every** channel, not only the ones the agent is a member of (it already reads those): leave them out of `agentTools.offer` when that is not wanted. A tool left out, or every tool with `enabled: false`, is not announced, and its method answers `-32601`. The protocol:
modified docs/en/reference/configuration.md +1 -1
@@ -68,7 +68,7 @@ The tools Sidekicks offers the agents that can discover them: today, mini-me age
6868 | `enabled` | boolean | `true` | `false`: no tool is offered; an agent that calls one anyway gets "Method not found". |
6969 | `offer` | list of tool names | all | Only these tools are offered. The names: `memory_pressure`, `about_sidekicks`, `current_channel`, `list_channels`, `list_agents`, `search_messages` ([what each returns](agents-and-events.md#tools-offered-to-the-agents)). An unknown name is a warning; an empty list offers none. |
7070
71-`list_channels` and `search_messages` read **every** channel and direct conversation, not only those of the agent: leave them out of `offer` to keep an agent to its own channels.
71+`list_channels` lists **every** channel (not the direct conversations) and `search_messages` reads every channel and direct conversation, not only those of the agent: leave them out of `offer` to keep an agent to its own channels.
7272
7373 ```yaml
7474 agentTools:
@@ -68,7 +68,7 @@ The tools Sidekicks offers the agents that can discover them: today, mini-me age
68 | `enabled` | boolean | `true` | `false`: no tool is offered; an agent that calls one anyway gets "Method not found". |68 | `enabled` | boolean | `true` | `false`: no tool is offered; an agent that calls one anyway gets "Method not found". |
69 | `offer` | list of tool names | all | Only these tools are offered. The names: `memory_pressure`, `about_sidekicks`, `current_channel`, `list_channels`, `list_agents`, `search_messages` ([what each returns](agents-and-events.md#tools-offered-to-the-agents)). An unknown name is a warning; an empty list offers none. |69 | `offer` | list of tool names | all | Only these tools are offered. The names: `memory_pressure`, `about_sidekicks`, `current_channel`, `list_channels`, `list_agents`, `search_messages` ([what each returns](agents-and-events.md#tools-offered-to-the-agents)). An unknown name is a warning; an empty list offers none. |
70 70
71-`list_channels` and `search_messages` read **every** channel and direct conversation, not only those of the agent: leave them out of `offer` to keep an agent to its own channels.71+`list_channels` lists **every** channel (not the direct conversations) and `search_messages` reads every channel and direct conversation, not only those of the agent: leave them out of `offer` to keep an agent to its own channels.
72 72
73 ```yaml73 ```yaml
74 agentTools:74 agentTools:
modified docs/fr/how-to/utiliser-les-outils-de-sidekicks-depuis-un-agent.md +1 -1
@@ -43,7 +43,7 @@ Un modèle peut répondre à une question déjà posée avec sa réponse précé
4343
4444 puis enregistrez. Les outils sont lus au démarrage d'un agent : un agent en marche dont les outils changent affiche « à redémarrer » ; redémarrez-le. L'éditeur propose les noms après `- `. Un nom inconnu s'affiche en avertissement.
4545 - **L'agent dit qu'il n'a pas cet outil** : ouvrez son journal (**Log** dans la barre d'état). Au démarrage, Sidekicks écrit `sidekicks: tools offered (meta): about_sidekicks, current_channel, …`, puis mm écrit `[acp] client tools (meta): client_…` avec les outils qu'il a pris. Un outil absent de la première ligne est retiré par `agentTools` ; absent de la seconde seulement, mm l'a refusé (son stderr dit pourquoi). Si l'outil manque dans un journal plus ancien, l'agent a été démarré avant le changement : redémarrez-le. Si le journal le montre et que l'agent le nie quand même, le modèle l'a ignoré : nommez l'outil dans ses instructions `system:`.
46-- **Cantonner un agent à ses propres channels** : `list_channels` et `search_messages` lisent tous les channels et conversations directes, pas seulement ceux de l'agent. Retirez-les d'`offer` si ce n'est pas souhaité.
46+- **Cantonner un agent à ses propres channels** : `list_channels` liste tous les channels (les conversations directes n'y sont pas), et `search_messages` lit tous les channels et conversations directes (`channel: @alice`), pas seulement ceux de l'agent. Retirez-les d'`offer` si ce n'est pas souhaité.
4747
4848 - **`discovery: request`** : Sidekicks lit le fichier de l'agent (celui qui suit `--config`) pour le savoir, annonce seulement les outils, et donne la liste à chaque ouverture de session. Le fichier est lu sur cet ordinateur : un agent dans une sandbox ou un conteneur doit l'avoir au même chemin, ce que demandent déjà les variantes sbx et Docker de l'assistant.
4949 - **`permissions: ask`**, ou `auto` sans `yolo: true` : chaque appel demande d'abord à l'utilisateur, avec la carte de permission habituelle (`client: <nom>`).
@@ -43,7 +43,7 @@ Un modèle peut répondre à une question déjà posée avec sa réponse précé
43 43
44 puis enregistrez. Les outils sont lus au démarrage d'un agent : un agent en marche dont les outils changent affiche « à redémarrer » ; redémarrez-le. L'éditeur propose les noms après `- `. Un nom inconnu s'affiche en avertissement.44 puis enregistrez. Les outils sont lus au démarrage d'un agent : un agent en marche dont les outils changent affiche « à redémarrer » ; redémarrez-le. L'éditeur propose les noms après `- `. Un nom inconnu s'affiche en avertissement.
45 - **L'agent dit qu'il n'a pas cet outil** : ouvrez son journal (**Log** dans la barre d'état). Au démarrage, Sidekicks écrit `sidekicks: tools offered (meta): about_sidekicks, current_channel, …`, puis mm écrit `[acp] client tools (meta): client_…` avec les outils qu'il a pris. Un outil absent de la première ligne est retiré par `agentTools` ; absent de la seconde seulement, mm l'a refusé (son stderr dit pourquoi). Si l'outil manque dans un journal plus ancien, l'agent a été démarré avant le changement : redémarrez-le. Si le journal le montre et que l'agent le nie quand même, le modèle l'a ignoré : nommez l'outil dans ses instructions `system:`.45 - **L'agent dit qu'il n'a pas cet outil** : ouvrez son journal (**Log** dans la barre d'état). Au démarrage, Sidekicks écrit `sidekicks: tools offered (meta): about_sidekicks, current_channel, …`, puis mm écrit `[acp] client tools (meta): client_…` avec les outils qu'il a pris. Un outil absent de la première ligne est retiré par `agentTools` ; absent de la seconde seulement, mm l'a refusé (son stderr dit pourquoi). Si l'outil manque dans un journal plus ancien, l'agent a été démarré avant le changement : redémarrez-le. Si le journal le montre et que l'agent le nie quand même, le modèle l'a ignoré : nommez l'outil dans ses instructions `system:`.
46-- **Cantonner un agent à ses propres channels** : `list_channels` et `search_messages` lisent tous les channels et conversations directes, pas seulement ceux de l'agent. Retirez-les d'`offer` si ce n'est pas souhaité.46+- **Cantonner un agent à ses propres channels** : `list_channels` liste tous les channels (les conversations directes n'y sont pas), et `search_messages` lit tous les channels et conversations directes (`channel: @alice`), pas seulement ceux de l'agent. Retirez-les d'`offer` si ce n'est pas souhaité.
47 47
48 - **`discovery: request`** : Sidekicks lit le fichier de l'agent (celui qui suit `--config`) pour le savoir, annonce seulement les outils, et donne la liste à chaque ouverture de session. Le fichier est lu sur cet ordinateur : un agent dans une sandbox ou un conteneur doit l'avoir au même chemin, ce que demandent déjà les variantes sbx et Docker de l'assistant.48 - **`discovery: request`** : Sidekicks lit le fichier de l'agent (celui qui suit `--config`) pour le savoir, annonce seulement les outils, et donne la liste à chaque ouverture de session. Le fichier est lu sur cet ordinateur : un agent dans une sandbox ou un conteneur doit l'avoir au même chemin, ce que demandent déjà les variantes sbx et Docker de l'assistant.
49 - **`permissions: ask`**, ou `auto` sans `yolo: true` : chaque appel demande d'abord à l'utilisateur, avec la carte de permission habituelle (`client: <nom>`).49 - **`permissions: ask`**, ou `auto` sans `yolo: true` : chaque appel demande d'abord à l'utilisateur, avec la carte de permission habituelle (`client: <nom>`).
modified docs/fr/reference/agents-et-evenements.md +2 -2
@@ -243,9 +243,9 @@ Tickets #90 et #91. Sidekicks propose six outils à chaque agent, dans la limite
243243 | --- | --- | --- |
244244 | `memory_pressure` (`client_memory_pressure`) | `_com.rickub.sidekicks/system/memory` | `Memory pressure: warning (yellow). Used: 24.0 GB of 32.0 GB (75 %).`, comme l'affiche le panneau **Log** ([Surveiller la pression mémoire](../how-to/surveiller-la-pression-memoire.md)) ; `The memory cannot be measured on this computer.` là où elle ne se mesure pas |
245245 | `about_sidekicks` (`client_about_sidekicks`) | `_com.rickub.sidekicks/about` | la version de Sidekicks (`info.version` de `build/config.yml`, `dev` pour une version de développement), le système et l'architecture, ce qu'est Sidekicks, le nom de l'agent dans Sidekicks, la page des releases |
246-| `list_channels` (`client_list_channels`) | `_com.rickub.sidekicks/channels/list` | Tous les channels et conversations directes, du plus ancien au plus récent : `#nom: description. Members: @a (you), @b. 12 messages, the last on 2026-11-10 14:05.`, ou `@alice (direct conversation between the user and @alice)` |
246+| `list_channels` (`client_list_channels`) | `_com.rickub.sidekicks/channels/list` | Tous les channels, du plus ancien au plus récent, sans les conversations directes : `#nom: description. Members: @a (you), @b. 12 messages, the last on 2026-11-10 14:05.` |
247247 | `list_agents` (`client_list_agents`) | `_com.rickub.sidekicks/agents/list` | Tous les agents de la configuration : `@nom (you), titre: description. Runs on the user's computer` (ou `in a Docker container`, `in an sbx sandbox`) `; ready.` (son état : `stopped`, `starting`, `ready`, `busy`, `error`) |
248-| `search_messages` (`client_search_messages`) | `_com.rickub.sidekicks/messages/search` | Les messages de l'utilisateur et des agents d'un channel qui contiennent `query`, sans tenir compte de la casse ni des accents, du plus récent au plus ancien : `- 2026-11-10 14:05, @alice: …extrait autour du texte trouvé…` (80 caractères de chaque côté). Paramètres : `query` (obligatoire), `channel` (`general`, `#general`, ou `@alice` pour une conversation directe ; par défaut, le channel de la session de l'appel), `limit` (10 par défaut, 50 au plus). Tout l'historique enregistré est lu, pas seulement les messages affichés. Un channel inconnu est une erreur qui liste les channels |
248+| `search_messages` (`client_search_messages`) | `_com.rickub.sidekicks/messages/search` | Les messages de l'utilisateur et des agents d'un channel qui contiennent `query`, sans tenir compte de la casse ni des accents, du plus récent au plus ancien : `- 2026-11-10 14:05, @alice: …extrait autour du texte trouvé…` (80 caractères de chaque côté). Paramètres : `query` (obligatoire), `channel` (`general`, `#general`, ou `@alice` pour une conversation directe ; par défaut, le channel de la session de l'appel), `limit` (10 par défaut, 50 au plus). Tout l'historique enregistré est lu, pas seulement les messages affichés. Un channel inconnu est une erreur qui liste les channels (une conversation directe se cherche avec `@agent`, elle n'est pas listée) |
249249 | `current_channel` (`client_current_channel`) | `_com.rickub.sidekicks/channel/current` | `Channel #<nom>.`, sa description et ses membres (`you (@agent), @autre, and the user.`), ou `A direct conversation between the user and you (<agent>)…`. Le channel est celui dont l'agent tient la session (`_meta["org.mini-me/sessionId"]` de l'appel) ; une session d'aucun channel est une erreur |
250250
251251 Seul `search_messages` a des paramètres ; son `inputSchema` indique que `query` est obligatoire. `list_channels` et `search_messages` lisent **tous** les channels, pas seulement ceux dont l'agent est membre (il lit déjà ceux-là) : retirez-les d'`agentTools.offer` si ce n'est pas souhaité. Un outil retiré, ou tous les outils avec `enabled: false`, n'est pas annoncé, et sa méthode répond `-32601`. Le protocole :
@@ -243,9 +243,9 @@ Tickets #90 et #91. Sidekicks propose six outils à chaque agent, dans la limite
243 | --- | --- | --- |243 | --- | --- | --- |
244 | `memory_pressure` (`client_memory_pressure`) | `_com.rickub.sidekicks/system/memory` | `Memory pressure: warning (yellow). Used: 24.0 GB of 32.0 GB (75 %).`, comme l'affiche le panneau **Log** ([Surveiller la pression mémoire](../how-to/surveiller-la-pression-memoire.md)) ; `The memory cannot be measured on this computer.` là où elle ne se mesure pas |244 | `memory_pressure` (`client_memory_pressure`) | `_com.rickub.sidekicks/system/memory` | `Memory pressure: warning (yellow). Used: 24.0 GB of 32.0 GB (75 %).`, comme l'affiche le panneau **Log** ([Surveiller la pression mémoire](../how-to/surveiller-la-pression-memoire.md)) ; `The memory cannot be measured on this computer.` là où elle ne se mesure pas |
245 | `about_sidekicks` (`client_about_sidekicks`) | `_com.rickub.sidekicks/about` | la version de Sidekicks (`info.version` de `build/config.yml`, `dev` pour une version de développement), le système et l'architecture, ce qu'est Sidekicks, le nom de l'agent dans Sidekicks, la page des releases |245 | `about_sidekicks` (`client_about_sidekicks`) | `_com.rickub.sidekicks/about` | la version de Sidekicks (`info.version` de `build/config.yml`, `dev` pour une version de développement), le système et l'architecture, ce qu'est Sidekicks, le nom de l'agent dans Sidekicks, la page des releases |
246-| `list_channels` (`client_list_channels`) | `_com.rickub.sidekicks/channels/list` | Tous les channels et conversations directes, du plus ancien au plus récent : `#nom: description. Members: @a (you), @b. 12 messages, the last on 2026-11-10 14:05.`, ou `@alice (direct conversation between the user and @alice)` |246+| `list_channels` (`client_list_channels`) | `_com.rickub.sidekicks/channels/list` | Tous les channels, du plus ancien au plus récent, sans les conversations directes : `#nom: description. Members: @a (you), @b. 12 messages, the last on 2026-11-10 14:05.` |
247 | `list_agents` (`client_list_agents`) | `_com.rickub.sidekicks/agents/list` | Tous les agents de la configuration : `@nom (you), titre: description. Runs on the user's computer` (ou `in a Docker container`, `in an sbx sandbox`) `; ready.` (son état : `stopped`, `starting`, `ready`, `busy`, `error`) |247 | `list_agents` (`client_list_agents`) | `_com.rickub.sidekicks/agents/list` | Tous les agents de la configuration : `@nom (you), titre: description. Runs on the user's computer` (ou `in a Docker container`, `in an sbx sandbox`) `; ready.` (son état : `stopped`, `starting`, `ready`, `busy`, `error`) |
248-| `search_messages` (`client_search_messages`) | `_com.rickub.sidekicks/messages/search` | Les messages de l'utilisateur et des agents d'un channel qui contiennent `query`, sans tenir compte de la casse ni des accents, du plus récent au plus ancien : `- 2026-11-10 14:05, @alice: …extrait autour du texte trouvé…` (80 caractères de chaque côté). Paramètres : `query` (obligatoire), `channel` (`general`, `#general`, ou `@alice` pour une conversation directe ; par défaut, le channel de la session de l'appel), `limit` (10 par défaut, 50 au plus). Tout l'historique enregistré est lu, pas seulement les messages affichés. Un channel inconnu est une erreur qui liste les channels |248+| `search_messages` (`client_search_messages`) | `_com.rickub.sidekicks/messages/search` | Les messages de l'utilisateur et des agents d'un channel qui contiennent `query`, sans tenir compte de la casse ni des accents, du plus récent au plus ancien : `- 2026-11-10 14:05, @alice: …extrait autour du texte trouvé…` (80 caractères de chaque côté). Paramètres : `query` (obligatoire), `channel` (`general`, `#general`, ou `@alice` pour une conversation directe ; par défaut, le channel de la session de l'appel), `limit` (10 par défaut, 50 au plus). Tout l'historique enregistré est lu, pas seulement les messages affichés. Un channel inconnu est une erreur qui liste les channels (une conversation directe se cherche avec `@agent`, elle n'est pas listée) |
249 | `current_channel` (`client_current_channel`) | `_com.rickub.sidekicks/channel/current` | `Channel #<nom>.`, sa description et ses membres (`you (@agent), @autre, and the user.`), ou `A direct conversation between the user and you (<agent>)…`. Le channel est celui dont l'agent tient la session (`_meta["org.mini-me/sessionId"]` de l'appel) ; une session d'aucun channel est une erreur |249 | `current_channel` (`client_current_channel`) | `_com.rickub.sidekicks/channel/current` | `Channel #<nom>.`, sa description et ses membres (`you (@agent), @autre, and the user.`), ou `A direct conversation between the user and you (<agent>)…`. Le channel est celui dont l'agent tient la session (`_meta["org.mini-me/sessionId"]` de l'appel) ; une session d'aucun channel est une erreur |
250 250
251 Seul `search_messages` a des paramètres ; son `inputSchema` indique que `query` est obligatoire. `list_channels` et `search_messages` lisent **tous** les channels, pas seulement ceux dont l'agent est membre (il lit déjà ceux-là) : retirez-les d'`agentTools.offer` si ce n'est pas souhaité. Un outil retiré, ou tous les outils avec `enabled: false`, n'est pas annoncé, et sa méthode répond `-32601`. Le protocole :251 Seul `search_messages` a des paramètres ; son `inputSchema` indique que `query` est obligatoire. `list_channels` et `search_messages` lisent **tous** les channels, pas seulement ceux dont l'agent est membre (il lit déjà ceux-là) : retirez-les d'`agentTools.offer` si ce n'est pas souhaité. Un outil retiré, ou tous les outils avec `enabled: false`, n'est pas annoncé, et sa méthode répond `-32601`. Le protocole :
modified docs/fr/reference/configuration.md +1 -1
@@ -68,7 +68,7 @@ Les outils que Sidekicks propose aux agents capables de les découvrir : aujourd
6868 | `enabled` | booléen | `true` | `false` : aucun outil n'est proposé ; un agent qui en appelle un quand même reçoit « Method not found ». |
6969 | `offer` | liste de noms d'outils | tous | Seulement ces outils sont proposés. Les noms : `memory_pressure`, `about_sidekicks`, `current_channel`, `list_channels`, `list_agents`, `search_messages` ([ce que renvoie chacun](agents-et-evenements.md#outils-proposés-aux-agents)). Un nom inconnu est un avertissement ; une liste vide n'en propose aucun. |
7070
71-`list_channels` et `search_messages` lisent **tous** les channels et conversations directes, pas seulement ceux de l'agent : retirez-les d'`offer` pour cantonner un agent à ses propres channels.
71+`list_channels` liste **tous** les channels (pas les conversations directes) et `search_messages` lit tous les channels et conversations directes, pas seulement ceux de l'agent : retirez-les d'`offer` pour cantonner un agent à ses propres channels.
7272
7373 ```yaml
7474 agentTools:
@@ -68,7 +68,7 @@ Les outils que Sidekicks propose aux agents capables de les découvrir : aujourd
68 | `enabled` | booléen | `true` | `false` : aucun outil n'est proposé ; un agent qui en appelle un quand même reçoit « Method not found ». |68 | `enabled` | booléen | `true` | `false` : aucun outil n'est proposé ; un agent qui en appelle un quand même reçoit « Method not found ». |
69 | `offer` | liste de noms d'outils | tous | Seulement ces outils sont proposés. Les noms : `memory_pressure`, `about_sidekicks`, `current_channel`, `list_channels`, `list_agents`, `search_messages` ([ce que renvoie chacun](agents-et-evenements.md#outils-proposés-aux-agents)). Un nom inconnu est un avertissement ; une liste vide n'en propose aucun. |69 | `offer` | liste de noms d'outils | tous | Seulement ces outils sont proposés. Les noms : `memory_pressure`, `about_sidekicks`, `current_channel`, `list_channels`, `list_agents`, `search_messages` ([ce que renvoie chacun](agents-et-evenements.md#outils-proposés-aux-agents)). Un nom inconnu est un avertissement ; une liste vide n'en propose aucun. |
70 70
71-`list_channels` et `search_messages` lisent **tous** les channels et conversations directes, pas seulement ceux de l'agent : retirez-les d'`offer` pour cantonner un agent à ses propres channels.71+`list_channels` liste **tous** les channels (pas les conversations directes) et `search_messages` lit tous les channels et conversations directes, pas seulement ceux de l'agent : retirez-les d'`offer` pour cantonner un agent à ses propres channels.
72 72
73 ```yaml73 ```yaml
74 agentTools:74 agentTools:
modified internal/app/historytools.go +10 -12
@@ -35,7 +35,7 @@ func (c *Core) historyTools(agent string) []acp.Tool {
3535 return []acp.Tool{
3636 {
3737 Name: "list_channels",
38- Description: "List the Sidekicks channels and direct conversations: name, description, members, number of messages and date of the last one. Call it to know where a topic was discussed before searching. Channels and messages change: call it again each time, never reuse an earlier result.",
38+ Description: "List the Sidekicks channels (not the direct conversations): name, description, members, number of messages and date of the last one. Call it to know where a topic was discussed before searching. Channels and messages change: call it again each time, never reuse an earlier result.",
3939 Method: ChannelsMethod,
4040 Call: func(context.Context, string, map[string]any) (string, error) {
4141 manager, err := c.channelManager()
@@ -115,9 +115,11 @@ func searchedChannel(manager *channels.Manager, agent, sessionID string, argumen
115115 if err != nil {
116116 var known []string
117117 for _, channel := range manager.Channels() {
118- known = append(known, channelName(channel))
118+ if channel.Direct == "" {
119+ known = append(known, channelName(channel))
120+ }
119121 }
120- return channels.Channel{}, fmt.Errorf("no channel is called %q; the channels are: %s", name, strings.Join(known, ", "))
122+ return channels.Channel{}, fmt.Errorf("no channel is called %q; the channels are: %s (or @agent for a direct conversation with that agent)", name, strings.Join(known, ", "))
121123 }
122124 return channel, nil
123125 }
@@ -131,23 +133,19 @@ func channelName(channel channels.Channel) string {
131133 return "#" + channel.Name
132134 }
133135
134-// ChannelsText tells summaries to a model; agent is the one asking.
136+// ChannelsText tells summaries (channels only) to a model; agent is the one asking.
135137 func ChannelsText(summaries []channels.Summary, agent string) string {
136138 if len(summaries) == 0 {
137139 return "Sidekicks has no channel yet."
138140 }
139- lines := []string{fmt.Sprintf("%d channels and direct conversations:", len(summaries))}
141+ lines := []string{fmt.Sprintf("%d channels:", len(summaries))}
140142 for _, summary := range summaries {
141143 channel := summary.Channel
142144 line := "- " + channelName(channel)
143- if channel.Direct != "" {
144- line += " (direct conversation between the user and @" + channel.Direct + ")"
145- } else {
146- if channel.Description != "" {
147- line += ": " + channel.Description
148- }
149- line += ". Members: " + mentions(channel.Members, agent)
145+ if channel.Description != "" {
146+ line += ": " + channel.Description
150147 }
148+ line += ". Members: " + mentions(channel.Members, agent)
151149 line += fmt.Sprintf(". %d messages", summary.Messages)
152150 if !summary.Last.IsZero() {
153151 line += ", the last on " + summary.Last.Local().Format("2006-01-02 15:04")
@@ -35,7 +35,7 @@ func (c *Core) historyTools(agent string) []acp.Tool {
35 return []acp.Tool{35 return []acp.Tool{
36 {36 {
37 Name: "list_channels",37 Name: "list_channels",
38- Description: "List the Sidekicks channels and direct conversations: name, description, members, number of messages and date of the last one. Call it to know where a topic was discussed before searching. Channels and messages change: call it again each time, never reuse an earlier result.",38+ Description: "List the Sidekicks channels (not the direct conversations): name, description, members, number of messages and date of the last one. Call it to know where a topic was discussed before searching. Channels and messages change: call it again each time, never reuse an earlier result.",
39 Method: ChannelsMethod,39 Method: ChannelsMethod,
40 Call: func(context.Context, string, map[string]any) (string, error) {40 Call: func(context.Context, string, map[string]any) (string, error) {
41 manager, err := c.channelManager()41 manager, err := c.channelManager()
@@ -115,9 +115,11 @@ func searchedChannel(manager *channels.Manager, agent, sessionID string, argumen
115 if err != nil {115 if err != nil {
116 var known []string116 var known []string
117 for _, channel := range manager.Channels() {117 for _, channel := range manager.Channels() {
118- known = append(known, channelName(channel))118+ if channel.Direct == "" {
119+ known = append(known, channelName(channel))
120+ }
119 }121 }
120- return channels.Channel{}, fmt.Errorf("no channel is called %q; the channels are: %s", name, strings.Join(known, ", "))122+ return channels.Channel{}, fmt.Errorf("no channel is called %q; the channels are: %s (or @agent for a direct conversation with that agent)", name, strings.Join(known, ", "))
121 }123 }
122 return channel, nil124 return channel, nil
123 }125 }
@@ -131,23 +133,19 @@ func channelName(channel channels.Channel) string {
131 return "#" + channel.Name133 return "#" + channel.Name
132 }134 }
133 135
134-// ChannelsText tells summaries to a model; agent is the one asking.136+// ChannelsText tells summaries (channels only) to a model; agent is the one asking.
135 func ChannelsText(summaries []channels.Summary, agent string) string {137 func ChannelsText(summaries []channels.Summary, agent string) string {
136 if len(summaries) == 0 {138 if len(summaries) == 0 {
137 return "Sidekicks has no channel yet."139 return "Sidekicks has no channel yet."
138 }140 }
139- lines := []string{fmt.Sprintf("%d channels and direct conversations:", len(summaries))}141+ lines := []string{fmt.Sprintf("%d channels:", len(summaries))}
140 for _, summary := range summaries {142 for _, summary := range summaries {
141 channel := summary.Channel143 channel := summary.Channel
142 line := "- " + channelName(channel)144 line := "- " + channelName(channel)
143- if channel.Direct != "" {145+ if channel.Description != "" {
144- line += " (direct conversation between the user and @" + channel.Direct + ")"146+ line += ": " + channel.Description
145- } else {
146- if channel.Description != "" {
147- line += ": " + channel.Description
148- }
149- line += ". Members: " + mentions(channel.Members, agent)
150 }147 }
148+ line += ". Members: " + mentions(channel.Members, agent)
151 line += fmt.Sprintf(". %d messages", summary.Messages)149 line += fmt.Sprintf(". %d messages", summary.Messages)
152 if !summary.Last.IsZero() {150 if !summary.Last.IsZero() {
153 line += ", the last on " + summary.Last.Local().Format("2006-01-02 15:04")151 line += ", the last on " + summary.Last.Local().Format("2006-01-02 15:04")
modified internal/channels/search.go +6 -3
@@ -33,15 +33,18 @@ type Found struct {
3333 Excerpt string
3434 }
3535
36-// Summaries returns every channel and direct conversation, oldest first,
37-// with how many user and agent messages it holds and when the last one was
38-// written.
36+// Summaries returns every channel, oldest first, without the direct
37+// conversations, with how many user and agent messages it holds and when the
38+// last one was written.
3939 func (m *Manager) Summaries() ([]Summary, error) {
4040 m.mu.Lock()
4141 list := m.list()
4242 m.mu.Unlock()
4343 summaries := make([]Summary, 0, len(list))
4444 for _, channel := range list {
45+ if channel.Direct != "" {
46+ continue
47+ }
4548 messages, err := m.history(channel.ID)
4649 if err != nil {
4750 return nil, err
@@ -33,15 +33,18 @@ type Found struct {
33 Excerpt string33 Excerpt string
34 }34 }
35 35
36-// Summaries returns every channel and direct conversation, oldest first,36+// Summaries returns every channel, oldest first, without the direct
37-// with how many user and agent messages it holds and when the last one was37+// conversations, with how many user and agent messages it holds and when the
38-// written.38+// last one was written.
39 func (m *Manager) Summaries() ([]Summary, error) {39 func (m *Manager) Summaries() ([]Summary, error) {
40 m.mu.Lock()40 m.mu.Lock()
41 list := m.list()41 list := m.list()
42 m.mu.Unlock()42 m.mu.Unlock()
43 summaries := make([]Summary, 0, len(list))43 summaries := make([]Summary, 0, len(list))
44 for _, channel := range list {44 for _, channel := range list {
45+ if channel.Direct != "" {
46+ continue
47+ }
45 messages, err := m.history(channel.ID)48 messages, err := m.history(channel.ID)
46 if err != nil {49 if err != nil {
47 return nil, err50 return nil, err
modified internal/channels/search_test.go +1 -1
@@ -82,7 +82,7 @@ func TestSummariesAndChannelNames(t *testing.T) {
8282 t.Fatal("the last message has a date")
8383 }
8484 }
85- if len(summaries) != 3 || counts[general.ID] != 2 || counts[direct.ID] != 0 {
85+ if _, listed := counts[direct.ID]; len(summaries) != 2 || counts[general.ID] != 2 || listed {
8686 t.Fatalf("summaries: %+v", summaries)
8787 }
8888 for name, want := range map[string]string{"general": general.ID, "#General": general.ID, "@bob": direct.ID} {
@@ -82,7 +82,7 @@ func TestSummariesAndChannelNames(t *testing.T) {
82 t.Fatal("the last message has a date")82 t.Fatal("the last message has a date")
83 }83 }
84 }84 }
85- if len(summaries) != 3 || counts[general.ID] != 2 || counts[direct.ID] != 0 {85+ if _, listed := counts[direct.ID]; len(summaries) != 2 || counts[general.ID] != 2 || listed {
86 t.Fatalf("summaries: %+v", summaries)86 t.Fatalf("summaries: %+v", summaries)
87 }87 }
88 for name, want := range map[string]string{"general": general.ID, "#General": general.ID, "@bob": direct.ID} {88 for name, want := range map[string]string{"general": general.ID, "#General": general.ID, "@bob": direct.ID} {