---
title: "session-title"
url: "https://claudemods.dev/zh-tw/builds/session-title-899945"
source: "https://github.com/0xGondarxyz/claude-code-mods/tree/main/session-title"
source_type: "github"
repo: "https://github.com/0xGondarxyz/claude-code-mods/tree/main/session-title"
author: "0xGondarxyz"
author_handle: "0xGondarxyz"
stars: 0
category: "儀表板與 HUD"
categories: ["hud"]
tags: ["claude-code", "haiku", "hooks", "mod", "session-title", "statusline"]
permission_level: 3
scan_complete: true
install: "claude plugin marketplace add 0xGondarxyz/claude-code-mods\nclaude plugin install session-title@claude-code-mods"
added: "2026-10-05T15:41:58.922Z"
updated: "2026-10-04T03:31:50Z"
locale: "zh-tw"
content_locale: "zh-tw"
---

# session-title

一個 Claude Code mod，會在提示列下方頁尾列的最右側顯示工作階段主題的短標題，讓你一眼分辨許多開啟中的終端機。

## Description

# 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

## Install

```
claude plugin marketplace add 0xGondarxyz/claude-code-mods
claude plugin install session-title@claude-code-mods
```

## Original 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
