ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 newtonmunene99

autoname

名前のないセッションを、Haiku が生成した kebab-case slug で /rename し、一致する /color を設定する Claude Code plugin。バックグラウンドでセッションごとに 1 回動作します。

newtonmunene99@newtonmunene99

newtonmunene99/claudekit/tree/main/plugins/autoname

翻訳済み

この mod について

名前を付けずに残った Claude Code セッションに名前を付けるため、手動で /rename や /color を実行する必要がありません。名前のないセッションでメインターンが終わると、トランスクリプト(最初の 3 つのプロンプトと最新のプロンプト。スラッシュコマンドと画像プレースホルダーを除き、約 300 tokens)から Haiku に 2-4 語の kebab-case slug を生成させます。十分なテキストがあるターンを待ってから /rename <slug> と /color <colour> を実行し、slug から色を決定的に選びます。バックグラウンドで動作し、セッションがアイドルになるまでコマンドをキューに入れます。名前付きセッションは変更せず、subagent のターンをスキップし、セッションごとに 1 回だけ試します。mod(function hooks)をサポートする Claude Code ビルドが必要です。オプション 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.

関連作品