Shifty-Eye-Games/claude-mods/tree/main/plugins/machine-tag
machine-tag
一個 Claude Code 外掛,會用每台機器的 emoji 標籤(💻 MBP、🪶 Air、🎮 Rig、🔥 5090)替工作階段標題加上前綴,並提供 /machine-tag <emoji> <word> 指令,讓你按機器覆寫標籤。
關於這個 mod
machine-tag 是 Shifty-Eye-Games/claude-mods 市集的一部分,以 function hook 外掛的形式在 Claude Code 工作階段中執行。工作階段開始時,它會讀取本機的機器識別(macOS 上使用 scutil ComputerName,失敗時改用 hostname),再用相符的 emoji 前綴設定工作階段標題,讓釘選和列出的工作階段顯示它們在哪台電腦上執行。斜線指令 /machine-tag <emoji> <word> 可以按機器覆寫標籤。安裝使用 claude-mods 市集(claude plugin marketplace add Shifty-Eye-Games/claude-mods,接著 claude plugin install machine-tag@claude-mods);儲存庫是私有的,因此每台機器都需要非互動式 GitHub 憑證(SSH key 或已儲存的 HTTPS 憑證),才能讓複製和自動更新成功。
安裝
請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。
claude plugin marketplace add Shifty-Eye-Games/claude-mods claude plugin install machine-tag
原文 / README
claude-mods
Private Claude Code marketplace for Tuncer's mods: function-hook plugins that run inside every Claude Code session on his machines (MacBook Pro, MacBook Air, therig, the 5090 PC).
| Plugin | What it does |
| --- | --- |
| memory-guards | Refuses the footgun commands Claude's memory notes warn about (for example impeccable update --help, routing shiftyeyegames.com DNS through cloudflared, /logout before cswap add) and says why, with the safe alternative. |
| kb-health | Shows KB health in the status line on the machine that runs the KB. It stays quiet on machines without the KB snapshot job. |
| machine-tag | Prefixes session titles with the machine's emoji tag (💻 MBP, 🪶 Air, 🎮 Rig, 🔥 5090), so pinned sessions show which computer they run on. /machine-tag <emoji> <word> overrides it per machine. |
Install on a machine
claude plugin marketplace add Shifty-Eye-Games/claude-mods
claude plugin install memory-guards@claude-mods
claude plugin install kb-health@claude-mods
claude plugin install machine-tag@claude-mods
Then turn on auto-update: in /plugin, open Marketplaces, pick claude-mods and enable auto-update, or set it in ~/.claude/settings.json:
"extraKnownMarketplaces": {
"claude-mods": {
"source": { "source": "github", "repo": "Shifty-Eye-Games/claude-mods" },
"autoUpdate": true
}
}
Each session start then pulls main. No versions are set, so every commit is an update.
The repo is private, so each machine needs GitHub access without a prompt: an SSH key GitHub knows (Claude Code tries ssh -T [email protected] first), or stored HTTPS credentials (gh auth login then gh auth setup-git, or Git Credential Manager on Windows). Without them the clone and the updates fail silently and the machine keeps its last copy.
Machines that loaded these mods from local folders before must drop those folders from CLAUDE_CODE_PLUGIN_DIRS in ~/.claude/settings.json, or each mod loads twice.
Change a mod
- Edit it under
plugins/<name>/. - Check it:
claude plugin validate plugins/<name>andclaude plugin test plugins/<name>. - Push to
main. Versions are left unset on purpose, so each commit reaches every machine at its next session start.
How mods work, and the engine rules that bite, are in Claude's memory note on Claude Code mods.
Security
Auto-update is on, so whatever lands on main runs in every session on all four machines. Only org admins can push here (the org's default member permission is read). Keep it that way: never give anyone else write access.
