Send Talon a picture: images and the vision sub-agent
You can now send Talon a photo and ask about it. Telegram, WhatsApp, and email accept images. A new built-in vision sub-agent answers questions about them.
Image support is on the main branch and ships in the next tagged release.
The main agent never sees pixels
Section titled “The main agent never sees pixels”Most agent frameworks put the image into the main model’s conversation. That has two problems. It does not work for a persona on a text-only model. It also keeps expensive image tokens in the session history for every later turn.
Talon takes a different path. Pixels go only to the vision sub-agent, in one multimodal request. The main agent gets text:
- An Image descriptor: ID, dimensions, filename, receipt and expiry time, state, and selected EXIF data.
- Saved Findings: the answers that the vision sub-agent produced.
The result is that image support works the same for every persona and every provider. Pixel bytes, base64 payloads, and download credentials never enter main-agent prompts, stored messages, queue content, summaries, or logs.
Enable it per persona
Section titled “Enable it per persona”Upgrading does not give existing personas image ability. Each grant is explicit:
personas: - name: assistant subagents: - vision capabilities: allow: - subagent.invoke:* - image.read:threadvision in subagents plus subagent.invoke lets the persona run an Inspection. image.read:thread is a separate grant for the image_lookup tool, which reads stored Images and Findings without a model call. Grant both, so the persona can read an existing Finding again and does not pay for a second Inspection.
Ask a question
Section titled “Ask a question”An Inspection is one question about one or more images:
{ "name": "vision", "input": { "imageIds": ["img-0001", "img-0002"], "question": "What error message is shown, and what does it say to do next?" }}The sub-agent returns and saves a Finding with the answer, any extracted text, and a statement of uncertainty. Findings are rows in SQLite. They survive failed runs, context rotation, and the expiry of the image file.
The default model is Claude Haiku 4.5. You can override it and set a failover chain under subagents.vision. Every model in the chain must be vision-capable. Talon rejects a text-only override at config load.
What Talon accepts
Section titled “What Talon accepts”Talon accepts JPEG, static PNG, and static WebP. It rejects animated images, HEIC, and SVG with a clear reason. Stickers and inline email images are ignored.
Each accepted image is converted to a metadata-free JPEG with bounded dimensions. Talon reads EXIF data first, so GPS position, capture time, and camera model stay available as text.
images: maxInputBytes: 10485760 maxPerMessage: 5 maxPerInspection: 5 maxEdge: 4096 retentionHours: 24A change to any images setting needs a daemon restart. talonctl reload keeps the running values and logs a warning.
Built to fail closed
Section titled “Built to fail closed”The image pipeline handles input from outside senders, so it has hard limits.
- Declared sizes are not trusted. Talon counts the actual bytes during download and again before conversion.
- A pixel limit, read from the image header before decoding, blocks decompression bombs.
- Email images are normalized only after the sender passes authorization.
- Sender-controlled EXIF text is neutralized, so it cannot forge descriptor lines in the prompt.
- An Inspection that cannot be recorded is refused before any model is billed. This applies to background agents, which can read Findings but cannot run an Inspection.
- If every model in the chain fails, no Finding is created.
Know the retention rule
Section titled “Know the retention rule”Retention removes the image file only. After retentionHours, Talon deletes the normalized JPEG. The Image record, the EXIF data including GPS, the Findings, and the conversation text stay until you delete them.
In group chats, extracted metadata appears in replies like any other text. Enable image handling only in groups where that is acceptable.
Read the Images and Vision guide for formats, limits, and failure reasons, or see the pull request.