skills/43-wentorai-research-plugins/skills/research/deep-research/khoj-research-guide/SKILL.md
AI second brain for deep research and personal knowledge management
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research khoj-research-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Khoj is an open-source AI personal research assistant with over 33,000 GitHub stars that acts as a second brain for researchers, students, and knowledge workers. It can search and chat with your personal notes, documents, and the web to help you find information, synthesize knowledge, and conduct deep research. Khoj combines personal knowledge management with AI-powered research capabilities, making it a unique tool for academic researchers who need to work with large collections of papers, notes, and data.
Unlike general-purpose AI assistants, Khoj is designed to work with your own data. It indexes your documents -- including PDFs, markdown files, org-mode notes, plaintext, and images -- and provides an AI interface that can reason over this personal knowledge base alongside web search results. This means you can ask questions that require combining information from your personal research notes with the latest findings from the web.
Khoj supports both cloud-hosted and fully self-hosted deployments. The self-hosted option is particularly attractive for researchers working with sensitive data, unpublished manuscripts, or proprietary datasets that cannot be sent to third-party services. It supports multiple LLM backends including OpenAI, Anthropic, and local models via Ollama.
# Using Docker (recommended)
docker run -d \
--name khoj \
-p 42110:42110 \
-v ~/.khoj:/root/.khoj \
ghcr.io/khoj-ai/khoj:latest
# Or using pip
pip install khoj
# Start the server
khoj --host 0.0.0.0 --port 42110
After starting Khoj, configure it through the web interface at http://localhost:42110/config:
# Set environment variables for LLM access
export OPENAI_API_KEY=$OPENAI_API_KEY
# Or for local models
export OLLAMA_HOST=http://localhost:11434
Khoj provides clients for multiple platforms to integrate into your existing workflow:
http://localhost:42110# Install the Obsidian plugin
# In Obsidian: Settings > Community Plugins > Search "Khoj"
# Configure server URL: http://localhost:42110
Khoj indexes your research documents and makes them searchable using semantic search:
# Supported document types
# - PDF files (research papers, textbooks)
# - Markdown files (notes, drafts)
# - Org-mode files (structured notes)
# - Plaintext files (data, logs)
# - Images (diagrams, figures)
# - GitHub repositories (code, documentation)
# - Notion pages (collaborative notes)
# Configure content sources via the web UI or API
import requests
# Add a document directory
requests.post("http://localhost:42110/api/config/data/source", json={
"type": "folder",
"path": "/path/to/research/papers",
"file_types": ["pdf", "md"],
"recursive": True,
})
Khoj includes a dedicated research mode that goes beyond simple question-answering. It iteratively searches, reads, and synthesizes information from both your personal knowledge base and the web:
# Trigger deep research via the API
response = requests.post("http://localhost:42110/api/chat", json={
"q": "Synthesize the key findings from my notes on transformer "
"efficiency and relate them to recent papers on sparse attention",
"research_mode": True,
"max_iterations": 8,
})
# The response includes:
# - Synthesized answer drawing from personal notes and web sources
# - Citations to specific documents and web pages
# - Follow-up questions for further exploration
Chat with Khoj about your research, and it will draw on your indexed documents:
User: What are the main arguments in the papers I've saved about
few-shot learning?
Khoj: Based on your indexed papers, I found 7 documents related to
few-shot learning. The main arguments include:
1. [From paper_x.pdf] Meta-learning approaches...
2. [From notes/ml-review.md] Prototypical networks...
...
Khoj supports automated agents that can perform scheduled research tasks:
# Create a research agent that monitors new papers
requests.post("http://localhost:42110/api/agents", json={
"name": "paper-monitor",
"schedule": "daily",
"task": "Search for new papers on 'graph neural networks for "
"molecular property prediction' published in the last "
"24 hours and summarize the key findings",
"notify": True,
})
Use Khoj to build a structured literature review:
Khoj maintains connections between your documents, allowing you to discover relationships:
User: What connections exist between my notes on attention mechanisms
and my notes on computational efficiency?
Khoj: I found several connections:
- 3 papers discuss efficient attention variants
- Your notes from 2024-03 mention linear attention
- The survey paper you saved covers both topics in Section 4
Khoj can index and reason about images alongside text, which is useful for researchers working with figures, diagrams, and visual data:
For researchers handling sensitive or unpublished data, Khoj offers strong privacy guarantees in self-hosted mode:
tools
Recommend AND run open-source AI tools, agents, Claude Code / Codex skills, and MCP servers for any stage of a literature review — searching, reading, extracting, synthesizing, screening, citation-checking, and paper writing. Use when the user asks "what tool should I use to..." OR "install/run/use <tool> to ..." for research/lit-review work: automating a survey or related-work section, PDF→Markdown extraction for LLMs (MinerU/marker/docling), PRISMA / systematic review (ASReview), citation-backed Q&A over PDFs (PaperQA2), wiring papers into Claude/Cursor via MCP (arxiv/paper-search/zotero servers), or chatting with a Zotero library. Ships a launcher (scripts/litrun.py) that installs each tool in an isolated venv and runs it. Curated catalog of 70+ vetted projects. 支持中英文(用于「文献综述工具选型」与「一键安装/运行」)。
development
Route empirical-research requests through the Auto-Empirical Research Skills catalog when this whole repository is installed as one skill in Codex, CodeBuddy, Claude Code, or another IDE. Use to choose and load the right vendored AERS skill for causal inference, econometrics, replication, data acquisition, manuscript writing, peer review and referee responses, citation checking, de-AIGC editing, or full empirical-paper workflows without reading the entire repository at once.
documentation
Use when the project collects primary data or runs a field, lab, or survey experiment, before the intervention begins — write the pre-analysis plan, size the sample from a power calculation, and register with the AEA RCT Registry. Apply after the design is chosen in aer-identification and before any outcome data are seen.
tools
Guide economists to authoritative data sources with explicit, confirmed data specifications before retrieval; interfaces with Playwright MCP to navigate portals and extract real data, not articles about data.