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:
development
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.