by assafkip
Anti-hallucination research mode for Claude Code. Toggle on/off to enforce citation requirements and source grounding.
# Add to your Claude Code skills
git clone https://github.com/assafkip/research-modeGuides for using ide extensions skills like research-mode.
Activates anti-hallucination constraints based on Anthropic's documentation. Stay in this mode until the user says to exit.
Source: Anthropic - Reduce Hallucinations
If you don't have a credible source for a claim, say so. Don't guess. Don't infer. "I don't have data on this" is always a valid answer.
Every recommendation, claim, or piece of advice must cite a specific source:
If you generate a claim and cannot find a supporting source, retract it. Do not present it.
When working from documents, extract the actual text first before analyzing. Ground your response in word-for-word quotes, not paraphrased summaries. Reference the quote when making your point.
Check sources in this order. Stop at the first level that answers the question.
Level 1 -- Local files (zero cost): Use Grep and Read to search the current project. Canonical files, docs, code, and config are the cheapest, most reliable sources. If the claim is about this project, local files ARE the citation.
Level 2 -- WebSearch snippets only (low cost): Run WebSearch. The result snippets usually contain the key fact. Cite as: "According to [Source Name] ([URL]): [snippet text]". DO NOT call WebFetch unless the snippet is ambiguous or incomplete.
Level 3 -- WebFetch for direct quotes (high cost, use sparingly): Only fetch full pages when:
Anti-hallucination toggle for Claude Code. Activates citation constraints from Anthropic's documentation that force Claude to cite sources, say "I don't know" when unsure, and ground responses in direct quotes.
Using Kipi Founder OS? Research mode is already built into kipi-core. Just run
/q-research <topic>. No extra install needed.
Works in Claude Code CLI, the macOS desktop app, and the VS Code extension. Open Claude Code and run these two commands:
Step 1 -- Add the marketplace:
/plugin marketplace add assafkip/research-mode
Step 2 -- Install the plugin:
/plugin install research-mode@assafkip-research-mode
That's it. To confirm it installed, run /plugin and check that research-mode appears in your list.
Alternative -- install as a standalone skill:
If you prefer not to use the plugin system, clone this repo and copy the SKILL.md file into your project's .claude/skills/research-mode/ directory.
/research-mode:research
Or with a topic:
/research-mode:research what caused the Change Healthcare breach
Say "exit research mode" to turn it off.
Three constraints activate simultaneously:
No comments yet. Be the first to share your thoughts!
Top skills in this category by stars
Based on votes and bookmarks from developers who liked this skill
Level 4 -- Scholar Gateway (for academic claims): For academic papers or research findings, use Scholar Gateway MCP if available. Structured results, no page scraping.
{{VERIFY_URL}} if no link)Say "exit research mode" or switch to any other task.
Sources are checked in order. Claude stops at the first level that answers the question:
Token budget: 5 WebSearch, 3 WebFetch max per question. If the limit is hit, Claude summarizes what it found and asks before going deeper.
LLMs hallucinate. When you're doing research that matters, you need guardrails that force citation discipline. This plugin packages Anthropic's own recommendations into a one-command toggle.
"Plugin not found" after Step 1: Make sure you typed the marketplace command exactly as shown. The marketplace name is assafkip/research-mode (GitHub username/repo).
Command doesn't appear after install: Run /reload-plugins to refresh, or restart Claude Code.
Want to scope it to one project only: Add --scope project to the install command in Step 2.
Assaf Kipnis -- built while running GTM, investor outreach, and content ops for KTLYST entirely through Claude Code. When your AI assistant is writing your pitch decks, researching competitors, and drafting investor briefs, hallucinated facts aren't a minor annoyance. They're a credibility risk. This toggle exists because I needed it.
Questions or feedback: [REDACTED]