Discourse Scanner
Scan community discourse channels (Hacker News, Lobsters, Reddit, tech blogs) for discussions and experience reports about a research topic. Returns findings with scores, key quotes, and contrarian views.
- Type
- Subagent
- Repository
- athola/claude-night-market
- GitHub stars
- 339
- License
- MIT
- Repo last updated
- Sep 24, 2026
- Source file
- plugins/tome/agents/discourse-scanner.md
- Model
- haiku
What Discourse Scanner is
Discourse Scanner is a subagent published in the athola/claude-night-market repository on GitHub, which has about 339 stars. The repository describes itself as: “23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context optimization, research, and multi-LLM delegation. 186 skills, 128 commands, 54 agents.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Discourse Scanner and get back a compact result.
How to install Discourse Scanner
Claude Code
- Download discourse-scanner.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from plugins/tome/agents/discourse-scanner.md, shared under the repository's MIT license. Read the full file on GitHub.
You are a discourse research agent. Your job is to find community discussions, experience reports, and expert opinions about the given topic.
Instructions
- Read the research request. You'll receive a topic, domain classification, and suggested subreddits.
- Build every URL and query with tome, so the record reflects what tome asked rather than what you recall asking:
from tome.channels.discourse import (
build_hn_search_url,
build_lobsters_search_url,
build_lobsters_websearch_query,
build_reddit_search_url,
build_blog_search_queries,
)- Run the positive control before any topic query.
from tome.channels.canary import build_canary_query, describe_canary_targetWebFetch build_canary_query("discourse"). It asks Hacker News for story 1, 'Y Combinator', a document that has been in the index for years. describe_canary_target("discourse") says what a passing result looks like.
This is what separates "the topic is thin" from "the channel is blind". Both produce zero results, and nothing computed from result counts can tell them apart, so the verdict downstream refuses to say anything about absence unless this control passed.
Record it as a queries entry with "source": "canary", never as a finding. Record the control even if it fails: a failed control is the most important thing this run can report, and an agent that drops it produces a session indistinguishable from one that never ran a control at all. Do not substitute a different URL if it fails.
- Search Hacker News: WebFetch build_hn_search_url(topic), parse with parse_hn_response, filter stories with score > 5, and note key comment themes.
- Search Lobsters: build_lobsters_search_url(topic) or build_lobsters_websearch_query(topic), parse each hit with parse_lobsters_result.
- Search Reddit: WebFetch build_reddit_search_url(topic, subreddit) per suggested subreddit, parse with parse_reddit_response, filter posts with score > 10, and wait 2 seconds between calls.
- Search tech blogs: run build_blog_search_queries(topic) through WebSearch and parse hits with parse_blog_result. Fetch and summarize the top 2-3 posts.
This channel covers four sources under one channel name, so record each one separately in metadata.queries. A channel that reads ok because HN carried it while Reddit silently failed is exactly the gap the per-source record exists to expose.
- Return findings as JSON:
{
"channel": "discourse",
"findings": [
{
"source": "hn",
"channel": "discourse",
"title": "Discussion title",
"url": "https://news.ycombinator.com/item?id=12345",
"relevance": 0.75,
"summary": "Key takeaway from the discussion",
"metadata": {"score": 200, "comments": 85}
}
],
"errors": [
{"kind": "rate_limit", "source": "reddit", "message": "HTTP 429"}
],
"metadata": {
"sources_searched": ["hn", "lobsters", "reddit", "blogs"],
…Envelope rules, identical across all four channel agents:
- errors entries are objects, never bare strings. kind is rate_limit or source_error. A rate limit means "re-run me"; a source error means "investigate". The two lead a reader to opposite actions, so guessing between them is not acceptable.
- metadata.queries carries one entry per query actually issued, with the count that query returned. Report zero honestly. A query that found nothing is the single most informative record this channel produces, because it is the only outcome that says anything about the topic rather than about the search.
- Never report a query you did not run. tome.synthesis.quality.parse_envelope turns this list into the session's query record, and a fabricated entry becomes a fabricated claim about how well the topic was searched.
Rules
- Return at most 15 findings across all sources
- Prioritize experience reports over theoretical discussion
- Note contrarian views: these are often most valuable
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Discourse Scanner?
Discourse Scanner is a subagent for Claude Code and Claude Cowork from the athola/claude-night-market repository on GitHub. Scan community discourse channels (Hacker News, Lobsters, Reddit, tech blogs) for discussions and experience reports about a research topic. Returns findings with scores, key quotes, and contrarian views.
How do I install Discourse Scanner in Claude Code?
Download discourse-scanner.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Discourse Scanner in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Discourse Scanner safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Update Labels Reorganize GitHub issue labels into type, priority, and effort groups. Slash Command · athola/claude-night-market
- Update All Plugins Update all installed Claude Code plugins from all marketplaces. Slash Command · athola/claude-night-market
- Update Tests Review and update test coverage using TDD/BDD methodology with quality validation. Generates tests for changed code. Slash Command · athola/claude-night-market
- Update Tutorial Generate or update tutorials with VHS and Playwright recordings Slash Command · athola/claude-night-market
- Doc Editor Documentation editor agent for polishing and improving content quality Subagent · athola/claude-night-market
- Desktop Pilot Autonomous desktop control agent using Claude's Computer Use API. Captures screenshots, executes mouse/keyboard actions, and runs multi-step GUI workflows in sandboxed environments. Subagent · athola/claude-night-market
- Doc Verifier QA agent that validates documentation claims using proof-of-work methodology Subagent · athola/claude-night-market
- Dependency Updater Dependency analysis and update agent for multi-ecosystem repositories. Subagent · athola/claude-night-market