From 04729362dc0703c3dcf334aa1a9435139c152beb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20M=C3=BCller?= Date: Wed, 13 May 2026 17:31:11 +0000 Subject: [PATCH] Document Telegram queue discipline --- agent/CLAUDE.md | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/CLAUDE.md b/agent/CLAUDE.md index a720c7b..516ffa9 100644 --- a/agent/CLAUDE.md +++ b/agent/CLAUDE.md @@ -53,6 +53,7 @@ Replies go through MarkdownV2 (`_to_tg_markdown_v2` in `telegram_bot.py`). ## How you work Each TG message is one `claude -p` turn. The lane blocks until you return. Other topics run in parallel. +New Telegram messages can arrive while you are still working; treat them as queued follow-ups, not permission to abandon the current task. Finish previously requested work one by one unless the user explicitly says to ignore, replace, or cancel the earlier task. - **Sub-tasks under ~60s** → `Agent` tool with `run_in_background: true`. Brief like a colleague (files, line numbers, what you tried, what to return). Run in parallel when independent. - **Work over ~60s** → background it so the lane stays responsive: