ClaudeMods
☰
ZH-CN
● 0 人在线 · 浏览 0 次
赞助提交作品
GitHub 仓库 · 发布者 newtonmunene99

autoname

Claude Code plugin 通过 /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.

更多类似作品