From mod-lab
Run mod API calls in a live session and inspect their results and dispatched events
73 events · 63 calls
Ships in mod-lab. 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.callsettings.readtool.callprocess.runprocess.spawnprocess.spawnhttp.fetchfs.writefs.ancestorsfs.existsfs.listfs.readfs.statenv.getenv.setsettings.readconfig.setmodel.classifymodel.completemodel.forkprompt.submitprompt.contexttool.describeprompt.attachmentprompt.composeagent.spawnmcp.callengine.createEach event it registers a hook on, with the matcher when it sets one
engine.createlab.rootlab.commandlab.runsession.startcommand.run{command=mod-lab}command.run{command=init-lessons}ui.press{requestId=lab, element=run}ui.input{requestId=lab, kind=submit}tool.callprompt.submitprompt.contexttool.describeprompt.attachmentcommand.runturn.startturn.stepturn.completesession.cwdsession.rootsession.idsession.modelsession.turnssession.versionsession.reposession.surfacessession.usagesession.messagesclock.nowclock.sleepclock.afterstore.keysstore.getstore.setstore.deletestate.getstate.setui.toastui.statusui.logui.notifyui.panesui.copyui.selectionprompt.readprompt.fillprompt.suggestprompt.composetool.listtool.checkcommand.listconfig.listagent.listfs.listfs.existsfs.statfs.readfs.ancestorsfs.writeenv.getsettings.readprocess.runprocess.spawnhttp.fetchmodel.completemodel.classifymodel.forkaudio.speakui.render{component=Pane, requestId=lab}ui.render{component=CommandOutput, props=?}agent.offeragent.spawntool.check{tool=?}session.compactconfig.setprompt.editstate.set{plugin=mod-lab-keys, key=changes}session.appendtool.call{tool=mcp__mod-lab__probe}tool.call{tool=mcp__mod-lab__runs}tool.call{tool=mcp__mod-lab__trace}tool.call{tool=mcp__mod-lab__intercepts}tool.call{tool=mcp__mod-lab__lesson}Every mods API method its source calls, by namespace
listregisterspawnspeakafternowsleeplistregisterlistsetgetsetancestorsexistslistreadstatwritefetchcallclassifycompleteforkrunspawncomposefillreadsuggestappendcompactcwdidmessagesmodelreporootsurfacesturnsusageversionreadgetsetdeletegetkeyssetcallchecklistregisteraskcopylognotifyopenpanesresolveselectionstatustoastCLAUDE_CONFIG_DIRHOMEMOD_LAB_COMPONENT_DIRSMOD_LAB_LESSONSMOD_LAB_LESSON_COLLECTIONMOD_LAB_NODEPATHSHELLTERMWhere 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 hesreallyhim/claude-mod-lab --plugin mod-lab