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
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release
# A merge to main that bumps the plugin version publishes it as a GitHub Release.
# The bighelp app and `hermes bighelp update` install the latest release.
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: write
pull-requests: read
concurrency:
group: release
cancel-in-progress: false
jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Publish the plugin version
env:
GH_TOKEN: ${{ github.token }}
run: python scripts/publish_release.py
58 changes: 40 additions & 18 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ Many features span both repos. The app's side of each route lives in the app rep

## Mindset

- **Every merge to `main` is a release.**
- `hermes loopdy update` installs the newest `main` on real hosts, and the app installs the exact revision it
pins. Keep `main` releasable.
- Bump the version for any change in behavior.
- **A merge that bumps the version is a release.**
- `.github/workflows/release.yml` publishes it as a GitHub Release. The bighelp app offers the latest release to
every host, and `hermes bighelp update` installs it. No app build is needed to ship a plugin update.
- Bump the version for any change in behavior; a merge without a bump publishes nothing. Keep `main`
releasable anyway.
- The maintainer merges.
- **Never break older apps.** Add fields and add new capability names. Don't rename, remove or change the meaning of
what an app build already uses.
Expand Down Expand Up @@ -57,7 +58,8 @@ Many features span both repos. The app's side of each route lives in the app rep
| `__init__.py`, `loopdy_plugin/registration.py` | Entry point: registers the platform adapter, hooks, tools and skills with Hermes |
| `loopdy_plugin/native_api.py` | The app's routes under `/api/plugins/loopdy/native/…` (`router`, `_NativeRoute`, `NativeAPIError`) |
| `loopdy_plugin/native_context.py` | `/native/context`: the feature list the app checks before calling a route |
| `loopdy_plugin/tools.py`, `generative_ui.py`, `loopdy_cards.py` | Agent tools and native cards (`loopdy_render_*`) |
| `loopdy_plugin/tools.py`, `generative_ui.py`, `loopdy_cards.py` | Agent tools and native cards (`bighelp_render_*`) |
| `loopdy_plugin/agent_guide.py`, `skills/bighelp/` | What agents are told about bighelp: the chat brief and the `bighelp` skill |
| `loopdy_plugin/agent_board.py`, `provider_usage.py`, `secure_input.py`, `agent_templates.py`, `reactions.py` | Feature modules |
| `loopdy_plugin/live_voice_*.py`, `native_voice.py`, `voice_*.py` | Live and turn-based voice |
| `loopdy_plugin/managed_notifications*.py`, `sealed_alerts.py` | Notifications and Live Activities |
Expand All @@ -69,18 +71,24 @@ Many features span both repos. The app's side of each route lives in the app rep
| `docs/` | One page per feature, with its route contract |
| `tests/` | `unittest` suites |

## Names that must stay "loopdy"
## Names

The plugin was first called Loopdy. These names are stored on hosts or used by the app, so never rename them:
- the plugin name in `plugin.yaml`
- the `hermes loopdy` CLI and `/api/plugins/loopdy/…` routes
- `LOOPDY_*` environment variables
- the `loopdy` platform target
- `loopdy_render_*`, `loopdy_await_form_response` and `loopdy_react_to_message` tools
- the `X-Loopdy-Request-ID` header
- the `plugin-data/loopdy` folder
Everything an agent or a person reads says bighelp: tool names and the `bighelp` toolset, skills, prompts, labels,
messages, logs, the `hermes bighelp` command and `BIGHELP_*` settings. `loopdy_plugin/naming.py` holds these names
and the old ones that keep working.

New tools and user-facing text say bighelp (for example `bighelp_board` and `bighelp_request_secure_input`).
The plugin was first called Loopdy. These names are stored on hosts or read by app builds already on phones, so
they stay until every supported app build speaks the new ones:
- the plugin name in `plugin.yaml` (so the `plugins/loopdy` folder, `plugins.enabled: [loopdy]` and the
`loopdy:` skill prefix, which follows it)
- the `/api/plugins/loopdy/…` routes, the `X-Loopdy-Request-ID` header and the `plugin-data/loopdy` folder
- card wire formats (`loopdy.generative_ui`, `loopdy.card`, the `loopdy-card` fence): agents write
`bighelp.generative_ui` and `bighelp.card`, and the plugin translates
- the `loopdy` platform target and the notification formats shared with the app and the notification service
- the `loopdy_plugin` package name (internal)

Old names that still work: `hermes loopdy …` (hidden), the `loopdy` toolset (an alias for `bighelp`), and
`LOOPDY_*` settings when the `BIGHELP_*` one isn't set.

## How the plugin loads (read this before touching shared state)

