Says which Claude Code plugins the window running a hook loaded (from agent-tools, AGT-85)
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nelson 4a8945e341
All checks were successful
Suite release / module (push) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / deliver-prune (push) Has been skipped
Suite release / scope (push) Successful in 5s
Suite release / check-package (push) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / finalize (push) Has been skipped
Suite release / publish (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / check-manifest (push) Has been skipped
Suite release / reserve (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Fix the shared CI's lint findings (PIPT-85) (#2)
2026-11-30 14:27:33 -08:00
claudeplugin.go claudeplugin moves in from agent-tools, unchanged (#1) 2026-11-29 23:30:16 -08:00
claudeplugin_test.go claudeplugin moves in from agent-tools, unchanged (#1) 2026-11-29 23:30:16 -08:00
go.mod claudeplugin moves in from agent-tools, unchanged (#1) 2026-11-29 23:30:16 -08:00
README.md Fix the shared CI's lint findings (PIPT-85) (#2) 2026-11-30 14:27:33 -08:00

claudeplugin

Says which Claude Code plugins the window running a hook loaded.

The home PCs load each app's plugin from its folder in CLAUDE_CODE_PLUGIN_DIRS (C:\Program Files\at-home\claude-plugins\<app>), which Claude reads once at start and passes to every hook it runs. While a hook moves from one app's plugin to another's (AHT-255: claude-pane and tmux-strip from at-home-tools' plugin to their own), the old entry is given --unless-plugin <new app>, so a window that loaded both runs the hook once, and a window that loaded only the old plugin still runs it.

  • Loaded(dirs, name): whether the plugin folder list dirs holds app name's plugin.
  • LoadedHere(name): the same for this process's CLAUDE_CODE_PLUGIN_DIRS.

It was agent-tools' claudeplugin package until shared packages got repositories of their own (AGT-85, AHT-258).

Using it

require forgejo.romaine.life/romaine-life/claudeplugin v0.1.0
import "forgejo.romaine.life/romaine-life/claudeplugin"

if unless != "" && claudeplugin.LoadedHere(unless) {
    return // the new plugin runs this hook
}

Testing

go test ./....

Shipping

A library: the release-module topic in pipeline-templates' fleet.json tags each merge that changes the code, and every fleet repository whose go.mod requires it gets a take-up. Forgejo pushes it to its public GitHub copy, which proxy.golang.org serves to builds outside CI.