← Back to Plugins
Tools

Deep Research

Stepan2222000 By Stepan2222000 👁 40 views ▲ 0 votes

OpenClaw plugin for autonomous deep research with sub-agents

GitHub

README

# openclaw-deep-research

OpenClaw plugin for autonomous deep research with sub-agents.

## What it does

- **Researcher sub-agent** with full tool documentation (Exa, ScrapFly, agent-browser, Brave Search, web_fetch, Ref) โ€” delivered via dedicated workspace
- **Coordinator skill** (SKILL.md) โ€” instructions for the main agent on how to manage research sessions
- **Plugin hooks** โ€” dynamic context injection, automatic INDEX.md updates, Supermemory capture blocking
- **Slash commands** โ€” `/research`, `/research-status`
- **CLI** โ€” `openclaw deep-research setup/status/update-prompt`

## Architecture

```
User โ†’ Coordinator (reads SKILL.md) โ†’ sessions_spawn(agentId: "researcher")
                                           โ†“
                            Plugin hook: before_agent_start โ†’ inject date
                            OpenClaw: loads workspace-researcher/AGENTS.md
                                           โ†“
                                    Researcher sub-agent works
                                    (Exa, ScrapFly, agent-browser, etc.)
                                           โ†“
                            Plugin hook: agent_end โ†’ update INDEX.md, block capture
```

## Installation

1. Clone into OpenClaw extensions:
```bash
git clone https://github.com/Stepan2222000/openclaw-deep-research.git \
  ~/.openclaw/extensions/openclaw-deep-research
```

2. Run setup:
```bash
openclaw deep-research setup
```

This will:
- Install SKILL.md to `workspace/skills/deep-research/`
- Create researcher workspace with AGENTS.md prompt
- Patch `openclaw.json` (agents.list, allowAgents, exec)
- Patch Supermemory capture (block capture for researcher)
- Create INDEX.md if missing

3. Restart OpenClaw:
```bash
openclaw gateway --force
```

## Usage

Ask the main agent to research a topic, or use `/research <topic>`.

The coordinator will:
1. Build a brief and discuss with you
2. Create research files
3. Spawn the researcher sub-agent
4. Monitor progress via progress.md
5. Deliver results when done

## CLI Commands

```bash
openclaw deep-research setup          # Initial setup
openclaw deep-research status         # Check configuration
openclaw deep-research update-prompt  # Update prompts after plugin update
```

## File Structure

```
openclaw-deep-research/
โ”œโ”€โ”€ index.ts              # Plugin entry: hooks, commands, CLI
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ openclaw.plugin.json
โ”œโ”€โ”€ tsconfig.json
โ”œโ”€โ”€ assets/
โ”‚   โ”œโ”€โ”€ researcher-prompt.md   # Sub-agent prompt (AGENTS.md)
โ”‚   โ””โ”€โ”€ SKILL.md               # Coordinator instructions
โ”œโ”€โ”€ commands/
โ”‚   โ””โ”€โ”€ cli.ts                 # setup, status, update-prompt
โ”œโ”€โ”€ lib/
โ”‚   โ”œโ”€โ”€ coordinator.ts         # Brief builder, progress reader
โ”‚   โ”œโ”€โ”€ index-manager.ts       # INDEX.md CRUD
โ”‚   โ””โ”€โ”€ templates.ts           # Research file templates
โ””โ”€โ”€ scripts/
    โ””โ”€โ”€ patch-supermemory.sh   # Standalone Supermemory patch
```

## Tools available to researcher

| Server | Tools | Purpose |
|--------|-------|---------|
| Exa | 8 | Semantic search, crawling, deep researcher |
| Ref | 2 | Documentation search + smart URL reading |
| ScrapFly | 4 | Anti-bot scraping, screenshots, LLM extraction |
| Brave | 1 | Keyword search |
| agent-browser | CLI | Full browser automation |
| Native | 3 | web_fetch, read/write/edit |

## License

MIT
tools

Comments

Sign in to leave a comment

Loading comments...