Expand Down Expand Up @@ -108,7 +116,21 @@ shared through one `sys.modules` entry (see `sys.modules.setdefault(...)` in `ma
4. **Docs:** add `docs/<FEATURE>.md` with the full route contract, and a row in the README feature table.
5. **Version:** bump `plugin.yaml` and `PLUGIN_VERSION` in `loopdy_plugin/link_contracts.py` together.
`tests/test_portability.py` checks that they match.
6. **After merge:** the app pins the new version and the merge commit, and adds its side of the route.
6. **After merge:** the release workflow publishes the new version and the app offers it to hosts. The app adds
its side of the route in its own release.

## What agents are told

- The app starts and reopens chats with session source `bighelp`. Hermes has no built-in hint for it, so the
plugin's prompt section (`agent_guide.py`) is the agent's description of where it is. Before, chats had no
source and Hermes called them its terminal UI: no files, no cards, "cron can't reach you".
- The section is rendered once per new session and frozen, and Hermes caps all plugins' sections together at
8,000 characters. Keep the brief short and put detail in `skills/bighelp/SKILL.md`.
- Plugin skills are not listed in the agent's skill index. Agents find them only through the brief or another
skill, so link new skills from `skills/bighelp/SKILL.md` and register them in `agent_guide.SKILLS`.
- A scheduled job's reply reaches the phone as a managed notification from the run itself. Guidance says
`deliver: "local"`: an omitted `deliver` falls back to another channel's home chat, and `loopdy` delivery is
the retired Link inbox.

## Hermes compatibility

Expand All @@ -124,8 +146,8 @@ shared through one `sys.modules` entry (see `sys.modules.setdefault(...)` in `ma

## Updates must stay unattended

- The self-updater pins `main` to a commit, validates it, backs up the current copy and installs it with Hermes'
installer. It refuses to overwrite a modified install.
- The self-updater pins the latest release to its commit, validates it, backs up the current copy and installs it
with Hermes' installer. It refuses to overwrite a modified install or move a host to an older version.
- **New `capabilities:` in `plugin.yaml` block automatic updates** until someone approves them on the host. Avoid
this unless it's truly needed, and call it out in the PR.
- **Hermes scans the whole plugin on every update**, docs included. A `caution` verdict needs a person to approve it,
Expand Down
64 changes: 43 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ optional end-to-end encrypted notifications.
Hermes stays in charge of agents, chats, tools, approvals and scheduled tasks. The plugin runs inside Hermes'
own dashboard and uses its sign-in. It opens no extra ports and needs no bighelp account or public URL.

> The plugin's internal name is still `loopdy`, so commands are `hermes loopdy …` and routes live under
> `/api/plugins/loopdy/…`. Existing installs keep working.
> Hermes still knows the plugin by its first name, `loopdy`: that's its folder, its routes under
> `/api/plugins/loopdy/…` and the `loopdy:` prefix on its skills. Renaming those would cut off app builds already
> on phones. Everything agents and people read says bighelp, and older names (`hermes loopdy …`, the `loopdy`
> toolset, `LOOPDY_*` settings) keep working.

## Requirements

Expand All @@ -25,7 +27,7 @@ hermes plugins install promptclickrun/bighelp-plugin --enable
```

Then restart the Hermes gateway and dashboard the way you normally do. The app can also install or update the
plugin from its host setup screen; it installs the exact version that app build was tested with.
plugin from its host setup screen; it installs the latest release.

To install a local checkout, commit your changes first (Hermes installs from Git), then run:

Expand All @@ -36,13 +38,15 @@ hermes plugins install "file://$PWD" --enable
## Update

```bash
hermes loopdy update # install the latest release from main
hermes loopdy update --restart # …and restart the gateway once
hermes loopdy update-status # check the last update
hermes bighelp update # install the latest release
hermes bighelp update --restart # …and restart the gateway once
hermes bighelp update-status # check the last update
```

The updater pins `main` to an exact commit, validates it, backs up the current copy and installs it with Hermes'
own installer. Your settings stay in place. It refuses to overwrite a modified install. Self-update needs macOS
Every merge that bumps the version publishes a [GitHub Release](https://github.com/promptclickrun/bighelp-plugin/releases)
(`.github/workflows/release.yml`); other merges don't reach hosts. The updater looks up the latest release, pins
its exact commit, validates it, backs up the current copy and installs it with Hermes' own installer. It never
moves a host to an older version. Your settings stay in place. It refuses to overwrite a modified install. Self-update needs macOS
launchd or Linux user systemd.

The bighelp app shows when a host's plugin is out of date (Settings › Hosts) and can update it, restart the
Expand All @@ -56,8 +60,8 @@ systemd and Hermes Desktop keep supervising it; chats running on that process st
| --- | --- | --- |
| Agent board | Each agent's Feed, Ideas, Goals, Activity and approval history, next to its chat. Agents post with the `bighelp_board` tool. | [Agent board](docs/AGENT_BOARD.md) |
| Apps tab | Files the agent recently made or changed, and the pictures and videos it delivered. | [Artifacts and media](docs/APPS_ARTIFACTS_AND_MEDIA.md) |
| Cards | Native cards in chat: summaries, metrics, lists, timelines, charts, forms, checklists, weather, scores, stock quotes and more, via the `loopdy_render_*` tools. Card templates can be saved and reused. | [Cards guide](docs/CARDS.md) |
| Reactions | Agents can react to your messages with an emoji (`loopdy_react_to_message`). | |
| Cards | Native cards in chat: summaries, metrics, lists, timelines, charts, forms, checklists, weather, scores, stock quotes and more, via the `bighelp_render_*` tools. Card templates can be saved and reused. | [Cards guide](docs/CARDS.md) |
| Reactions | Agents can react to your messages with an emoji (`bighelp_react_to_message`). | |
| Secure input | An agent can ask for a password, API key or other secret with `bighelp_request_secure_input`. bighelp shows a masked pop-up; Hermes saves what you type to the agent's `.env` and the agent can use it only as `$NAME` in commands. The AI never sees the value. Hermes' own AI provider keys are excluded. | |
| Agent templates | Save an agent's setup as a template and start new agents from it. | |
| iPhone tools | `iphone_health` (read-only), `iphone_calendar` and `iphone_reminders`. Each is off until you allow it for a host on your phone. They only work while bighelp is open and in the foreground. | [iPhone tools](docs/IPHONE_DEVICE_TOOLS.md) |
Expand All @@ -77,16 +81,32 @@ systemd and Hermes Desktop keep supervising it; chats running on that process st
Never substitute a different tool.
- **Inline card in the active chat:** return the card as part of the current reply.
Do not use the notification channel just to answer the current chat.
- **Proactive or scheduled card** (shown later in the app): target the `loopdy` platform and make the exact
result the card tool returned the complete final message, with no extra text. Hermes does not auto-forward an
earlier card to a later channel send. Never script or reconstruct a card.
- **Proactive or scheduled card** (shown later in the app): a scheduled job (with `deliver: "local"`) calls the
card tool and puts its `display_markdown` in the run's final reply, after one plain sentence. bighelp notifies
the user with that reply. A card tool result does not auto-forward to a later message.
Never script or reconstruct a card.
- Cards are display-only. Everything shown is embedded in the card, and opening one makes no network request.

The `skills/` folder ships read-only guidance for agents, for example `skill_view("loopdy:generative-ui")`:
### What agents are told

Chats started in bighelp reach Hermes with session source `bighelp` (app builds from 2.3.0 build 33). For those
chats the plugin adds a short brief to the agent's instructions: it's in the bighelp app, what the chat shows,
which bighelp tools to use, and how scheduled jobs reach the phone. Other chats get one line pointing to the
`bighelp` skill; scheduled runs and helpers get nothing.

The `skills/` folder ships read-only guidance for agents, opened with `skill_view("loopdy:<name>")`:

- `bighelp`: start here. Cards, forms, Feed, Ideas and Goals, reminders and notifications, secure input, iPhone
tools.
- `generative-ui`: when and how to use each card tool.
- `bighelp-feed-and-ideas`: posting to the agent board only when the user asks.
- `custom-theme-authoring`: making themes the app can import.
- `bighelp-marketplace-publish`: preparing a theme, card template or skill for review.

Since 3.0.0 the agent tools are named `bighelp_*` and live in the `bighelp` toolset (they were `loopdy_*` in
`loopdy`). Saved tool settings and scheduled jobs that name the `loopdy` toolset still get these tools. Card
tools take `schema: "bighelp.generative_ui"` or `"bighelp.card"`; the cards the app receives keep their original
format, so older app builds still show them.

## Notifications (optional)

Expand Down Expand Up @@ -115,18 +135,20 @@ deny) and never invents one. No configuration is needed.
## Commands

```text
hermes loopdy status Plugin and notification status (never prints keys or tokens)
hermes loopdy update [--restart] Update from main
hermes loopdy update-status Last update result
hermes loopdy files grant|revoke|roots Manage read-only workspace folders
hermes loopdy files list|read|status|diff
hermes loopdy wiki … Host-side wiki grants
hermes bighelp status Plugin and notification status (never prints keys or tokens)
hermes bighelp update [--restart] Install the latest release
hermes bighelp update-status Last update result
hermes bighelp files grant|revoke|roots Manage read-only workspace folders
hermes bighelp files list|read|status|diff
hermes bighelp wiki … Host-side wiki grants
```

`hermes loopdy …` still works for scripts written before 3.0.0.

## Legacy code

Earlier versions paired hosts through a bighelp Link account and sent notifications through a relay or direct
APNs. The app no longer uses any of that. The related code, settings and commands (`hermes loopdy link …`,
APNs. The app no longer uses any of that. The related code, settings and commands (`hermes bighelp link …`,
`provider`, `configure-apns`, `direct …`) remain only so existing data and compatibility tests keep working.
Don't set them up on new hosts.

Expand Down
4 changes: 2 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Please report security problems privately through GitHub:

## Supported versions

Only the latest release on `main` gets fixes. Update with `hermes loopdy update`.
Only the [latest release](https://github.com/promptclickrun/bighelp-plugin/releases/latest) gets fixes. Update with `hermes bighelp update`.

## How the plugin is protected

Expand All @@ -21,7 +21,7 @@ Only the latest release on `main` gets fixes. Update with `hermes loopdy update`
Paths are re-checked on every read, and symlinks, credential folders and Hermes' own control folders are
refused. Agent attachments are served by opaque ID and only if the chat really sent them.
- **Secrets stay on the host.** Provider credentials, the notification signing key and private keys are never
returned to the app or printed by `hermes loopdy status`.
returned to the app or printed by `hermes bighelp status`.
- **Notifications are sealed.** With current app builds, only the recipient phone can read an alert's text and
picture. See [Notifications](docs/NOTIFICATIONS.md).
- **Phone tools are opt-in.** iPhone Health, Calendar and Reminders tools work only after the user enables them,
Expand Down
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Loopdy native Hermes plugin entry point."""
"""bighelp native Hermes plugin entry point."""

from .loopdy_plugin.registration import register

Expand Down
5 changes: 4 additions & 1 deletion after-install.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ approvals.
Notifications are optional: turn them on for this host in the app. With current bighelp builds, notification content is end-to-end encrypted
for your phone.

Agents: call a visible `loopdy_render_*` tool directly to show a card in the current chat. If Hermes has
Agents: call a visible `bighelp_render_*` tool directly to show a card in the current chat. If Hermes has
progressively disclosed it and it isn't visible, use the official tool bridge (`tool_search`, `tool_describe`,
`tool_call`) to run that exact tool. Examples: `skill_view("loopdy:generative-ui")`.

Agents learn the rest on their own: chats from the app come with a short bighelp brief, and
`skill_view("loopdy:bighelp")` covers cards, Feed, Ideas and Goals, reminders and notifications.
6 changes: 3 additions & 3 deletions dashboard/manifest.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "loopdy",
"label": "Loopdy",
"description": "Authenticated local push providers, device settings, event inbox, and approvals for Loopdy.",
"label": "bighelp",
"description": "The bighelp app's routes on this Hermes host: native features, notifications and approvals.",
"icon": "MessageSquare",
"version": "2.8.0",
"tab": {
"path": "/loopdy",
"path": "/bighelp",
"position": "end",
"hidden": true
},
Expand Down
8 changes: 4 additions & 4 deletions dashboard/plugin_api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Authenticated Hermes dashboard API consumed by the Loopdy app."""
"""Authenticated Hermes dashboard API consumed by the bighelp app."""

from __future__ import annotations

Expand Down Expand Up @@ -847,16 +847,16 @@ def _api_error(error: Exception) -> HTTPException:
return HTTPException(status_code=response_status, detail=f"Push provider error: {code}")
return HTTPException(
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
detail="Loopdy request failed",
detail="bighelp request failed",
)


def _public_error(value: str) -> str:
text = " ".join(str(value or "Loopdy request failed").split())[:300]
text = " ".join(str(value or "bighelp request failed").split())[:300]
text = re.sub(r"(?:Exponent|Expo)PushToken\[[^\]]+\]", "[redacted token]", text)
text = re.sub(r"\b[0-9a-fA-F]{64,}\b", "[redacted token]", text)
text = re.sub(r"(?:^|\s)/(?:[^\s/]+/)+[^\s]+", " [redacted path]", text)
return text or "Loopdy request failed"
return text or "bighelp request failed"


_ACTION_MESSAGES = {
Expand Down
2 changes: 1 addition & 1 deletion docs/AGENT_BOARD.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ profile in `<profile home>/plugin-data/loopdy/board.sqlite3`.

## Writing (agents only)

The `bighelp_board` tool (toolset `loopdy`) publishes Feed posts (`post`), Ideas
The `bighelp_board` tool (toolset `bighelp`) publishes Feed posts (`post`), Ideas
(`idea`) and Goals (`goal`, `update_goal`), and can `list` or `remove` items. Local
images are copied into `board-media/` at publish time; only those copies (PNG, JPEG,
GIF, WebP, HEIC, 8 MB max) are ever served. https image URLs are passed through.
Expand Down
Loading
Loading