Caldera docs
calderaapp.io

Talking to agents

Covers: the questions an agent asks and how you answer them, writing to an agent, voice messages, the Telegram group with one topic per agent (and how to set it up), who may do what, and what happens when Caldera is down. For: people who run agents and people who write them.

What an agent can say

An agent reports messages with its status: a notice ("Deploy finished"), or a question ("Accept card 12?") that waits for an answer. Telegram carries the questions; a notice shows on the agent's page and in the daily digest, never as a Telegram message of its own (ADR-0094 D4). The exception is the agent's reply to something you wrote to it: that goes where you wrote. A question shows its options as buttons. An option may ask for a text with it, required or optional: an approval's "Accept" needs none, "Back to the agent" needs a reason. A question may also take a typed answer in your own words.

Open messages are on the agent's page, in the tab Conversation (with the number of open questions on the tab and on the overview card). A message the agent stops reporting is withdrawn; the page keeps the history: asked, answered by whom, with what, and how the agent took it.

Answer, and write to an agent

People with comment in the agent's collection answer its questions; with edit they also write to the agent; with read they read. Everything an agent wrote is shown as text.

  • Answer. Press an option. One that asks for a text shows a field first. The answer travels with the agent's next report, and the agent has the last word: if it no longer asks the question, or cannot take the answer, it refuses with a reason, which the history shows, and the question can be answered again. While an answer waits or was taken, a second is refused.
  • A question that is also on a card. An agent that asks a question on a card of its board and here as well asks one question (ADR-0096). Answering here answers it on the card, under your name and only if you may edit the card; otherwise the answer is refused and nothing is stored. Answering on the card answers it here: the history says "on the card", the Telegram message loses its buttons, and the agent gets the answer with its next report.
  • Written on a card. A message written in the chat of a card reaches the agent like a message written here, with the card it is about, and the agent replies on the card.
  • Write. Only to an agent that takes messages: it says so by naming message in the controls it reports. For any other agent the Conversation tab shows no writing box and says why, and the bot answers in the topic that this agent takes no messages. An agent that asks questions still takes answers. A short message ("why is this card stuck?"). The agent answers with messages above. While a conversation is open (somebody wrote or answered in the last three minutes) Caldera asks the agent to report every 5 seconds, so the waiting time is short; otherwise a message waits for the next report, 30 seconds by default. A message written in Telegram shows the agent as "typing" there until it answers, refuses the message, reports a minute without active work after taking it, or 15 minutes have passed.
  • Real work is a session. For longer work, open a Claude Code session on the agent's machine from the overview (Operating agents).
  • Continue a conversation. An agent that works on separate pieces of work (a card each) may list them above the short messages. Continue opens a session that picks up its earlier conversation about that piece of work (Operating agents). The agent can link straight to it from the work itself.

What an agent does with a free message

The same in every agent that builds on the standard library's talking (ADR-0104 D6; runtime 0.54.0):

  • Short commands need no model. "Lauf jetzt", "Pause", "Weiter" and "Stand?" (the slash forms too) are answered at once and act on the agent's controls: a run now, a pause, going on, a short status. An agent without that control says so instead of doing it.
  • What needs more rights is said, not done. A short request to change settings, update or install is answered "Das geht nur in der Werkbank", with where to find it: the Workbench tab, or the switch to "Workbench" in the conversation tab. A conversation never opens a workbench itself.
  • Anything else is a conversation run with the agent's own rights and limits: its model setting and a cost limit per message (chat_max_usd). The assistant's run has its mail tools, the project agent's reads the clone and the board and changes nothing.
  • A failure is answered ("Das hat nicht geklappt") and is the finding conversation:failed for a day.
  • Who may write is checked before the agent. A message from Caldera was checked by the server (only an admin who may steer the agent can write it); an agent's own channel (Telegram, Google Chat) filters by its configured chat id or account. The standard adds no check of its own.
  • A pause waits for the run to end (ADR-0070): "Weiter" can only be heard while the agent still runs. Once the runtime stopped the process, resume on the page or in Telegram (/weiter).

A blueprint extends this and does not replace it: the project agent's chat of a card and the assistant's mail chat are parts the standard hands the message to first.

Voice messages

In Telegram you can send a voice message in an agent's topic or in a private chat with the bot. Caldera does not transcribe it: a transcription service would be one more processor. It downloads the file from Telegram, keeps it only until the agent fetches it (at most a day), and the agent's runtime fetches it once and hands it over as a file. An agent that cannot use audio refuses with a reason, and the bot says so in the topic. At most 2 MB.

