``` Agent Shell 0.5 改进 ```
Agent Shell 0.5 Improvements

原始链接: https://xenodium.com/agent-shell-0-5-improvements

## agent-shell 0.5:重大更新 agent-shell 自首次发布以来已收到近 100 次提交,为基于 Emacs 的 LLM 代理界面带来了显著改进。主要更新包括对 **Claude Code Codex** 和 **Gemini CLI Goose** 代理的支持,加入现有选项。**统一的 `M-x agent-shell` 入口点**简化了代理选择,与现有的特定代理命令并存。 可用性得到了增强,新增了 **切换显示功能** (`agent-shell-toggle`) 和改进的 **快速差异** 功能,具有上下文、单键导航和更清晰的文件头。用户现在可以从 Emacs、`.env` 文件或内联方式管理 **环境变量**。还实现了灵活的 **身份验证方法**(API 密钥或登录)。 进一步的改进包括 UX 优化,例如单键权限和改进的错误消息。现在提供实验性的 **dev container 支持**。底层的 `acp.el` 库也受益于改进的流量检查,用于调试。 该项目欢迎社区贡献,并依赖赞助来支付 LLM token 成本和开发时间。

黑客新闻 新 | 过去 | 评论 | 提问 | 展示 | 招聘 | 提交 登录 Agent Shell 0.5 改进 (xenodium.com) 12 分,由 xenodium 1 小时前发布 | 隐藏 | 过去 | 收藏 | 1 条评论 tptacek 21 分钟前 [–] 这显然是一个 Emacs LLM 模式。回复 考虑申请 YC 的 2026 年冬季批次!申请截止至 11 月 10 日 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索:
相关文章

原文
agent-shell 0.5 improvements

While it's only been a few weeks since introducing agent-shell, we've landed nearly 100 commits and enough improvements to warrant a new blog post.

More agents

agent-shell now includes support for two additional ACP-capable agents:

  • Claude Code
  • Codex via codex-acp (new)
  • Gemini CLI
  • Goose (new)

Unified entry point

In addition to starting new shells via agent-specific commands, we now have a unified M-x agent-shell entry point, enabling selection from a list of supported agents.

The agent-specific commands remain available as usual:

  • M-x agent-shell-anthropic-start-claude-code
  • M-x agent-shell-openai-start-codex
  • M-x agent-shell-google-start-gemini
  • M-x agent-shell-goose-start-agent

Toggling display

agent-shell now provides basic control to toggle display of shell buffers:

  • M-x agent-shell-toggle: Toggles display of the most recently accessed agent (per project).
  • agent-shell-display-action: Controls how agent shells are displayed when activated.

While agent-shell provides basic display toggling, Calum MacRae offers a comprehensive sidebar package. Check out agent-shell-sidebar.

Experimental dev container support (thanks to Fritz Grabo)

agent-shell now has experimental support for running agents inside dev containers. See docs.

quick-diff improvements

quick-diff buffers, proposing changes, get a more polished experience. More notably, diffs get context (thanks to David J. Rosenbaum), single-key patch navigation/acceptance, and file names now displayed in header line.

Environment variables

Environment variables can now be loaded from either the Emacs environment, .env files, and/or overridden inline:

(setq agent-shell-anthropic-claude-environment
      (agent-shell-make-environment-variables
       :inherit-env t
       :load-env "~/.env"
       "CUSTOM_VAR" "custom_value"))

Authentication methods

Different authentication methods are now supported. For example:

;; Login-based auth
(setq agent-shell-anthropic-authentication
      (agent-shell-anthropic-make-authentication :login t))

;; API key auth
(setq agent-shell-anthropic-authentication
      (agent-shell-anthropic-make-authentication
       :api-key (lambda () (auth-source-pass-get "secret" "anthropic-api-key"))))

Check agent-shell-*-authentication per provider, as available options may differ.

UX polish

On the smaller side, but also contributing to overall polish:

  • Single-key permission bindings (y/n/!).
  • Improved error messages.
  • Improved task status rendering.
  • Improved TAB navigation.

Traffic inspection and debugging

While not technically part of agent-shell, acp.el's traffic inspection has been getting some love to help users diagnose issues.

Contributions

Thank you for your contributions!

  • David J. Rosenbaum: Context support in diffs (PR).
  • Fritz Grabo: Dev container support (PR).
  • Grant Surlyn: Doom Emacs installation instructions (PR).
  • Mark A. Hershberger: Goose key improvement (PR).
  • Ruslan Kamashev: Customization group fix (PR).

Thank you to all sponsors. While LLMs aren't everyone's cup of tea, we're seeing editors across the board evolving to accommodate these new LLM tools. In a somewhat similar vein, LSP integration wasn't for everyone, but for those who did want it, Emacs luckily catered to them. Thank you for helping make this project sustainable while also enabling Emacs to cater to all.

Support this work

If agent-shell or acp.el are useful to you, consider sponsoring its development. LLM tokens aren't free, and neither is the time dedicated to building this stuff ;-)

powered by LMNO.lol

privacy policy · terms of service

联系我们 contact @ memedata.com