research

research is a command for Claude Code from eugeniughelbur/obsidian-second-brain. It costs 55 tokens per session (1,119 once invoked), scanned A, original, MIT.

A command for researching a topic on the web and producing a cited dossier. It can use Perplexity when configured, or gather sources from services such as Wikipedia, Hacker News, arXiv, Reddit, and other free sources.

In plain words
What is it for?
Use it with a topic to create a research dossier, or use its academic mode for sources such as research papers and scholarly indexes.
Why use it?
It gathers background, facts, events, people, opposing views, and open questions in one research result. The free mode can work without a paid research key.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the obsidian-second-brain plugin — 1 skill, 47 commands, 3 hooks shipped together

Good fit Use it with a topic to create a research dossier, or use its academic mode for sources such as research papers and scholarly indexes.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/eugeniughelbur/obsidian-second-brain/research
About the project

obsidian-second-brain turns an Obsidian vault into persistent, searchable memory for Claude Code and other command-line coding agents, storing knowledge as linked Markdown notes. It is for developers, founders, writers, and researchers who want agents to retain project context across sessions. Its catalogue entries provide commands, hooks, a plugin, a skill, and instructions for capturing, finding, and maintaining that memory.

eugeniughelbur/obsidian-second-brain · 4,364 stars · on GitHub · eugeniughelbur.github.io

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/eugeniughelbur/obsidian-second-brain

Made for: Claude Code.

Or install obsidian-second-brain, the plugin that ships this one along with the rest of its 1 skill, 47 commands, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for research

README.md
[![agentmods](https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/research.svg)](https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/research)
Your own site
<a href="https://agentmods.dev/commands/eugeniughelbur/obsidian-second-brain/research"><img src="https://agentmods.dev/badge/commands/eugeniughelbur/obsidian-second-brain/research.svg" alt="Measured on agentmods" height="20"></a>
Per session 55 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,119 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00055 $0.01119
Opus 5 $0.00028 $0.00560
Sonnet 5 $0.00011 $0.00224
Haiku 4.5 $0.00006 $0.00112

Measured 8d ago against content hash fbc72969aaf2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

research scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/research.md · 39 lines

What it actually says

Use the obsidian-second-brain skill. Execute /research [topic]:

  1. Resolve the topic from the user's argument. Multi-word topics fine ("AI memory tools", "vector databases for RAG"). If no topic, ask: "What topic should I research?"

  2. Run the script from the skill root (its absolute path was given at session start as Skill root; substitute it for SKILL_ROOT):

    uv run --directory "SKILL_ROOT" -m scripts.research.research "<topic>"
    

    The script auto-selects its mode: if PERPLEXITY_API_KEY is set it uses Perplexity Sonar (paid); otherwise it falls back to free, key-less sources. Pass --free to force free mode even when a key is set, or --academic (free mode only) to restrict to scholarly sources (arXiv, Semantic Scholar, OpenAlex, CrossRef). If TAVILY_API_KEY or BRAVE_API_KEY is set, that source joins the free-mode pool as an extra web source; without them the pool stays fully key-less - never require either.

  3. Handle the output by mode:

    • Paid mode - the script prints a finished dossier (Summary, Key Facts with recency markers, Timeline, Key Players, Contrarian Views, Further Reading, Open Questions, Sources) and saves the AI-first note itself to Research/Web/ plus a log line. Show the dossier verbatim, then surface the saved file path. Nothing else to do.
    • Free mode - the script prints a JSON block with "mode": "free-sources", containing results (raw items per source: title, url, snippet/abstract, authors, year, points, comments), stats, and warnings. YOU synthesize the dossier from it: a. Read the JSON. If stats.success is false (fewer than 3 sources returned results), say so plainly and flag the thin coverage in Open Questions - do not pad. b. Write a dossier with the same structure as paid mode. Every Key Fact carries a recency marker and the source domain/URL it came from. Never invent facts to fill a section; if the sources are thin, the section is short or empty (see the anti-fabrication rule below). c. Save it yourself as an AI-first note at Research/Web/YYYY-MM-DD - <slug>.md per references/ai-first-rules.md (preamble, frontmatter with type: research, ai-first: true, a sources list of every result URL verbatim, tags). Append a one-line entry to the operation log (Logs/YYYY-MM-DD.md if it exists, else log.md). d. Show the dossier to the user and surface the saved path.
  4. Plain English triggers: "research [topic]", "look up [topic]", "deep research on [topic]" (note: "do deep research" or "research deep" should route to /research-deep instead - the chained version), "find me info on [topic]".

  5. If the user wants ALSO X discourse on the same topic, suggest running /x-pulse [topic] after this. If they want full vault-aware synthesis with propagation, suggest /research-deep [topic].

  6. Errors handled inside the script with auto-retry on transient failures. Surface fatal errors verbatim.


AI-first rule: Every note created or updated by this command MUST follow references/ai-first-rules.md - ## For future agent preamble, rich frontmatter (type, date, tags, ai-first: true, plus type-specific fields), recency markers per external claim, mandatory [[wikilinks]] for every person/project/concept referenced, sources preserved verbatim with URLs inline, and confidence levels where applicable. If that path does not resolve from your working directory, search upward for it; if you still cannot read it, say so before writing rather than producing a note that silently skips the rule. The vault is for future agent retrieval - not human reading.

Anti-fabrication: Search exhaustively before claiming any note, person, or file is absent - false absence is the most common failure mode - and never invent facts, entities, or dates (mark unknowns as TBD). See the anti-fabrication and search-completeness hard rules in references/ai-first-rules.md.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 39 lines · 55 tokens per session scan A fbc72969aaf2

Subscribe to this mod's changes

research is a command published in the GitHub repository eugeniughelbur/obsidian-second-brain (4,364 stars, last pushed yesterday), licensed MIT. It adds 55 tokens to every session and 1,119 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.