From session-nametag
Names and colors each Claude Code session when it starts (folder, branch, instance number, machine, model, start time), so many sessions are easy to tell apart. /nametag picks the style.
5 events · 20 calls
Ships in session-nametag. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
fs.existsfs.readenv.getcommand.runEach event it registers a hook on, with the matcher when it sets one
session.startturn.startturn.completenpx claudepluginhub lperezmo/session-nametag --plugin session-nametagcommand.runsession.endEvery mods API method its source calls, by namespace
aftereverynowregisterrungetexistsreadcwdidmodelreporootturnsusagedeletegetkeyssetlogCOMPUTERNAMEHOSTNAMENAMETAG_OFFWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.ts (written ./register.ts)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.