Ble Agent Gateway banner
es617 es617

Ble Agent Gateway

AI community

Description

AI control layer for BLE devices — autonomous monitoring, plugin creation, and alerting via fast-agent + BLE MCP Server

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

BLE Agent Gateway

An AI-powered control layer for BLE devices. Runs on a Raspberry Pi (or any machine with Bluetooth), monitors sensors, detects device presence, reacts to events, and acts autonomously — no rules engine, no rigid automation. Just tell it what you want.

Connects to BLE hardware via the [BLE MCP Server](https://github.com/es617/ble-mcp-server). Exposes itself as an MCP server so you can chat with it from Claude Desktop, Claude mobile, or any MCP client.

Built with [fast-agent](https://github.com/evalstate/fast-agent).


What it does

The gateway has two agents:

**Controller** (autonomous, uses Sonnet) — the brain:

  • Receives BLE notifications in real time
  • Creates and manages plugins for continuous monitoring
  • Writes and fixes its own code — verifies plugins work, debugs when they don't
  • Stores all events and rules in a SQLite database
  • Acts on rules set by the user

**User agent** (interactive, uses Haiku) — the interface:

  • Presents data to the user (queries database)
  • Passes user instructions to the controller in plain language
  • Handles one-off BLE operations (quick scans, reads)
  • Explains what happened and who did what
You                                                                                    BLE hardware
 |                                                                                          |
 ├── terminal ──┐                                                                           |
 |              |                                                                           |
 └─ Claude ─────┤                                                                           |
    Desktop     |                                                                           |
                v                                                                           |
          [User agent]  ──>  [Controller agent]  ──stdio──>  [BLE MCP Server]  ──BLE──>  [Devices]
           (Haiku)        |      (Sonnet)