Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Agent Bluetooth?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/hormold-agent-bluetooth)
---
name: agent-bluetooth
description: Use when the user asks to call, text, check calls or contacts through their phone using the agent-bluetooth daemon.
---
Use the CLI as a client of the running daemon. Global `--host` and `--key`
options go before the command, or use `AGENT_BLUETOOTH_HOST` and
`AGENT_BLUETOOTH_KEY`. Run `agent-bluetooth guide` for API and mode details.
Commands return JSON, except guide, help and logs. Check exit codes.
Start with `agent-bluetooth status` and `agent-bluetooth settings`.
Read `summary` and `rules` before changing call behavior. Settings persist and
apply to subsequent calls. Config rules override direction defaults.
## Send and read SMS
```bash
agent-bluetooth sms +15551234567 "On my way"
agent-bluetooth sms list -n 20
```
The list contains newest-first `{type, data, ts}` events. Incoming messages use
`data.sender` and `data.text`; sent messages use `data.to` and `data.text`.
It retains at most 1000 messages observed since daemon startup, not the phone's
historical inbox. MAP permissions and platform support affect SMS availability;
received text may be truncated unless the daemon enables `fetch_full`.
## Call and wait for an answer
```bash
agent-bluetooth call +15551234567
agent-bluetooth wait call.active --timeout 60 --match call.number=+15551234567
agent-bluetooth dtmf '1#'
agent-bluetooth hangup
```
`call` accepts a request; `call.active` confirms the connection. `wait` watches
live events only and exits 1 on timeout. If the call might answer before `wait`
starts, start the waiter in another terminal first. Use `status` to check a call
already active. Match keys refer to event data; nested keys use dots. Repeat
`--match` to require several fields. `watch call sms` streams JSON lines.
## Have a voice agent make the call
When the user wants something done on a call (book, ask, confirm, cancel) and
a LiveKit agent is running (the example registers `phone-agent`):
```bash
agent-bluetooth call +15551234567 --agent phone-agent --task "Book a table for 2 at 7pm under Sam"
agent-bluetooth wait call.summary --timeout 900
```
Write the task as you would brief a person: who it's for, what to get, what
to accept. When the call ends the agent posts a `call.summary` event:
`data.outcome` is the one-line result, `data.transcript` the transcript file.
Report `outcome` to the user. If no summary arrives (an agent that doesn't
post one), wait for `call.ended` and read the transcript where the agent runs
(`examples/livekit-agent/calls/<room>.json`).
While the agent is on the call, the user can change its mind:
```bash
agent-bluetooth say "Make it 8 instead, and ask for a table outside"
```
The agent stops and says that next, in its own voice. Only for calls in a
room (app/agent mode); exits 1 otherwise.
## Forward one-time codes
```bash
agent-bluetooth otp on # codes go to the config's Telegram sink
agent-bluetooth otp on --sms +15551234567 # or by text to that number
agent-bluetooth otp off
```
Installs a persisted automation: the first 4-8 digit run in every incoming
SMS is forwarded. SMS only (Android): iMessage, RCS and MMS never reach the
daemon, so say so if the user expects those. `otp on` without `--sms` or
`--webhook` needs a `[[sinks]] adapter = "telegram"` entry in the daemon's
config and exits 1 with that message otherwise.
## Find contacts and recent calls
```bash
agent-bluetooth contacts "Anna"
agent-bluetooth history
agent-bluetooth sync
```
Contacts and history require a directory adapter and use its last sync.
## Play a greeting on incoming calls
```bash
agent-bluetooth settings set incoming=play play_file=/abs/greeting.wav
agent-bluetooth settings
```
Use an existing, nonempty 16-bit PCM WAV, mono or stereo, at an absolute path
on the daemon's machine. Incoming play mode answers immediately, plays once,
then hangs up. First matching routing rules still take precedence.
Route by caller (first match wins):
```bash
agent-bluetooth rules add when_contact=false mode=play play_file=/abs/greeting.wav
agent-bluetooth rules add when_contact=true mode=app
agent-bluetooth rules list
```
Block or screen callers:
```bash
agent-bluetooth block +15551234567 # decline; --stall keeps them busy instead
agent-bluetooth rules preset contacts-only # decline everyone not in contacts
agent-bluetooth rules preset screen-unknown # unknown numbers get stall phrases (needs stall_dir)
```
`status` shows each call's `name` and `contact` (true when the number is in the
phone's contacts).
For manual control, set `incoming=ignore`, then use `answer`, `play /abs/file.wav`
or `bridge`. `answer=manual` currently behaves like auto for app/agent modes;
use ignore to leave calls untouched. To configure room handling:
```bash
agent-bluetooth settings set incoming=agent outgoing=app agent_name=receptionist answer=on_join
```
Room modes need a working LiveKit bridge; `on_join` waits for a participant.
## Diagnose failures
```bash
agent-bluetooth debug
agent-bluetooth logs -n 100
```
First check `phone.radio_error` in `status`: if set, the Bluetooth dongle isn't
working and `hint` says exactly what to do (wrong transport id, missing vendor
firmware, another driver holding the device). Tell the user that step instead of
retrying. Then read phone connection state, current calls, events and logs.
API/request failures exit 1; invalid CLI arguments exit 2. A phone that refuses
answer/hangup/dtmf/volume exits 1 too (HTTP 502, or 504 when it didn't reply), and
a refused dial arrives as a `call.failed` event with the `request_id` that `call`
returned. Never retry a call or SMS blindly after a timeout: inspect status and
recent SMS first.