Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ launchd, systemd and Hermes Desktop continue to supervise it. Chats that run on

| Feature | What you get in bighelp | Details |
| --- | --- | --- |
| Agent board | Each agent's Feed, Ideas, Goals, Activity and approval history, next to its chat. Agents post with the `bighelp_board` tool. Feed posts can carry files that you can open, save and share. | [Agent board](docs/AGENT_BOARD.md) |
| Agent board | Each agent's Feed, Ideas, Goals, Activity and approval history, next to its chat. Agents post with the `bighelp_board` tool. Feed posts can carry files that you can open, save and share. Each computer has its own list of goal categories: you add, rename and delete them in the app's Goals, or you ask an agent to. | [Agent board](docs/AGENT_BOARD.md) |
| Files tab | An agent's working folder, the files that the agent made or changed recently, and the pictures and videos that it sent. Read-only. In Simple Bot mode, each bot's Files tab shows the folder of that bot. Other screens show the folder of the agent that serves the app. | [Files tab](docs/APPS_ARTIFACTS_AND_MEDIA.md) |
| Cards | Native cards in chat: summaries, metrics, lists, timelines, charts, forms, checklists, weather, scores, stock quotes and more, through the `bighelp_render_*` tools. Agents show a person, place or song they found as a contact, place or music card with action buttons. Agents can save a layout as a private card template and use it again with new values. | [Cards guide](docs/CARDS.md) |
| Reactions | Agents can react to your messages with an emoji (`bighelp_react_to_message`). | |
Expand All @@ -124,7 +124,7 @@ launchd, systemd and Hermes Desktop continue to supervise it. Chats that run on
| Template Catalog for agents | Agents can search bighelp's Template Catalog and fill in a template with you (`bighelp_templates_*`, in the `bighelp_templates` toolset). An agent can make a new agent from a template only after you turn on `templates_allow_create_agent`, and you approve each new agent. | [Template tools](docs/TEMPLATE_TOOLS.md) |
| Template Catalog submissions | Agents can submit blueprints and agent templates to the bighelp Template Catalog for you, with your GitHub name as the credit. Each computer needs one GitHub sign-in: in chat with a code, a link and a QR, or with `hermes bighelp catalog login`. You approve each submission, and the plugin refuses keys and passwords. A reviewer reads each submission, and the result shows in Feed. The limit is 5 each day for each GitHub account. The tools are in the `bighelp_templates` toolset. | [Template Catalog](docs/TEMPLATE_CATALOG.md) |
| iPhone tools | `iphone_calendar`, `iphone_reminders` (also at a place) and `iphone_location` (where you are now). `iphone_contacts`, `iphone_photos`, `iphone_geofences` (a message when you arrive or leave a place), `iphone_alarms` (alarms and timers), `iphone_music`, `iphone_focus` (read only) and `iphone_shortcuts` (only shortcuts you list) work the same way. `iphone_health` reads Apple Health samples (read only, at most 31 days and 200 records a call). Each tool is off until you allow it for a host on your phone. When an agent calls a tool that is off, the app can show a card in the chat that asks you to turn it on, and the call waits up to 5 minutes for your answer. When you ask, `iphone_appearance` changes the light or dark mode and the chat color of bighelp. It is on until you turn it off. `iphone_navigation` opens a page in bighelp to show you where something is; it never changes anything. The tools work only while the phone is unlocked and bighelp shows a chat with that host. Every agent of the host can use them in its own chats, when the bighelp plugin is on for that agent. | [iPhone tools](docs/IPHONE_DEVICE_TOOLS.md) |
| Live voice | Talk with your agent in real time. Live voice uses the Codex subscription that is signed in on the host, or an API key. The work itself runs as a normal Hermes chat. | [Live voice](docs/LIVE_VOICE.md) |
| Live voice | Talk with your agent in real time. Live voice uses the Codex subscription that is signed in on the host, or an API key. The work itself runs as a normal Hermes chat. A call picks up the chat it opens in, and what is said goes back into that chat. | [Live voice](docs/LIVE_VOICE.md) |
| Project Git | See the Git status and diffs of a project. Read-only. | [Project Git](docs/NATIVE_PROJECT_GIT.md) |
| Agents talking | When one agent asks another (`hermes -p <agent> chat -q`, or `message_agent`), the chat shows what the other agent does while it works, and which of its chats the exchange used. The plugin reads the history of the other agent and does not change it. The app sends a hash of each message, never the words. When a chat is busy in another Hermes process, the app shows it and can stop that run. | [Agents talking](docs/AGENT_TALK.md) |
| Which agents are working | The home of the app shows which bots work on a turn (and the tool that they use) and which bots need you. This includes turns that another agent asked for in another Hermes process (`message_agent`, `hermes -p <agent> chat -q`). The plugin reads the turn leases of Hermes and the state of the dashboard, read-only, for up to 64 agents in one read. | [Which agents are working](docs/AGENTS_ACTIVITY.md) |
Expand Down
40 changes: 34 additions & 6 deletions docs/AGENT_BOARD.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ All take `agentId` and follow the native context/ETag/request-ID contract.

