Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By hesreallyhimv0.2.1MITIn 1 marketplace
Run mod API calls in a live session and inspect their results and dispatched events
Code that runs inside Claude Code on every session, as you, unsandboxed.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it decides whether tool calls may run; sees, changes or blocks tool calls; can read and change your Claude Code settings for the session; runs Claude Code's tools itself; runs programs; makes network requests; writes files; reads files; reads environment variables (CLAUDE_CONFIG_DIR, HOME, MOD_LAB_COMPONENT_DIRS, MOD_LAB_LESSONS, MOD_LAB_LESSON_COLLECTION, MOD_LAB_NODE, PATH, SHELL, TERM); sets environment variables; reads your settings; changes your /config settings; calls a model on your account; reads or rewrites your prompts; changes what Claude reads (system prompt, context, reminders); starts subagents; calls MCP servers; acts on other mods as they load.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Runs calls on $ from inside a Claude Code session and shows, for each, the value it returned and every event it dispatched: the event's name, the input hooks saw, what came back, and each link of the chain that answered.
From a terminal:
claude plugin marketplace add hesreallyhim/claude-mod-lab
claude plugin install mod-lab@claude-mod-lab
npx claude-mod-lab run loads it (Claude Code with this mod, mod-lab-bridge, mod-lab-target and mod-lab-keys), or claude --plugin-dir mods/mod-lab --plugin-dir mods/mod-lab-target --plugin-dir mods/mod-lab-keys. mod-lab depends on those two and does not load without them.
/mod-lab opens the pane, and says where the session draws ("mod-lab is running in the desktop app."), with a sentence more when its Claude Code is older than the lab supports. In the pane, choose a noun and a probe, edit its arguments, press Run (or r). The run's value, its dispatches and the probe's source are drawn below. t shows the session events the lab traced (prompts, turns and each model request in them with when its chunks arrived, tool calls, commands), each with the chain that answered it, h the runs so far and every model call a plugin made, and i the intercepts./mod-lab help lists every subcommand by kind, each with a line on what it does./mod-lab <probe> [value] runs a probe and prints the result in the transcript; the value fills the probe's first parameter. /mod-lab <probe> {"name": value} names the arguments. /mod-lab list lists the probes, /mod-lab trace on|off starts and pauses the trace./mod-lab explorer gives the URL of this session's explorer, which mod-lab-bridge's MCP server serves, starting it if it waits; /mod-lab explorer serve <seconds> keeps a -p session open for it. mod-lab allows its own and mod-lab-bridge's calls on that server's tools (mcp__plugin_mod-lab-bridge_explorer__*) without a permission prompt; other callers, the model included, keep the session's permission rules./mod-lab intercept <event> <behavior> [lab|others|all] [value | ms] puts the lab's own hook on an op event. Intercepts are described below./mod-lab ledger says what the model reads in the session and where each part comes from. It is described below./mod-lab verify checks what the lab relies on about the engine's behaviour against the build the session runs: what a call on $ dispatches, how e arrives, which of a plugin's own hooks see its calls, what a failed hook leaves standing, what $.store and $.state do, and the name the probe tool gets. Each check runs the probes that show it. The failed hooks and the timer that fires after its hook returned are mod-lab-target's (mods/mod-lab-target). mod-lab lists it as a dependency, which puts it beneath the lab in every chain; where it is beneath something else, those claims are marked not checked./mod-lab eject [run] writes the calls a run made as bottom hooks for a test, each answering as the session did, and copies them to the clipboard. The explorer's run cards have a "Copy as test hooks" button that does the same. In a test of your own mod, they stand where the engine would./mod-lab spend lists every model call a plugin made in the session: which plugin, the tokens in, out, written to the cache and read from it, and whether the call reached the model at all. /mod-lab free on sets two intercepts that answer the lab's own model.complete and model.fork calls with no request sent, and /mod-lab free off lifts them. The explorer's Model workbench uses both./mod-lab agent lists the session's agents: the types the lab registered, every spawn its hook saw (the model's own included) and each one's answer. /mod-lab agent register {json} registers a type, /mod-lab agent spawn <type> <prompt> starts one, /mod-lab agent hide|show <type> keeps a type from the model or offers it again, /mod-lab agent route <model>|off sends every new spawn to one model, and /mod-lab agent transcript <agentId> shows an agent's conversation. The explorer's Agents page uses them./mod-lab rows lists append events captured since the lab loaded, with an audience inferred from row metadata. /mod-lab note <text> adds model context hidden from the chat display; /mod-lab notice <text> adds a chat notice whose row is excluded from model input. Both are saved in JSONL when session persistence is enabled, and neither starts a model turn. The explorer's Conversation X-ray shows these events and can look up their JSONL records; it is not a full model-request capture. The Session Lens lesson explores these distinctions through a mod you can build and inspect.npx claudepluginhub hesreallyhim/claude-mod-lab --plugin mod-labBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.