<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Agent on Kerolt's Note</title><link>https://kerolt.github.io/categories/agent/</link><description>Recent content in Agent on Kerolt's Note</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Mon, 05 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://kerolt.github.io/categories/agent/index.xml" rel="self" type="application/rss+xml"/><item><title>Pi 远程 SSH 图片剪贴板插件配置与踩坑</title><link>https://kerolt.github.io/p/pi-%E8%BF%9C%E7%A8%8B-ssh-%E5%9B%BE%E7%89%87%E5%89%AA%E8%B4%B4%E6%9D%BF%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE%E4%B8%8E%E8%B8%A9%E5%9D%91/</link><pubDate>Mon, 05 Oct 2026 00:00:00 +0000</pubDate><guid>https://kerolt.github.io/p/pi-%E8%BF%9C%E7%A8%8B-ssh-%E5%9B%BE%E7%89%87%E5%89%AA%E8%B4%B4%E6%9D%BF%E6%8F%92%E4%BB%B6%E9%85%8D%E7%BD%AE%E4%B8%8E%E8%B8%A9%E5%9D%91/</guid><description>&lt;h2 id="前言"&gt;前言&lt;/h2&gt;
&lt;p&gt;在 Mac 上通过 VS Code Remote SSH 连到远端无图形界面的 Fedora 开发机使用 Pi 时，按 &lt;code&gt;Ctrl+V&lt;/code&gt; 默认读不到 Mac 本地的剪贴板图片。&lt;/p&gt;
&lt;p&gt;解决思路很简单：&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Mac 端&lt;/strong&gt;：通过 &lt;code&gt;pngpaste&lt;/code&gt; 导出剪贴板图片，用 &lt;code&gt;launchd&lt;/code&gt; 监听端口（inetd 模式按需调用）；&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;传输层&lt;/strong&gt;：通过 SSH 反向隧道（&lt;code&gt;RemoteForward&lt;/code&gt;）把 Mac 本地的服务暴露给 Fedora 的 &lt;code&gt;127.0.0.1:7779&lt;/code&gt;；&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Fedora 端&lt;/strong&gt;：安装 &lt;a href="https://github.com/kerolt/pi-ssh-image-clipboard"&gt;&lt;code&gt;pi-ssh-image-clipboard&lt;/code&gt;&lt;/a&gt; 插件（fork 自 &lt;a href="https://github.com/pasky/pi-ssh-image-clipboard"&gt;pasky/pi-ssh-image-clipboard&lt;/a&gt;），拦截 &lt;code&gt;Ctrl+V&lt;/code&gt;，从 &lt;code&gt;127.0.0.1:7779&lt;/code&gt; 读取图片写入 &lt;code&gt;/tmp/&lt;/code&gt;，并将文件路径填入 Pi 输入框。&lt;/li&gt;
&lt;/ol&gt;
&lt;pre class="mermaid" style="visibility:hidden"&gt;flowchart LR
A[Mac 剪贴板] --&gt; B[launchd + pngpaste
127.0.0.1:7779]
B --&gt;|SSH RemoteForward| C[Fedora
127.0.0.1:7779]
C --&gt; D[pi-ssh-image-clipboard]
D --&gt; E[`/tmp/pi-clipboard-UUID.png`]
E --&gt; F[Pi 输入框]&lt;/pre&gt;
&lt;p&gt;整个链路不复杂，但配置时最容易踩的坑是：&lt;strong&gt;以为在 &lt;code&gt;~/.ssh/config&lt;/code&gt; 里写了 &lt;code&gt;RemoteForward&lt;/code&gt; 就完事了，实际当前已有的 VS Code SSH 连接或 ControlMaster 并不会动态补上新转发&lt;/strong&gt;。&lt;/p&gt;</description></item><item><title>Hermes Session 管理：飞书/微信/CLI 统一会话模型</title><link>https://kerolt.github.io/p/hermes-session-%E7%AE%A1%E7%90%86%E9%A3%9E%E4%B9%A6-%E5%BE%AE%E4%BF%A1-cli-%E7%BB%9F%E4%B8%80%E4%BC%9A%E8%AF%9D%E6%A8%A1%E5%9E%8B/</link><pubDate>Tue, 25 Aug 2026 00:00:00 +0000</pubDate><guid>https://kerolt.github.io/p/hermes-session-%E7%AE%A1%E7%90%86%E9%A3%9E%E4%B9%A6-%E5%BE%AE%E4%BF%A1-cli-%E7%BB%9F%E4%B8%80%E4%BC%9A%E8%AF%9D%E6%A8%A1%E5%9E%8B/</guid><description>&lt;h2 id="背景"&gt;背景&lt;/h2&gt;
&lt;p&gt;Hermes 把 CLI、TUI、桌面 app、几十种 messaging 平台（飞书/微信/Telegram/Discord/Slack…）接到同一份&amp;quot;agent core&amp;quot;上。理解它的 session 模型，是理解为什么&amp;quot;我换个入口跟它说话&amp;quot;和&amp;quot;我在同个地方继续说&amp;quot;行为完全不同的关键。&lt;/p&gt;</description></item></channel></rss>