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