An agent can get the text as well. If its author turned it on (transcription in the manifest), the agent's runtime transcribes the message on the agent's own machine and hands the agent the text, marked as a transcript, together with the audio. Caldera still does not transcribe and gets no text back: the speech-to-text service runs on that machine or in the agent's own container stack, and the runtime refuses any other address. If the transcription fails, the agent gets the audio alone and the reason is in the runtime's log, so the message is never lost. Caldera's privacy notice does not change: what happens on the agent's machine is the agent's own business.

The Telegram group

One Telegram group with Topics turned on serves your workspace. The bot makes and names one topic per agent. In a topic:

  • the agent's questions arrive with their options as buttons; an option that asks for a text asks you to reply to the bot's message. Questions about the same card (the same link) that come within a minute arrive as one numbered message with buttons 1A, 1B, 2A; a reply like "1A 2B" answers each question it names (ADR-0094 D4);
  • a reply to a question that takes free text is the answer;
  • what you write goes to that agent as a message, and so does a voice message, if the agent takes messages (otherwise the bot says it does not);
  • /pause, /weiter (resume), /lauf (run now) and /durchbrennen (burn through, after a confirmation) act on that agent's controls, where the agent offers them; /durchbrennen aus switches it off;
  • any other /command is passed on to the agent as written, and the agent answers, often with a question. Caldera keeps no list of an agent's own commands;
  • findings of that agent that need a person arrive there too, in three parts and without buttons (ADR-0094).

In the group and in a private chat with the bot: /befunde (open findings), /fragen (open questions, shown again with their buttons) and /agents.

Set it up

  1. In Caldera, open Notifications. Link your own Telegram chat first (a private chat with the bot, with the one-time code). The group code only works for the account that made it.
  2. In Telegram, make a group and turn on Topics in its settings.
  3. Add the bot to the group and make it an admin with the right to manage topics. Without it the bot cannot make topics; it says what is missing, and the page shows ready, "Topics are off", "the bot is not an admin" or "the bot may not manage topics".
  4. In Caldera, under Telegram group of this workspace, press Link a group, and send the message it shows (/start <code>) in the group, or use the link to pick the group. The code works once, for 15 minutes. Send it from the Telegram account you linked in step 1.
  5. The bot makes one topic per agent. New agents get theirs with their first report.

Renaming an agent renames its topic. Unlinking (on the same page) makes Caldera forget the group and its topics; nothing is deleted in Telegram.

One group for several workspaces

A group may serve several workspaces: each workspace links it with its own code, made by an admin of that workspace, and sent in the group again. Topics are then named <workspace> · <agent> (just <agent> while one workspace uses the group), and existing topics are renamed when a second workspace joins or one leaves. Unlinking one workspace leaves the others working. In such a group /befunde, /fragen and /agents list only the workspaces you belong to, grouped by workspace.

Who may do what in Telegram

Who is in the group does not matter to Caldera. A button press or a message is attributed to the Telegram user who made it, through the private chat that user linked to their account, and checked against that account's role in the agent's collection at every press: an admin of one workspace who is only a member of another cannot steer the second one's agents from its topics. A person who linked nothing is told how. An answer needs comment, steering needs edit. A topic exists only for an agent whose collection every member of the workspaces behind the group may read; an agent in a personal or closed collection gets no topic and no post in a shared group or space, and its questions go to the people with comment directly. A button in a group belongs to nobody in particular and is used up only by a press that passed those checks.

Telegram is not end-to-end encrypted and its operator is outside the EU. Messages are text the agent chose to send; the privacy notice names Telegram as a recipient.

An agent has to say it takes messages

An agent that never reads what is written to it would leave your message unanswered, or fail it after you wrote it. So an agent names message in the controls of its manifest when it answers messages (adapter mode: the adapter implements the verb message; process mode: the agent reads its inbox). Without it nobody can write to the agent: the page and the bot say so, and the runtime refuses a message again on the machine. An existing agent has to add message to its controls to keep receiving messages, and that needs runtime 0.36 or later: a 0.35 runtime refuses the unknown control. The blueprints of the catalog (starter, project agent, ops agent) name it since version 1.2.0.

The agent's own channel

An agent may keep a bot of its own. In its Conversation tab, switch where its messages go to "the agent's own channel": Caldera then sends none of that agent's messages, so nothing arrives twice, and answering and writing on the page stop. Findings are not affected.

When Caldera is down

  • Control is the runtime's command line on the machine (caldera pause|resume, caldera burn off, caldera session). Nothing else is needed.
  • Alarm for agents that look after Caldera's own infrastructure: a one-way message through the same bot's Telegram API, called by the agent with a bot token kept on its machine (never through Caldera, and never a customer agent's). So that it lands in the right topic, notify.json carries telegram: {chat_id, thread_id} of the agent's topic.
  • Questions have no fallback. While Caldera is down an agent's questions wait; the agent goes on with other work and its cards wait. This is deliberate.