Channels
Intelligence
Brewing intelligence plugin for OpenClaw with native Telegram HUD buttons
Install
npm install
#
Configuration Example
{
"plugins": {
"intelligence-plugin": {
"enabled": true,
"path": "~/.openclaw/plugins/intelligence-plugin",
"config": {
"defaultSize": "medium",
"autoCleanup": true
}
}
}
}
README
# OpenClaw Intelligence Plugin
[](https://opensource.org/licenses/MIT)
[](https://openclaw.ai)
A powerful OpenClaw plugin for brewing intelligence operations with native Telegram HUD buttons.

## โจ 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