← Back to Plugins
Channels

Intelligence

brewmaister By brewmaister 👁 34 views ▲ 0 votes

Brewing intelligence plugin for OpenClaw with native Telegram HUD buttons

GitHub

Install

npm install

#

Configuration Example

{
  "plugins": {
    "intelligence-plugin": {
      "enabled": true,
      "path": "~/.openclaw/plugins/intelligence-plugin",
      "config": {
        "defaultSize": "medium",
        "autoCleanup": true
      }
    }
  }
}

README

# OpenClaw Intelligence Plugin

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![OpenClaw](https://img.shields.io/badge/OpenClaw-Plugin-blue)](https://openclaw.ai)

A powerful OpenClaw plugin for brewing intelligence operations with native Telegram HUD buttons.

![Plugin HUD](assets/hud-demo.png)

## โœจ Features

- ๐ŸŽฎ **Native Telegram Inline Keyboard** - Real clickable buttons like `/models`
- ๐Ÿ” **AI-Powered Search** - Quick and full search modes
- ๐Ÿ”ฌ **NotebookLM Integration** - Deep research workflows
- ๐Ÿ“Š **System Status** - Monitor extraction, wiki, and graph health
- ๐Ÿง  **Smart Prompting** - Asks for missing arguments automatically

## ๐Ÿš€ Quick Start

### Installation

```bash
# Clone to OpenClaw plugins directory
git clone https://github.com/brewmaister/openclaw-intelligence-plugin.git ~/.openclaw/plugins/intelligence-plugin

# Enable in OpenClaw config
echo '{
  "plugins": {
    "intelligence-plugin": {
      "enabled": true,
      "path": "~/.openclaw/plugins/intelligence-plugin"
    }
  }
}' >> ~/.openclaw/config.json

# Restart gateway
openclaw gateway restart
```

### Usage

Type `/intelligence` to see the HUD:

```
๐Ÿ” Intelligence Operations

[๐Ÿ” Search (Quick)]  [๐Ÿ”Ž Search (Full)]
[๐Ÿ”ฌ Research]          [๐Ÿ“Š System Status]
```

**Commands:**
- `/intelligence` - Show interactive HUD with buttons
- `/intel-search <topic>` - AI-powered search
- `/intel-research <topic>` - Deep research via NotebookLM
- `/intel-status` - System health check

## ๐Ÿ“– Commands Reference

### `/intelligence`
Shows the main HUD with 4 inline keyboard buttons on Telegram.

**Button Actions:**
- **๐Ÿ” Search (Quick)** - ~1000 char fast lookup
- **๐Ÿ”Ž Search (Full)** - ~3000 char comprehensive analysis
- **๐Ÿ”ฌ Research** - Prepares NotebookLM deep dive
- **๐Ÿ“Š Status** - Shows extraction progress and system health

### `/intel-search <topic> [--size short|medium|large]`
AI-powered search across your brewing knowledge base.

**Examples:**
```
/intel-search Citra hops
/intel-search "NEIPA water profile" --size large
/intel-search diacetyl --size short
```

**Sources searched:**
- Knowledge Graph entities & relations
- Source documents (books, Discord, Forum, HBT)
- Miniflux RSS feeds

### `/intel-research <topic>`
Prepares a deep research session in NotebookLM.

**Example:**
```
/intel-research "Cold IPA brewing techniques"
```

**Output:**
- Collects relevant wiki pages and source docs
- Creates `Research_<topic>_<date>.md` session file
- Shows notebooklm commands to execute

### `/intel-status`
Shows comprehensive system health:

```
๐Ÿ“š BOOK EXTRACTION
  Completed: 5 books
  Status: ๐Ÿ”„ ACTIVE

๐Ÿ“ WIKI LAYER
  Pages: 0 (generating...)

๐Ÿ“Š KNOWLEDGE GRAPH
  Entities: 2,847
  Relations: 1,532

๐Ÿ’ฌ HARVESTS
  Discord: 31 files
  Forum: 9 threads
  HBT: 11 files

๐Ÿ“ฐ MINIFLUX
  Entries: 5,885

๐Ÿ“– CALIBRE
  Books: 161
```

## ๐Ÿ—๏ธ Architecture

```
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚         Telegram User               โ”‚
โ”‚         Types /intelligence         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                  โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚    OpenClaw Gateway                 โ”‚
โ”‚    Routes to Plugin                 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                  โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Intelligence Plugin                  โ”‚
โ”‚  - Shows inline keyboard             โ”‚
โ”‚  - Handles callbacks                 โ”‚
โ”‚  - Routes to commands                โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                  โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  intel Python Tool                   โ”‚
โ”‚  ~/.openclaw/workspace/scripts/intel โ”‚
โ”‚  - Searches Graph/docs/              โ”‚
โ”‚  - Calls AI via OpenClaw proxy       โ”‚
โ”‚  - Formats results                   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                  โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Knowledge Sources                   โ”‚
โ”‚  - Graph/docs/books/                 โ”‚
โ”‚  - Graph/docs/discord/               โ”‚
โ”‚  - Graph/docs/forum/                 โ”‚
โ”‚  - Graph/docs/hbt/                   โ”‚
โ”‚  - Miniflux RSS                      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
```

## ๐Ÿ”ง Configuration

### Plugin Config (in `~/.openclaw/config.json`)

```json
{
  "plugins": {
    "intelligence-plugin": {
      "enabled": true,
      "path": "~/.openclaw/plugins/intelligence-plugin",
      "config": {
        "defaultSize": "medium",
        "autoCleanup": true
      }
    }
  }
}
```

### Required Setup

1. **Intel tool must exist:**
   `~/.openclaw/workspace/scripts/intel`

2. **Knowledge Graph structure:**
   - `~/Documents/Obsidian/MADBRAUER/Intelligence/Graph/docs/`
   - Extracted books, harvests in subdirectories

3. **Miniflux (optional):**
   - Running at `http://localhost:8080`
   - API key in `pass miniflux/api_key`

## ๐Ÿ› ๏ธ Development

```bash
# Clone repo
git clone https://github.com/lagerboy/openclaw-intelligence-plugin.git
cd openclaw-intelligence-plugin

# Install dependencies
npm install

# Build
npm run build

# Watch mode
npm run watch

# Test locally
# Copy to ~/.openclaw/plugins/intelligence-plugin
# Restart gateway
```

### Project Structure

```
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ commands/
โ”‚   โ”‚   โ”œโ”€โ”€ intelligence.ts      # HUD command
โ”‚   โ”‚   โ”œโ”€โ”€ intel-search.ts      # Search command
โ”‚   โ”‚   โ”œโ”€โ”€ intel-research.ts    # Research command
โ”‚   โ”‚   โ””โ”€โ”€ intel-status.ts      # Status command
โ”‚   โ””โ”€โ”€ handlers/
โ”‚       โ””โ”€โ”€ callbacks.ts         # Button click handlers
โ”œโ”€โ”€ dist/                        # Compiled JavaScript
โ”œโ”€โ”€ openclaw.plugin.json         # Plugin manifest
โ””โ”€โ”€ package.json
```

## ๐Ÿค Contributing

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

## ๐Ÿ“œ License

MIT License - see [LICENSE](LICENSE) file

## ๐Ÿ™ Acknowledgments

- Built for [OpenClaw](https://openclaw.ai)
- Brewing intelligence system inspired by [Andrej Karpathy's llm-wiki pattern](https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f)
- Thanks to The Modern Brewhouse community

## ๐Ÿ”— Links

- [OpenClaw Docs](https://docs.openclaw.ai)
- [ClawHub Skills](https://clawhub.ai)
- [Report Issues](https://github.com/lagerboy/openclaw-intelligence-plugin/issues)
channels

Comments

Sign in to leave a comment

Loading comments...