All Claude Code modsdougcunha/claude-mods
topic-guard
Before a prompt enters the session, a small model judges whether it belongs to the session's topic. When it starts a separate topic, the mod holds it in the prompt box: press Enter to keep it here, or New session to clear the session and send it there.
topic-guard reaches L3 (network) and passed claude plugin validate on Claude Code 2.1.304.
- Events hooked: 3
- API methods referenced: 22
- Access from classified calls: L3, network: MCP servers, writes files, changes config, drives Claude, writes the prompt box, reads files, reads env vars, reads the transcript, reads the prompt box, reads mod state, draws
- Reads mod state: the scan does not record whose state, so this does not show that it reads another mod’s values
- Static scan, not a runtime test
Install hint
/plugin install topic-guard --marketplace dougcunha/claude-modsFrom the repository's own marketplace. Confirm the plugin name in the repository's README before installing. Mods need Claude Code 2.1.287 or later.
Access
L3 Uses the networkMCP servers, writes files, changes config, drives Claude, writes the prompt box, reads files, reads env vars, reads the transcript, reads the prompt box, reads mod state, drawsValidation
Passed on Claude Code 2.1.304View the source on GitHub Back to the list
What the scan recorded
- Observed events
- every prompt
- Hooks
session.start, prompt.submit, ui.render {component=AbovePrompt}- API calls
$.clock.now, $.clock.sleep, $.command.run, $.config.set, $.env.get, $.fs.read, $.fs.write, $.mcp.call, $.model.complete, $.prompt.fill, $.prompt.read, $.session.id, $.session.messages, $.session.usage, $.state.get, $.state.set, $.tool.check, $.tool.list, $.ui.invalidate, $.ui.resolve, $.ui.status, $.ui.toast- Validation on 2.1.304
- Passed
- Scanned revision
2e8ca057f75b- Marketplace passed
- claude-mods
These are the hooks and API calls reported by claude plugin validate. Access levels describe the widest reach of those calls and are not safety ratings. Validation is a static check, not a runtime test, and a passing result does not prove that a mod works or is safe. What a mod can access and how the scan works.
More from dougcunha/claude-mods
- session-infoSession pane: context, cost and turns, the prompt cache with the time until it expires, keep warm and a guard…
Badge for your README
Authors can show the latest scan result in their README. Each badge links to this page.
[](https://mods.aidojo.si/mods/dougcunha--claude-mods--topic-guard/)
[](https://mods.aidojo.si/mods/dougcunha--claude-mods--topic-guard/)