| Route | Body | Returns |
|---|---|---|
| `board/list` | `kinds`, `limit`, `includeDismissed` | `items` (goals with `category`) |
| `board/list` | `kinds`, `limit`, `includeDismissed` | `items` (goals with `category`), and `goalCategories` with `native-goal-categories-v1` |
| `board/update` | `itemId`, `liked`, `dismissed`, `status` (goals); with feedback: `rating` (`up`/`down`/`none`), `reason` (thumbs down, 120 chars), `read` | `item` |
| `board/media` | `itemId`, `index` | `mimeType`, base64 `data` |
| `board/activity` | `limit` | `activity` with Hermes' session `title` |
Expand All @@ -60,11 +60,39 @@ With `native-agent-board-goal-categories-v1`:

Goals carry `category`: one of `health`, `relationships`, `finance`, `career`,
`interests`, `productivity` or `other`, or `""` for none. Agents set it with the
tool's `goal` and `update_goal` actions; anything outside the list is refused.
Republishing a goal without a category keeps the one it had. Feed posts and
ideas always have `""`. Making an idea a goal keeps its `section` as the
category when the section is one of those names. Goals from before this have no
category, and the app shows them under Other.
tool's `goal` and `update_goal` actions. A name outside the list is not refused:
it becomes the built-in category it means ("Fitness" is `health`), else `other`,
and the tool's answer says so. Republishing a goal without a category keeps the
one it had. Feed posts and ideas always have `""`. Making an idea a goal keeps
its `section` as the category when the section is one of those names. Goals from
before this have no category, and the app shows them under Other.

With `native-goal-categories-v1`:

Each computer has its own list of goal categories, for every agent on it
(`goal_categories.py`; the file is `plugin-data/loopdy/goal-categories.json` at
the Hermes root). Until someone changes it, it is the seven above. A category is
`id` (lowercase letters, digits and dashes, made from its first name and never
changed), `name` (40 characters) and `icon` (one emoji, or empty). A computer
keeps at most 24. `other` is always there, always last, and keeps its name.

- `board/list` also returns `goalCategories`, in the list's order. Each goal
carries the `category` it shows under now, with `categoryName` and
`categoryIcon`. An app from before this still reads `category`.
- `board/categories` changes the list: `action` is `add` (`name`, optional
`icon`), `update` (`id`, then `name` or `icon`) or `delete` (`id`). It returns
the new `goalCategories`. A refusal's message is for the person: 409 for a
name in use (`category_exists`), a full list (`too_many_categories`), bad text
(`invalid_category`) or a change to `other` (`category_fixed`), 404 for
`category_not_found`.
- Agents change the same list with the tool's `categories`, `add_category`,
`update_category` and `remove_category` actions, when the user asks, and name
a goal's category by its `id` or its `name`.
- A goal's stored category is never rewritten when the list changes. A goal
whose category was removed shows under `other`; add a category with that name
again and its goals are back. Naming the category a goal already has, on
`goal` or `update_goal`, keeps it even when the list no longer has it.
- A renamed category keeps its `id`, so its goals stay in it.

