ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 newtonmunene99

autoname

Claude Code 外掛透過 /rename,使用 Haiku 產生的 kebab-case slug 為未命名工作階段命名,並設定相符的 /color;每個工作階段在背景執行一次。

newtonmunene99@newtonmunene99

newtonmunene99/claudekit/tree/main/plugins/autoname

已翻譯

關於這個 mod

為被留下未命名的 Claude Code 工作階段命名,這樣就不必手動執行 /rename 和 /color。工作階段的主要回合結束且仍沒有名稱後,它會讓 Haiku 根據對話記錄產生一個由 2-4 個單字組成的 kebab-case slug(前三個提示與最新提示,不含斜線指令或圖片佔位符,約 300 tokens)。它會等待文字足夠多的回合,然後執行 /rename <slug> 和 /color <colour>,並從 slug 確定性地選擇顏色。它在背景執行,並在工作階段閒置前將指令排入佇列。它絕不會重新命名已有名稱的工作階段,會跳過子代理回合,每個工作階段只嘗試一次。需要支援 mod 的 Claude Code 版本(function hooks)。選項 color(預設開啟)也會設定工作階段顏色。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add newtonmunene99/claudekit
claude plugin install autoname
原文 / README

autoname

Names a Claude Code session that was left unnamed, so you don't have to /rename and /color by hand.

After a main turn of a session with no name, it asks Haiku for a 2–4 word kebab-case slug from the transcript: your first three prompts and the latest, without slash commands or image placeholders (about 300 tokens). It waits for a turn with enough text to name from. Then it runs /rename <slug> and /color <colour>. The colour is picked from the slug, so the same name always gets the same colour. It runs in the background; the commands queue until the session is idle and show in the transcript like typed ones.

It never renames a session that already has a name (from /rename, or a name Claude Code reports at session start or with a prompt), it skips subagent turns, and it tries once per session.

Needs a Claude Code build with mod support (function hooks).

Options

| Option | Default | What it does | | :----- | :------ | :----------- | | color | on | Also set the session colour with /color |

Set with /config or /plugin configure autoname@claudekit.

更多類似作品