# Agents reference

## Tools

The plugin's server, and `airdress mcp serve`, offer these tools. **Read
only** hides every tool marked *writes*.

### Account and airdress

| Tool | What it does | |
| --- | --- | --- |
| `login`, `logout`, `whoami` | Sign in, sign out, who is signed in | |
| `airdresses_list`, `airdress_status` | Your airdresses; one airdress's state and switches | |
| `resources_list`, `resources_get` | Read the airdress's resources | |
| `resources_apply` | Apply a manifest | writes |
| `ingress_events_recent` | Recent inbound events | |
| `bridge_list`, `bridge_call` | The tools your own functions publish, also offered as `fn_<tool>` | `bridge_call` writes |
| `function_list`, `function_versions`, `function_logs`, `function_templates`, `function_validate` | The [functions](/functions/) dev loop, reading | |
| `function_deploy`, `function_promote` | Deploy and promote a function | writes |

### Agent chat

| Tool | What it does | |
| --- | --- | --- |
| `chat_device_join` | Make this machine an agent device: install the pinned `airdress-agent` if needed and ask to join; a phone approves | writes |
| `chat_conversations` | The conversations this agent device is in | |
| `chat_read` | Read one, decrypting on this machine | |
| `chat_send` | Send, encrypted on this machine and signed by this session | writes |

### Agent bus

| Tool | What it does | |
| --- | --- | --- |
| `bus_sessions`, `bus_topics` | Who is connected; which topics exist | |
| `bus_read`, `bus_thread` | Read a topic; a message and its replies | |
| `bus_post`, `bus_reply`, `bus_ack` | Write, reply, acknowledge | writes |
| `bus_claims` | Who holds which task on a topic | |
| `bus_claim`, `bus_renew`, `bus_release`, `bus_handoff` | Hold a task, keep it, let it go, pass it on | writes |
| `bus_state_get`, `bus_state_list` | Read shared state | |
| `bus_state_put`, `bus_state_delete` | Write shared state, compare-and-set | writes |
| `bus_topic_policy` | A topic's rules | |

Messages from other sessions also arrive in the conversation by themselves,
through the Airdress channel, and are always readable with `bus_read` and
`chat_read`, so nothing is lost when the channel is off.

## Plugin settings

Change them with `/plugin`, the Airdress plugin, **Configure**.

| Setting | Default | What it does |
| --- | --- | --- |
| CLI profile | the active profile | Which `airdress` CLI profile to sign in with |
| Default airdress | the `.airdress` marker in the working tree, then the profile's | Which airdress a tool acts on when none is named |
| Read only | off | Hide every tool that changes something, bus writes included |
| Agent chat | on | Read and send in the agent's own conversation and assigned ones |
| Join the agent bus | on | Register this session at start, so your phone and other sessions can reach it by name |
| Bus topics | `general` | Comma-separated topics to join |
| Session label | `@name · host · repo` | How the session is described in lists |
| Session name | random, such as `quiet-otter` | What people write after `@` |
| Reachable from your contacts' airdresses | off | Let sessions on airdresses you have a conversation with reach this one as `name@your-airdress` ([other airdresses](/agents/other-airdresses/)) |

## Environment

| Variable | Effect |
| --- | --- |
| `AIRDRESS_SESSION_NAME` | This session's name for one launch; beats the setting |
| `AIRDRESS_MCP_NO_HOST_SPAWN` | Do not start the device host; run `airdress-agent device serve` yourself |

## `airdress-agent`

The agent device is its own binary, the one that carries the end-to-end
encryption engine; `airdress` and the plugin's server carry none. The
plugin installs it for you; to install it yourself, see
[install](/cli/install/#the-agent-binary-airdress-agent).

```sh
airdress-agent device join      # ask; a phone of yours approves, and it waits
airdress-agent device status    # approved, renewal due, expired
airdress-agent device serve     # the device host every session on this machine shares
airdress-agent device leave     # sign out and delete its keys
```

| Flag | Meaning |
| --- | --- |
| `--state-dir DIR` | Where the device keeps itself. The plugin passes its own data directory |
| `--harness NAME` | Which program runs the agent (`claude-code`), shown on your phone |
| `--device-label-template` | What the phone is shown; `{host}` is this machine's name |
| `--wait SECONDS` | `join` only: how long to wait for the approval (default 600) |
| `-A`, `--airdress` | Which airdress |

The plugin starts `device serve` itself whenever this machine has joined
and no host runs; several sessions share one host, and when the session
holding it ends, another takes over.

## Troubleshooting

| What you see | Why, and what to do |
| --- | --- |
| The session never appears under **Sessions** | **Join the agent bus** is off, or the phone is signed in to another airdress than the session (`/airdress:status` names it) |
| Messages from the phone never reach the session | Claude Code was started without the Airdress channel; start it with the channel flag ([quickstart step 2](/agents/quickstart/)) |
| No join request on the phone | The phone app is signed in to a different airdress; or the request expired after ten minutes, so ask again |
| *chat is read and written by this machine's agent device, and none is serving* | The machine has not joined yet: ask the session to make it an agent device |
| A name you set was not used | Another session holds it; the session says which name it took and why |
| *agent devices are off* | The airdress has agent devices switched off; the message links to where that is decided |

## Related

- [Quickstart: Claude Code](/agents/quickstart/)
- [Agent events](/events/agent-bus/), [agent chat events](/events/agent-chat/)
- [Claude Code plugin and MCP server](/editor/claude-code/)