With `native-agent-board-files-v1`:

Expand Down
36 changes: 32 additions & 4 deletions docs/LIVE_VOICE.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,33 @@ All five operations are `POST /api/plugins/loopdy/native/voice/<operation>` with
checks (see [Native workspace API](NATIVE_WORKSPACE_API.md)). The plugin advertises `native-voice-v1`. The routes
don't check that feature themselves: they check the native session, the context ETag and that the agent exists.

## A call continues its chat

A call opens in one chat, and it carries that chat on in both directions (`native-voice-history-v1`).

- **Into the call.** Before the voice model listens, the `offer` reads the chat the app names (`agentId`,
`sessionId`) from that agent's own `state.db`: its newest messages with their roles, the summary Hermes wrote
when it compacted the older part (without the note and end marker Hermes puts around it for its own model),
and the request a turn is still working on. Tool calls, tool results and Hermes' own notices stay out. Every provider gets the same snapshot: up to 16 messages, at most 800 characters
each and 8,000 bytes together, fenced in the instructions as data with each message's role. On GPT-Live the
oldest give way first when the brief and the chat don't fit in 16,000 bytes. The brief tells the model to
carry the chat on: answer from it, don't greet as if it were new, and don't repeat earlier answers.
- **Back into the chat.** `POST …/voice/transcript` takes the call's finished lines: `voiceId` and up to 32
`items`, each `{id, role: user|assistant, text (up to 4,000 characters), interrupted, at}`. Each line becomes an
ordinary message in the chat (on the newest part of a compacted chat), stamped with the time it was said. A
reply the person cut off ends with "…". Control characters are taken out, and a line with no words is not
saved. A store that can't be written answers `voice_chat_busy`, as a running turn does, so the app tries again. Nothing runs: Hermes adds rows another writer saved to the chat's live
history at its next turn, so the next typed message knows what was said. Requests the voice model handed over
are already their own turns in the chat, and are never sent again.
- **Order and at most once.** The plugin writes only while no turn runs in the chat (Hermes' turn lease, or this
dashboard running it), so a spoken line never lands inside a turn. A busy chat answers 409
`voice_chat_busy`, and the app sends the same lines again later. Each line is saved at most once per call and
`id` (`plugin-data/loopdy/voice_history.sqlite3` in the agent's home, kept 30 days), so a retry after a lost
answer or a reconnect never doubles one. The answer lists the IDs written now (`saved`) and before (`known`). A
chat that isn't this agent's answers 409 `voice_chat_unavailable`.

Reads and writes stay in the one chat the request names, in the agent it names, on this computer.

## Providers

- **Codex subscription** (default): GPT-Live on the Codex subscription signed in on the host. The phone never
Expand Down Expand Up @@ -103,7 +130,8 @@ on top of the model's line.

## What the plugin keeps

Nothing lasting. The person's name, place and time zone go into that call's instructions to the voice provider,
and the plugin doesn't keep them. Call state lives in memory and is dropped when the call closes or the plugin unloads. The
plugin doesn't run prompts, store transcripts or schedule work; the conversation lives in Hermes' normal
history.
Nothing of its own beyond the call. The person's name, place and time zone, and the chat's newest messages, go
into that call's instructions to the voice provider, and the plugin doesn't keep them. Call state lives in memory
and is dropped when the call closes or the plugin unloads. What was said on the call is saved in the chat itself,
in Hermes' normal history; the plugin keeps only which lines it saved (call and line IDs, no text). It doesn't run
prompts or schedule work.
Loading
Loading