From swarmery-link
Mod (function hooks): reports this session's live state (turn start and end, tool calls by name and input hash, context fill, rate limits, cost) to a local swarmery daemon over its token-guarded link API, and switches itself off when the daemon's token file is absent. The sensor never blocks, changes or answers a hook's event. With the opt-in control option it also long-polls the daemon for this session's commands: stop aborts the running turn, prompt submits a prompt once the session is idle. With the opt-in forecast option it asks a small model, once per user turn and without holding the turn, what the turn will touch, and reports the forecast beside the actual (paths and numbers only) so the daemon can score its surprise. With the opt-in approvals option a permission ask goes to the swarmery approvals queue first and an AskUserQuestion can be answered from the dashboard; whenever the daemon is down or does not decide in time, the engine's own verdict, the hook shim or the native dialog takes over. With the opt-in swarm option it reports messages sent to and received from other sessions, claims each file the session starts editing in a registry shared by its sessions (a line beneath the answer when another live session edits the same file; with the opt-in claimConflicts option such a write is asked, or refused where no person would see the ask), and lets the dashboard send another session a message. With the opt-in planBand option it draws the session's plan phase and checklist above the prompt from the daemon's plan view, adds /phase, shows interview-style questions as a card and flags a turn that drifts off the phase.
15 events · 29 calls
Trending mods
7-day visitors to each mod page
Ships in swarmery-link. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.checktool.callhttp.fetchfs.readenv.getmodel.classifymodel.completeprompt.submitsession.sendEach event it registers a hook on, with the matcher when it sets one
session.startturn.starttool.calltool.checktool.call{tool=AskUserQuestion}classic.SessionStartclassic.UserPromptSubmitclassic.PostToolUseclassic.PostToolUseFailuresession.measureturn.completesession.endsession.sendsession.receiveui.render{component=AbovePrompt}ui.render{component=Pane, requestId=?}ui.render{component=AskUserQuestion}command.run{command=phase}Every mods API method its source calls, by namespace
listaftereverynowregistergetreadfetchclassifycompletesubmitcwdidsendusagedeletegetkeyssetabortaskcopyinvalidatelognoticeopenresolvestatustoastHOMEWhere 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.
7-day visitors to each mod page
npx claudepluginhub atretyak1985/swarmery --plugin swarmery-link