<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Telegram on Armstrong Yan</title><link>https://yanqian.github.io/zh/tags/telegram/</link><description>Recent content in Telegram on Armstrong Yan</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Mon, 20 Jul 2026 23:20:13 +0800</lastBuildDate><atom:link href="https://yanqian.github.io/zh/tags/telegram/index.xml" rel="self" type="application/rss+xml"/><item><title>远程智能体工作流（三）：把 Telegram 变成本地 Codex 的控制面</title><link>https://yanqian.github.io/zh/posts/publish/turning-telegram-into-a-local-codex-control-plane/</link><pubDate>Mon, 20 Jul 2026 23:20:13 +0800</pubDate><guid>https://yanqian.github.io/zh/posts/publish/turning-telegram-into-a-local-codex-control-plane/</guid><description>&lt;p&gt;这是「远程智能体工作流」系列的第三篇。&lt;/p&gt;
&lt;p&gt;前两篇文章里，我先搭出了一条实用的远程终端链路：&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;手机 -&amp;gt; Tailscale -&amp;gt; SSH -&amp;gt; Mac -&amp;gt; tmux -&amp;gt; Codex
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;有了这条链路，我就能可靠地从手机连接自己的 Mac。&lt;/p&gt;
&lt;p&gt;但新的局限很快就暴露出来：手机并不好用来操作终端。&lt;/p&gt;
&lt;p&gt;移动端 SSH 适合救急，但我不想靠它处理需要长时间运行的 AI 开发任务。我不想在狭窄的手机屏幕上敲 shell 命令、连接 tmux 会话、翻找长篇日志，再一点点拼凑出当前状态。&lt;/p&gt;
&lt;p&gt;我真正想要的，是下面这样的链路：&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-text" data-lang="text"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;手机 -&amp;gt; 任务式接口 -&amp;gt; 本地智能体运行时 -&amp;gt; 仓库状态
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;于是，我做了一个小型 Telegram Bot，把它用作本地 Codex 的控制面。&lt;/p&gt;
&lt;p&gt;关键不在于 Telegram 有多特别。&lt;/p&gt;
&lt;p&gt;真正重要的是：手机成为控制界面，而 Mac 仍然负责执行工作。&lt;/p&gt;
&lt;h2 id="为什么选-telegram"&gt;
 为什么选 Telegram
 &lt;a class="heading-link" href="#%e4%b8%ba%e4%bb%80%e4%b9%88%e9%80%89-telegram"&gt;
 &lt;i class="fa-solid fa-link" aria-hidden="true" title="链接到标题"&gt;&lt;/i&gt;
 &lt;span class="sr-only"&gt;链接到标题&lt;/span&gt;
 &lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;Telegram 很适合用来做这个实验，因为它已经具备：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;移动端通知&lt;/li&gt;
&lt;li&gt;简短的命令消息&lt;/li&gt;
&lt;li&gt;回复串&lt;/li&gt;
&lt;li&gt;内联按钮&lt;/li&gt;
&lt;li&gt;跨设备历史记录&lt;/li&gt;
&lt;li&gt;成熟的 Bot API&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;更重要的是，Telegram 支持两种截然不同的部署模式。&lt;/p&gt;
&lt;p&gt;&lt;img src="https://yanqian.github.io/posts/publish/turning-telegram-into-a-local-codex-control-plane/assets/turning-telegram-into-a-local-codex-control-plane/01-webhook-vs-polling.svg" alt="Telegram 的 webhook 与 polling 模式"&gt;&lt;/p&gt;
&lt;p&gt;第一种是 webhook 模式：&lt;/p&gt;</description></item></channel></rss>