0xGondarxyz/claude-code-mods/tree/main/session-title
session-title
一个 Claude Code mod,会在提示列下方页脚行的最右侧显示工作阶段主题的简短标题,让你一眼区分多个打开的终端。
关于这个 mod
session-title
一个 Claude Code mod,会在提示列下方页脚行的最右侧显示工作阶段主题的简短标题,让你一眼区分多个打开的终端。
安装
/plugin marketplace add 0xGondarxyz/claude-code-mods
/plugin install session-title@claude-code-mods
也可以不安装直接试用:
git clone https://github.com/0xGondarxyz/claude-code-mods
claude --plugin-dir claude-code-mods/session-title
mod 没有沙箱隔离,拥有与 Claude Code 相同的访问权限。安装任何 mod(包括这个 mod)之前,请先阅读源代码。
显示内容
提示列下方的页脚行最右侧:
Checkout page bug
标题由 Haiku 根据你的第一条提示、最近 8 条提示和上一条 assistant 回复生成,共 2 到 5 个词。每次出现新提示的回合都会更新;工作阶段开始时也会更新一次,因此恢复的工作阶段会立即得到标题。如果当前标题仍然放得下,就会保留它。
注意事项
- 每次刷新都会进行一次小型 Haiku 调用(最多 30 个输出 token)。
- 如果调用失败或超时,会保留之前的标题。
- subagent 的回合不会触发刷新。
测试
claude plugin test .
MIT
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add 0xGondarxyz/claude-code-mods claude plugin install session-title
原文 / README
session-title
A Claude Code mod that shows a short title of what the session is about at the right end of the footer line under the prompt, so you can tell many open terminals apart at a glance.
Install
/plugin marketplace add 0xGondarxyz/claude-code-mods
/plugin install session-title@claude-code-mods
Or try it without installing:
git clone https://github.com/0xGondarxyz/claude-code-mods
claude --plugin-dir claude-code-mods/session-title
Mods are not sandboxed. They run with the same access as Claude Code. Read the source before you install any mod, including this one.
What it shows
Footer line under the prompt, at the right end:
Checkout page bug
The title has 2 to 5 words. It is made by Haiku from your first prompt, your last 8 prompts and the last assistant reply. It updates after each turn that has a new prompt, and once when the session starts, so resumed sessions get a title at once. If the current title still fits, it stays.
Notes
- Each refresh makes one small Haiku call (30 output tokens at most).
- If the call fails or times out, the previous title stays.
- Turns from subagents do not trigger a refresh.
Tests
claude plugin test .
MIT
