From host-aios-mod
prompt-mirror's mod carrying the host AIOS's boot config and rules: it adds them to a session's instructions when nothing that session loads holds them, hands the model every CLAUDE.md and rule of the folders a Bash or Python command writes into that the session does not hold yet, and mirrors what Claude Code sends the model into a YAML file per session, changed from one control file.
8 events · 15 calls
Ships in host-aios-mod. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callprocess.runfs.writefs.existsfs.listfs.readfs.statenv.getprompt.composeprompt.contextprompt.attachmentEach event it registers a hook on, with the matcher when it sets one
session.startcommand.run{command=prompt-mirror}prompt.composeprompt.contextprompt.attachmenttool.call{tool=Bash}tool.callsession.compactsession.appendEvery mods API method its source calls, by namespace
everynowregistergetexistslistreadstatwriteruncwdidrootinvalidatetoastHOMEPROMPT_MIRROR_DIRWhere 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.
npx claudepluginhub sancovp/host-aios --plugin host-aios-mod