agentleFS
krishagelkrishagel/geoffrey/skills/multi-model-research/SKILL.md

multi-model-research

Skill9 starsChanged 11 months agoMITView on GitHub

Orchestrate multiple frontier LLMs (Claude, GPT-5.1, Gemini 3.0 Pro, Perplexity Sonar, Grok 4.1) for comprehensive research using LLM Council pattern with peer review and synthesis

  • Reads credentials

2 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use multi-model research when:

    line 35
  2. Distinctive:

    Comprehensive coverage required: - No single model sufficient

    line 38
  3. Distinctive:

    All research reports saved to Obsidian include:

    line 103
  4. Very specific:

    All keys configured in ~/.env file.

    line 138

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Multi-Model Research Agent

Implements Karpathy's LLM Council pattern for superior research through parallel queries, peer review, and chairman synthesis.

Architecture

Geoffrey/Claude (Native Council Member):

  • Routes simple vs complex queries
  • Calls external API orchestrator (research.py)
  • Provides my own research response
  • Conducts peer review phase
  • Requests GPT-5.1 synthesis (chairman)
  • Saves final report to Obsidian

Python External API Orchestrator:

  • Fetches responses from GPT-5.1, Gemini 3.0 Pro, Perplexity Sonar, Grok 4.1
  • Returns JSON with all external responses
  • I handle all orchestration and synthesis

When to Use This Skill

Use multi-model research when:

  • Complex analysis needed - Multiple perspectives valuable
  • Factual verification critical - Cross-model validation
  • Comprehensive coverage required - No single model sufficient
  • Current information essential - Perplexity provides web grounding
  • Contested topics - Benefit from diverse model perspectives

Simple vs Council Mode

Simple Mode (Perplexity only):

  • Factual lookups
  • Current events
  • Quick research with citations
  • Completes in <15 seconds

Council Mode (Full council):

  • Comparative analysis
  • Deep research
  • Multiple perspectives needed
  • Strategic questions
  • Completes in <90 seconds

Workflow

Simple Query

User: "What are the latest developments in quantum computing?"
     ↓
I decide: Simple query (factual, current)
     ↓
I call: uv run scripts/research.py --query "..." --models perplexity
     ↓
I read: JSON response from Perplexity
     ↓
I format: Markdown report with citations
     ↓
I save: To Obsidian Geoffrey/Research folder
     ↓
I return: Summary to user with Obsidian link

Council Query

User: "Compare the AI strategies of OpenAI, Anthropic, and Google"
     ↓
I decide: Council query (comparative, complex)
     ↓
I call: uv run scripts/research.py --query "..." --models gpt,gemini,perplexity,grok
     ↓
I read: JSON with all external responses
     ↓
I provide: My own (Claude) research response
     ↓
I conduct: Peer review (each model ranks others)
     ↓
I request: GPT-5.1 chairman synthesis
     ↓
I format: Comprehensive markdown report
     ↓
I save: To Obsidian Geoffrey/Research folder
     ↓
I return: Summary with Obsidian link

Output Format

All research reports saved to Obsidian include:

  • Executive Summary (2-3 paragraphs)
  • Key Findings (organized by theme, inline citations)
  • Confidence Assessment (what's certain vs debated)
  • References Section (all sources with URLs and dates)

Citations use numeric format: [1], [2], etc.

Technical Details

Python Script:

cd skills/multi-model-research
uv run scripts/research.py --query "Your question" --models perplexity --output /tmp/responses.json

Config:

  • config.yaml - Model settings, routing rules
  • prompts/system_prompts.yaml - Per-model system prompts
  • prompts/peer_review.md - Peer review template
  • prompts/chairman_synthesis.md - GPT-5.1 synthesis template

Dependencies:

  • httpx (async HTTP client)
  • pyyaml (config parsing)
  • python-dotenv (env vars)
  • python-frontmatter (Obsidian frontmatter)

API Keys Required:

  • OPENAI_API_KEY (GPT-5.1)
  • GEMINI_API_KEY (Gemini 3.0 Pro)
  • PERPLEXITY_API_KEY (Sonar Pro)
  • XAI_API_KEY (Grok 4.1)

All keys configured in ~/.env file.

Examples

Simple Research:

User: "What is RAG in AI?"

I route to: Simple mode (Perplexity)
Output: Concise explanation with current examples and citations
Time: ~10 seconds

Council Research:

User: "Compare serverless vs containers for production ML workloads"

I route to: Council mode (all 4 external + me)
Process:
  1. GPT-5.1: Provides comprehensive technical comparison
  2. Gemini 3.0: Analyzes cost and performance trade-offs
  3. Perplexity: Current industry trends and case studies
  4. Grok 4.1: Developer sentiment from X/Twitter
  5. Claude (me): Synthesize with nuanced analysis
  6. Peer review: Each model ranks others
  7. GPT-5.1 (chairman): Final synthesis

Output: Multi-perspective analysis with citations
Time: ~60 seconds

Limitations

  • Cost: Council mode uses 4-5 API calls per query
  • Latency: Council mode takes 60-90 seconds
  • API Limits: Rate limits may throttle parallel requests
  • Citation Quality: Non-Perplexity models require URL extraction

Future Enhancements

  • Streaming responses during deliberation
  • Cost tracking and budget limits
  • Query history and versioning
  • Custom model weights based on topic
  • Integration with Geoffrey's knowledge base

This skill implements Karpathy's LLM Council pattern released November 22, 2025.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.