ClaudeCodeMod

All shelves / Mods / Workflow

topic-guard

By dougcunha

topic-guard is a Claude Code workflow mod by dougcunha.

Before a prompt you type enters the session, has Haiku judge whether it starts a new topic, and holds it with a New session button that clears the chat for it.

Draws

Install

The marketplace name is claude-mods.

In Claude Code
/plugin install topic-guard --marketplace dougcunha/claude-mods
Open the repo

It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.

Version
0.5.0
License
MIT
Repo stars
4
Last change
2026-10-21

What it can reach

  • Draws in the session
  • Reads usage or context figures
  • Runs a command when you press
  • Reaches the network or an outside service

Answer y to add the marketplace and choose a scope; with it added, /plugin install topic-guard@claude-mods. It judges only a prompt typed at an idle session, once the context is at least 20% full. Each judged prompt is one call to the judging model, Haiku by default, through the session's own client, and waits 1 to 3 seconds, at most 8. Settings are in /config. The Jev judge needs a connected MCP server with a jev_classify tool, such as @jkudish/jev-mcp, and a key such as TYPESAFE_API_KEY.

The marketplace, claude-mods, holds dougcunha's four mods: session-info, topic-guard, feature-progress, and visual-review. Keeping one topic per session is why this page files it under workflow. prompt-bouncer sends a vague prompt back before Claude sees it. turn-budget stops a turn that passes a limit and writes a handoff for a new session. This one judges whether your new message needs anything from this conversation, and when it doesn't, puts it back in the prompt box with the model's reason; New session runs /clear and leaves the message for you to send. It never sends or moves a message without your press. In the source, the check is a prompt.submit hook and the band an AbovePrompt render; it has no tool.call hook.

Demo

The author's screenshot of topic-guard holding a prompt: Prompt dropped by a hook: topic-guard: held as a new topic. Press Enter to keep it here, or choose New session. Under it a band reads this looks like a new topic, 6% context, with the judge's reason, that the question is unrelated to the TCP/UDP networking discussion, a New session button, and the held prompt, What's the meaning of life?
From the author's repo.

What it hooks into

  • session.startWhen a session starts
  • prompt.submitWhen you send a prompt
  • ui.renderDraws into the sessionAbovePrompt

Read from the on() calls in its hook modules. Open its source under Files to check what each one does.

Files

The author's README and source, 4 files. They load when you open them.

Facts

Author
dougcunha
Category
Workflow
Marketplace
claude-mods
Repo
dougcunha/claude-mods
Folder
topic-guard
Version
0.5.0
License
MIT
Repo stars
4
Last change
2026-10-21
Language
TypeScript
Files
17

Other mods in Workflow

quick-repliesFynnXlandTurns Claude Code's own next-message suggestion into a button above the prompt, sent as your message on a click or its digit, with up to three more from a fork.sidekickFynnXlandChecks each message just before it is sent and draws a blue line under it with a better move: a new chat with a handoff, a clearer version, or a skill.skill-heaven-consolegaia-researchFor Skill Heaven, draws a skill count by your status line, a /lens band that previews a summon, and a /heaven pane of what entered context and what you trust.xcpanegrichesTurns xcodebuild and swift build output into a live pane of errors grouped by file, and hands Claude the parsed diagnostics instead of the raw log.session-switcherha-ptt0601Draws a Sessions button above the prompt that opens a sidebar of this project's sessions, worktrees included, and resumes the one you pick.jumphp-livedavidnurdinFor JumPHP games, opens a pane beside the chat with the bin/jumphp test checks as they run, the game's screen live, its game tests, and Claude's screenshots.ciHula-Hoop-AIShows the latest GitHub Actions run for your branch in the hint line under the prompt, passing, running, or failing, and toasts its link when a run finishes.focus-timerHula-Hoop-AIRuns a focus timer in a band above the prompt with a progress bar, the round, and turns finished, with pause, skip, and stop, and a long break every fourth.worktreesHula-Hoop-AIShows repo@branch and its listening ports in the hint line under the prompt, and a /worktrees pane that lists every worktree and removes the finished ones.openspec-tuiintent-driven-devOpens a side pane for an OpenSpec change: its steps from Explore to Archive, the artifact Claude is writing, the task in progress, and every active change.workkitITW-Creative-WorksHolds a commandHolds a git commit until the full test suite has passed on what is committed, and guards each step of a GitHub Issues pipeline that an agent crew works.cairnjmgirardHolds a commandDraws the milestone in flight above the prompt as a plan, implement, and review track with a percent, opens a /cairn-pane, and holds merges and force-pushes.
All 396 in Workflow