agent-shell 0.55 updates
agent-shell 0.55 updates
It’s been a little while since my last agent-shell update, so let’s go through the latest highlights as of v0.55. 距离我上一次更新 agent-shell 已经过去一段时间了,让我们来看看 v0.55 版本的最新亮点。
What’s agent-shell?
什么是 agent-shell?
agent-shell is a native Emacs mode to interact with AI agents powered by ACP (Agent Client Protocol). agent-shell 是一个原生的 Emacs 模式,用于与由 ACP(Agent Client Protocol,代理客户端协议)驱动的 AI 代理进行交互。
Picking up where I left off
重新出发
If you noticed slower project activity in April, this is why. I’m getting better at the new 24-hour job, so I’ve resumed working on agent-shell. I’m still chipping away at the backlog that built up while I was away, but if there’s anything in particular you’d like me to look at, feel free to ping. 如果你注意到四月份项目进度变慢了,原因就在这里。我已经逐渐适应了新的全天候工作,所以恢复了对 agent-shell 的开发。我仍在努力处理离开期间积压的任务,但如果你有特别希望我关注的内容,请随时联系我。
Anthropic, Google, and why ACP matters
Anthropic、Google 以及为什么 ACP 很重要
With Anthropic’s SDK subscription support changing, Google’s Gemini CLI deprecation, and Antigravity’s unclear support for the Agent Client Protocol (ACP), vendor-neutral tools matter more than ever. Luckily, agent-shell is built on ACP, which sidesteps the problem. When a vendor changes course, you can swap providers and keep using your preferred tool. No need to reshape that hard-earned muscle memory. On that note, the list of agents supported by agent-shell continues to grow. 随着 Anthropic 的 SDK 订阅支持发生变化、Google 的 Gemini CLI 被弃用,以及 Antigravity 对 ACP(代理客户端协议)的支持尚不明确,供应商中立的工具变得比以往任何时候都重要。幸运的是,agent-shell 基于 ACP 构建,从而规避了这些问题。当供应商改变策略时,你可以更换服务商,并继续使用你偏好的工具,无需重新培养辛苦建立的肌肉记忆。顺便提一下,agent-shell 支持的代理列表仍在不断增长。
Supported agents
支持的代理
Here’s a list of the latest agents now supported by agent-shell. 以下是目前 agent-shell 支持的最新代理列表:
- Auggie
- Claude
- Cline
- CodeBuddy (new by @illidan127)
- Codex
- Cursor Factory
- Droid
- Gemini CLI
- GitHub Copilot CLI
- Goose
- Hermes (new by @yitang)
- Kimi Code (new by @nicolaisingh)
- Kiro
- Mistral Vibe
- OpenCode
- Pi
- Qwen Code
agent-shell needs your support
agent-shell 需要你的支持
Speaking of vendor-neutral tools being more important than ever, there are a couple of ways to help keep agent-shell going. Some cost money, others just a click. All are appreciated ;) 说到供应商中立工具的重要性,有几种方法可以帮助 agent-shell 继续发展。有些需要资金支持,有些只需点击一下鼠标。无论哪种方式,我都非常感激 ;)
Sponsorships for agent-shell longevity
为 agent-shell 的长期发展提供赞助
agent-shell has been attracting quite a few users. It’s nice to hear folks are using agent-shell on a daily basis. They are often relieved agent-shell exists as an alternative to AI-tools commonly mandated at work. Those tools have well-funded engineering teams behind them, while agent-shell is just me, an indie dev ;) agent-shell 已经吸引了不少用户。很高兴听到大家在日常工作中使用它。他们通常很庆幸有 agent-shell 这样一个替代方案,来应对工作中强制使用的 AI 工具。那些工具背后有资金雄厚的工程团队,而 agent-shell 只有我一个独立开发者 ;)
Time spent on agent-shell is time away from work that pays the bills, so if it’s useful to you, please consider sponsoring the project. Every individual sponsorship genuinely helps keep the project going. And if your employer benefits from your agent-shell use, they’re typically in a position to contribute at a scale individuals can’t, so nudge them to chip in too. 投入在 agent-shell 上的时间意味着减少了处理本职工作的时间,所以如果它对你有用,请考虑赞助该项目。每一笔个人赞助都能切实帮助项目维持下去。如果你的雇主也从你对 agent-shell 的使用中受益,他们通常有能力提供个人无法企及的资助,所以不妨推动他们也出一份力。
Hey, I’m looking at you, folks at Google, GitHub, GitLab, NVIDIA, Oracle, Red Hat, Yelp, Venmo, ARM, Spotify, Augment Code, Hinge, Mercury, Nubank, Veeva… Some of you are using agent-shell. Nudge your employer ;) 嘿,我是在说你们,Google、GitHub、GitLab、NVIDIA、Oracle、Red Hat、Yelp、Venmo、ARM、Spotify、Augment Code、Hinge、Mercury、Nubank、Veeva 的朋友们……你们中有些人正在使用 agent-shell。去推动你们的雇主吧 ;)
GitHub stars for Anthropic credit
通过 GitHub Star 获取 Anthropic 额度
Anthropic offers 6 months of free Claude Max 20x for qualifying open-source projects with at least 5,000+ GitHub stars. Starring agent-shell costs nothing and can save me some money. We’re only a 5th of the way there ;) so if you don’t mind a couple of clicks, the project can really use another GitHub star. Anthropic 为符合条件的开源项目提供 6 个月的免费 Claude Max 20x 使用权,前提是项目在 GitHub 上拥有至少 5,000 个 Star。给 agent-shell 点个 Star 不需要任何成本,却能帮我省下一笔钱。我们目前只完成了目标的五分之一 ;) 所以如果你不介意动动手指,项目真的很需要你的 Star。
Speaking of GitHub stars, agent-shell is now my most popular Emacs package, recently overtaking chatgpt-shell. 说到 GitHub Star,agent-shell 现在是我最受欢迎的 Emacs 插件,最近刚刚超过了 chatgpt-shell。
New markdown renderer
全新的 Markdown 渲染器
agent-shell now ships with a brand new, more performant inline markdown renderer. This is the biggest internal change in some time. Enabled by default via agent-shell-markdown-render-function (moving away from the overlay-based renderer in shell-maker).
agent-shell 现在配备了一个全新的、性能更高的内联 Markdown 渲染器。这是近期最大的内部改动。通过 agent-shell-markdown-render-function 默认启用(不再使用 shell-maker 中基于 overlay 的渲染器)。
Access/navigate table content
访问/导航表格内容
Table content is now accessible. Point can land on any cell, which wasn’t possible with the previous overlay implementation. In addition, tables are now also navigable: TAB and S-TAB move between cells. 表格内容现在可以访问了。光标可以停留在任何单元格上,这在之前的 overlay 实现中是无法做到的。此外,表格现在也可以导航:使用 TAB 和 S-TAB 可以在单元格之间移动。
Improved source block support (enabled by default)
改进的代码块支持(默认启用)
Source-block syntax highlighting is now on by default. The per-snippet copy button is now keyboard-accessible too (previously mouse-click only, due to the overlay implementation). 代码块语法高亮现在默认开启。每个代码片段的复制按钮现在也可以通过键盘访问(之前由于 overlay 实现的限制,只能通过鼠标点击)。
New blockquotes support
新增引用块支持
Blockquotes now render in both shell and viewport. More importantly, you can select text in either a viewport page (or the shell itself), press r (for reply) and the selection becomes a blockquote in a fresh prompt.
引用块现在可以在 shell 和 viewport 中渲染。更重要的是,你可以在 viewport 页面(或 shell 本身)中选择文本,按下 r(回复),所选内容就会变成新提示词中的引用块。
Session restoration
会话恢复
Session restoration got a meaningful overhaul (#605 by @nhojb), now exposed via agent-shell-session-restore-verbosity, with four levels:
会话恢复功能进行了重大改进(#605,由 @nhojb 贡献),现在通过 agent-shell-session-restore-verbosity 暴露,包含四个级别:
- minimal (default): title only, so restore is fast and quiet (needs session/resume support).
- minimal(默认): 仅标题,恢复快速且安静(需要 session/resume 支持)。
- last: render the last prompt turn (needs session/load support).
- last: 渲染最后一次提示词交互(需要 session/load 支持)。
- first-last: render the first and last prompt turns (needs session/load support).
- first-last: 渲染第一次和最后一次提示词交互(需要 session/load 支持)。
- full: replay the whole conversation (needs session/load support).
- full: 重放整个对话(需要 session/load 支持)。
Feature availability is agent-specific, requiring either session/resume or session/load request support. agent-shell degrades as needed, ultimately falling back to creating a new session. Note that anything but minimal verbosity is fairly new, so please report bugs or rough edges. Relatedly, agent-shell-session-strategy now defaults to 'prompt, and 'new-deferred has been retired.
功能可用性取决于具体的代理,需要 session/resume 或 session/load 请求支持。agent-shell 会根据需要进行降级,最终回退到创建新会话。请注意,除 minimal 之外的详细级别都比较新,因此如果发现 Bug 或体验不佳,请及时反馈。相关地,agent-shell-session-strategy 现在默认设置为 'prompt,而 'new-deferred 已被弃用。
Session forking
会话分支
You can now fork the current session, starting a new shell that shares the conversation history so far and diverges from there. Invoke via M-x agent-shell-fork.
你现在可以对当前会话进行分支(fork),启动一个新的 shell,共享到目前为止的对话历史,并从该点开始分叉。通过 M-x agent-shell-fork 调用。
Restart/reload session
重启/重载会话
You can now restart the current shell anew (drop history) via M-x agent-shell-restart or reload (keep history) via agent-shell-reload.
你现在可以通过 M-x agent-shell-restart 重新开始当前 shell(丢弃历史记录),或通过 agent-shell-reload 进行重载(保留历史记录)。
Downloads/Temp shells
下载/临时 Shell
The new agent-shell-new-downloads-shell and agent-shell-new-temp-shell commands create agents anchored at either ~/Downloads or a temp directory. Both are also reachable via C-u M-x agent-shell.
新的 agent-shell-new-downloads-shell 和 agent-shell-new-temp-shell 命令可以创建锚定在 ~/Downloads 或临时目录中的代理。两者也可以通过 C-u M-x agent-shell 访问。
TRAMP support
TRAMP 支持
acp.el #20 by @martenlienen landed support for ACP connections over TRAMP, now making it possible to drive remote agents from agent-shell. Pair it with agent-shell-tramp for the user-facing integration.
acp.el #20(由 @martenlienen 贡献)实现了通过 TRAMP 进行 ACP 连接的支持,现在可以在 agent-shell 中驱动远程代理。配合 agent-shell-tramp 使用即可实现面向用户的集成。
Viewport improvements
Viewport 改进
Viewport interaction (setq agent-shell-prefer-viewport-interaction t) continue…
Viewport 交互(setq agent-shell-prefer-viewport-interaction t)持续更新中……