From detour
Fork a side question off your Claude Code session, see the forks as a tree, and come back to where you were
7 events · 21 calls
Ships in detour. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callfs.readfs.statcommand.runprompt.submitEach event it registers a hook on, with the matcher when it sets one
session.startturn.startturn.completesession.stopcommand.run{command=side}command.run{command=back}command.run{command=tree}ui.render{component=Pane, requestId=?}ui.render{component=AbovePrompt}tool.callEvery mods API method its source calls, by namespace
everynowregisterrunreadstatfillsubmitidinfomessagesgetsetdeletegetkeyssetlogopenresolvetoastWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.tsx (written ./register.tsx)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.
npx claudepluginhub pjw81226/detour --plugin detour