tend

tend

面向编程智能体的终端运行时。你离开后服务器仍在运行。每个窗格标为 working、blocked 或 idle。

安装

curl -fsSL https://tend.auth.com.br/install.sh | sh

下载 tend-linux-amd64 · arm64 · 全部构建

将二进制放到 ~/.local/bin(或 $GOBIN / $TEND_INSTALL_DIR)。优先使用适合此机器的发布包;否则用 Go 克隆并编译。

从源码目录:make install。

1 claude ●

Claude Code  ~/src/tend

❯ keep the agents running after I detach

● The session is a background server.
  Closing this window does not stop them.

● Detach with ctrl+b d. Attach again
  and the same panes are there, still
  marked working, blocked or idle.

⠋ Writing the status line…
   esc to interrupt
2 codex ▲
codex  ~/src/tend

Do you want to proceed?

  Run make check before the commit

  internal/ui/draw.go
  cmd/tend/tui.go

❯ 1. Yes
  2. No

~/src/tend  feat/hero

work · tend · agents1:claude ●2:codex ▲

一次会话。没人看着的时候,服务器也还在。

不带参数时,tend 打开会话,若没有服务器则启动一个。tend new -- claude 打开窗格。tend ls 列出正在运行的。-s NAME 在旁边再开一个会话。

用 Go 写成。单一二进制。无 cgo。

断开后仍会留下的

程序
会话是后台服务器。ctrlb 再按 d 后智能体继续运行。再次打开 tend 会回到同样的窗格。
状态
窗格是 working、blocked 或 idle。标记来自屏幕上的内容 — 转圈、权限提示、等待中的 shell — 不是根据进程名猜测。
布局
space 容纳标签。标签容纳窗格。左右或上下分割,放大一个窗格,滚动历史,跳到停下来的智能体。

空间上方的工具

侧边栏顶部的六个按钮,每个都可在前缀后用一个键打开。

文件 f
窗格旁的面板:项目的文件树、在其中搜索,以及 git 改动 — diff、暂存、提交、推送。它跟随你正在工作的窗格。
代理 A
tend 认识的代理 CLI — Claude Code、Codex、Gemini CLI、Cursor、OpenCode 等 — 这台机器装了哪些,以及其余的安装命令,确认后在标签页中运行。
会话 S
本机所有 Claude Code 对话,按标题列出。输入即可搜索,回车在原目录的新标签页中恢复,标记旧会话并删除。
GitHub I
通过 gh 查看项目的 issue 和 pull request。评论、关闭、打标签、合并。在 issue 上按 w 会为它创建 worktree,并在其中启动你的代理去完成它。
浏览器与上下文 B C
带 tend 扩展的 Chromium、Chrome 或 Edge 窗口:在页面上选取元素,为每个写下要求,先在上下文面板中查看,再发送给代理。
更新
tend 会发现新版本并提示。在更新说明中按 u 即可安装,并在不停止窗格中程序的情况下把会话迁移过去。
GITHUB ISSUES · acme/shop                              4 of 4
 open   assigned to me   created by me   closed    Issues Pull requests
search label:bug 

#     title                              labels       author   age
42    Checkout button is grey on mobile  bug          ana      3h  
41    Footer links overlap the badge     bug, ui      bo       1d
38    Dark mode for the settings page    enhancement  ana      2d
35    Export orders as CSV               enhancement  carla    5d

enter open · w start work · c comment · x close · → pull requests · esc

issue 面板(prefix+I)。在 #42 上按 w,会在 issue-42-checkout-button-is-grey 上创建 worktree 并在其中启动你的代理。

AGENT SESSIONS                               2 marked · 5 of 38
search shop 

  ● Checkout redesign            acme/shop       now   4.2M
    Footer links overlap         acme/shop        3h   812K
✓   Orders CSV export            acme/shop       34d   1.9M 
✓   Old payment experiment       acme/shop       41d    96K
  ✗ Shop setup as root           root/shop       52d   220K

type to search · enter resume · tab mark · ^o 30+ days · ^d delete · esc
● open in a pane · ✗ cannot be opened here

会话列表(prefix+S)。回车在原位置的新标签页中恢复;ctrlo 标记一个月前的会话,ctrld 删除。在窗格中打开的会话永远不会被删除。

前缀是 ctrl+b

ctrlb ? 列出会话内的全部快捷键。

| -左右、上下分割
hjkl移动焦点
HJKL交换窗格
r调整大小(然后 h j k l,esc)
z将窗格放大到窗口
[回看历史
x关闭窗格
c n p 1–9标签:新建、下一个、上一个、按数字
N ( )空间:新建、上一个、下一个
a显示全部智能体(分组)
g选一个并跳转
d断开,保持一切运行