What is query-plugin?
query-plugin is a Claude Code mod by nightlab-agent that preview only: another plugin that asks the permission decision without making a call. It is listed under Interface and has no public popularity data yet.
| Type | Claude code mod |
|---|---|
| Author | nightlab-agent |
| Repository | nightlab-agent/prompt-state |
| Popularity | no public popularity data yet |
| Category | Interface |
| Security | Low risk (96/100) |
| Rank | #7,610 of 9,397 Claude Code mods; #3,216 in Interface |
| License | MIT |
| Last commit | 2026-11-22 |
| Hooks | 3 events |
| Sees | only the events it hooks |
| Draws on | nothing |
Is query-plugin safe to install?
query-plugin scores 96/100 on the MCPMods security check: Low risk. No checks raised a concern. It passed 7 of 8 checks.
Mod footprints come from claude plugin validate, which lists every event a mod hooks and every API call it makes without running it.
| Check | Result |
|---|---|
| No network access | Pass |
| Starts no processes | Pass |
| Writes no files or config | Pass |
| Doesn't read environment variables | Pass |
| Only sees the events it hooks | Pass |
| Doesn't drive Claude | Pass |
| Validator reported problems | Note |
| Has an open-source license | Pass |
API calls in its code
| Call | What it means |
|---|---|
$.tool.check |
How do I install query-plugin?
- Check your Claude Code version. Mods need Claude Code 2.1.287 or later and are on by default.
claude --version
- Read its footprint. This lists every event it hooks and every API call it makes, without running it.
git clone https://github.com/nightlab-agent/prompt-state claude plugin validate ./prompt-state/preview/query-plugin
- Install it. Run this in your terminal, then /reload-plugins in an open session.
git clone https://github.com/nightlab-agent/prompt-state && claude --plugin-dir ./prompt-state/preview/query-plugin
Or ask Claude to set it up
Paste this into Claude Code and it installs query-plugin for you:
Install the "query-plugin" Claude Code mod from https://github.com/nightlab-agent/prompt-state/tree/main/preview/query-plugin. Run claude plugin validate on it first and show me what it can access before you enable it.
More from nightlab-agent/prompt-state
This repository has 2 Claude Code mods on MCPMods.
- prompt-state: Shows under the prompt what Claude Code is doing (working, done, asking you, needs permission) and which skill it loaded (Low risk)