bots-garden/sidekickspublic Fork
⑂ v1.0.0-macos
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
📦️ Create a release. 0a53b99 · on v1.0.0-macos · k33g · 24d ago
join-files-to-a-message.md · 26 lines · 2.3 KBmarkdown
Blame HistoryOpen raw

How to join files to a message

This guide shows how to give an agent the content of files with your message: by typing $, by dropping files on the message field, or with 📎. It assumes a channel or a direct conversation with at least one agent.

Steps

  1. In the message field, type $ at the start of a word: a list shows the files of the agent's folder.
    • In a direct conversation, it is the folder of that agent.
    • In a channel, it is the folder of the first agent you mention with @ in the message (write @bob first), otherwise the folder of the channel's first member.
  2. Type to filter ($pl → plan.md). Choose a folder (docs/) to go into it, then a file; ↑ ↓ to move, Enter or Tab to choose, Escape to close.
  3. The reference $docs/plan.md is written in the message. Join several files the same way (10 at most).
  4. Send. Each agent that answers receives the files with the message. In the conversation, the message shows 📎 docs/plan.md: click it to open the file in the agent's Files tab.

Variants

  • A file from elsewhere (the Finder, the desktop): drop it on the message field, or click 📎 and choose it. It is copied into the attachments/ folder of the agent's folder (attachments/plan.md, then attachments/plan-2.md…; spaces become -), and its reference is written in the message. A file already in the agent's folder is used where it is.
  • An agent in a container or an sbx sandbox: the same; the file is read, or copied, inside it.
  • A $ that is not a file — a price, a variable: 5$, $5, \$HOME and anything in code stay text.
  • A file was not sent: the conversation says "A file was not sent to …" with the reason (no such file, neither text nor an image, larger than 5 MB). The agent answers without it.
  • What the agent receives depends on what it accepts: the content of a text file, an image, or a link to the file that it reads itself. Details: Joined files.
  • The history keeps the reference to the file, never its content: reopening the conversation later shows the file as it is then.

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
# How to join files to a message

This guide shows how to give an agent the content of files with your message: by typing `$`, by dropping files on the message field, or with 📎. It assumes a channel or a direct conversation with at least one agent.

## Steps

1. In the message field, type `$` at the start of a word: a list shows the files of the agent's folder.
   - In a direct conversation, it is the folder of that agent.
   - In a channel, it is the folder of the first agent you mention with `@` in the message (write `@bob` first), otherwise the folder of the channel's first member.
2. Type to filter (`$pl` → `plan.md`). Choose a folder (`docs/`) to go into it, then a file; ↑ ↓ to move, Enter or Tab to choose, Escape to close.
3. The reference `$docs/plan.md` is written in the message. Join several files the same way (10 at most).
4. Send. Each agent that answers receives the files with the message. In the conversation, the message shows `📎 docs/plan.md`: click it to open the file in the agent's **Files** tab.

## Variants

- **A file from elsewhere** (the Finder, the desktop): drop it on the message field, or click **📎** and choose it. It is copied into the `attachments/` folder of the agent's folder (`attachments/plan.md`, then `attachments/plan-2.md`…; spaces become `-`), and its reference is written in the message. A file already in the agent's folder is used where it is.
- **An agent in a container or an sbx sandbox**: the same; the file is read, or copied, inside it.
- **A `$` that is not a file** — a price, a variable: `5$`, `$5`, `\$HOME` and anything in `code` stay text.
- **A file was not sent**: the conversation says "A file was not sent to …" with the reason (no such file, neither text nor an image, larger than 5 MB). The agent answers without it.
- **What the agent receives** depends on what it accepts: the content of a text file, an image, or a link to the file that it reads itself. Details: [Joined files](../reference/agents-and-events.md#joined-files).
- **The history** keeps the reference to the file, never its content: reopening the conversation later shows the file as it is then.

## See also

- [How to manage channels and their agents](manage-channels.md)
- [How to work with an agent's files and terminal](work-with-an-agents-files.md)