Skip to content

Attachments

What it is

Attachments let dashboard and Telegram users send files or images through the daemon. The receiving message includes structured attachment metadata plus a local file path fallback the target agent can read with its normal tools.

When to use it

Use attachments when a human wants an agent to inspect a screenshot, image, document, log bundle, or other short-lived file without manually copying it into the target workspace.

Use normal text asks when the context is small enough to paste directly. Slack currently routes text control messages only; it does not relay files.

Setup

No separate attachment service is required. Start the daemon and use a surface that supports uploads:

  • Dashboard compose bar.
  • Telegram photos and documents.
  • Relay-hosted dashboard uploads, tunneled back to the local daemon.

Files are stored under ~/.repowire/attachments/.

Common workflows

  1. Pick several files through the dashboard compose bar, paste or drop more, or send a Telegram photo/document. Remove individual dashboard files before sending.
  2. Repowire stores the attachment in the local attachment directory.
  3. The outgoing ask or notify carries attachment metadata and a text fallback with the local path.
  4. Ask the target agent to inspect that path with its normal file-reading or image-reading tool.

When Repowire sends a message with attachment metadata back to Telegram, the bot sends local image files as photos and other local files as documents when it can access the daemon-local path. If the file is not local to the bot, it falls back to a download link.

Commands and API

  • POST /attachments uploads a file to the daemon.
  • GET /attachments/{id} downloads a retained attachment.
  • Dashboard and Telegram call those routes for you.

Attachment metadata is carried with asks, notifications, and dashboard events; agents usually interact with the local path in the message body.

Limits

  • The dashboard and iOS allow up to 10 files per message, each up to 10 MB (10 × 1024 × 1024 bytes, or 10 MiB). There is no total-size cap or file-type restriction. The dashboard sends files as picked, without image resizing.
  • If a dashboard selection would exceed either limit, the whole incoming batch is rejected with a reason and the prior selection stays. Scheduled sends and inbox replies still carry text only.
  • The dashboard and the iOS app upload a message's files one at a time and show which one is going up ("Uploading 2 of 3…"). An upload that fails names the file and why, for example "Attachment 1 of 1 didn't upload (timed out)"; an upload gives up after 60 seconds. A retry, whether the upload or the send failed, reuses what already uploaded and uploads only the rest.
  • An attachment is kept while a stored message still names it (an agent's message, the human's inbox item, or a queued delivery), and that message's content lasts retention.content_days (7 days by default). A file uploaded long ago and attached to a new ask therefore lasts as long as the new ask. A file no message names is removed content_days after its upload. Dashboard events keep an attachment's metadata after its file goes, so an old event's preview can 404.
  • Repowire passes paths to agents; it does not force a runtime to inspect the file.
  • Slack file relay is not part of the current Slack surface.
  • Through the hosted relay, upload payloads tunnel back to the local daemon before the target agent sees the path.

Troubleshooting

  • Uploads fail from the remote dashboard: confirm relay access is connected and the local daemon is reachable.
  • Telegram photos do not reach the agent: confirm the Telegram bot can reach the daemon and /attachments is not blocked by a proxy.
  • The target agent cannot read the path: confirm the agent runs on the same machine or filesystem where the daemon stored the attachment.

See also

Saving a bound upload

For new uploads on a daemon that returns a binding descriptor, the web Files inspection can offer Save a copy. It reads only the current authenticated connection and verifies the exact upload/store/instance and byte count before preparing a download. It refuses old-server responses without positive proof, foreign store descriptors, redirects, missing bytes, and modified file contents; it never falls back to an arbitrary path or another machine. Older attachments remain metadata/source links in this index; their existing legacy chips still work under their original rules.

Saving is explicit, with no automatic image or active-content preview. A saved browser/OS copy may outlive server retention. Temporary browser blobs are revoked when the inspection closes or its source/connection changes. Native download helpers are available for coordinated app integration; this does not claim a native export UI or device runtime gate has passed.

The private binding association is retained only with its bytes. An ordinary daemon restart or machine-label rename does not change its store identity; a reinstall without the private store cannot verify old descriptors. Copying a whole store does not attest to the original physical machine. Forwarding files and remote file discovery are outside this slice.