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
10 changes: 5 additions & 5 deletions after-install.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# bighelp plugin installed
# Bighelp plugin installed

Restart the Hermes gateway and dashboard the way you normally do so the plugin loads.

In the bighelp app, add this host by its address on your local network or Tailscale and sign in with the host's
own login. No bighelp account, pairing code or public URL is needed. Hermes keeps owning chats, tools and
In the Bighelp app, add this host by its address on your local network or Tailscale and sign in with the host's
own login. No Bighelp account, pairing code or public URL is needed. Hermes keeps owning chats, tools and
approvals.

Notifications are optional: turn them on for this host in the app. With current bighelp builds, notification content is end-to-end encrypted
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.

Host telemetry is on: the plugin sends numbers about turns, tools and alerts, tied to a random host ID (never text, paths or
Expand All @@ -17,5 +17,5 @@ Agents: call a visible `bighelp_render_*` tool directly to show a card in the cu
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
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.
2 changes: 1 addition & 1 deletion dashboard/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "loopdy",
"label": "bighelp",
"label": "Bighelp",
"description": "The bighelp app's routes on this Hermes host: native features, notifications and approvals.",
"icon": "MessageSquare",
"version": "3.54.0",
Expand Down
6 changes: 3 additions & 3 deletions dashboard/plugin_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -843,16 +843,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="bighelp request failed",
detail="Bighelp request failed",
)


def _public_error(value: str) -> str:
text = " ".join(str(value or "bighelp 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 "bighelp request failed"
return text or "Bighelp request failed"


_ACTION_MESSAGES = {
Expand Down
2 changes: 1 addition & 1 deletion docs/PEOPLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ with one host, agents now know which of them is writing.
send none, which means basic components only.
2. The chat brief names whoever started the chat.
3. Once a second person writes in a chat, each message carries a one-line
`[bighelp] This message is from {"person":"Sam"}` note through Hermes'
`[Bighelp] This message is from {"person":"Sam"}` note through Hermes'
`pre_llm_call` hook. Hermes keeps that note only in a hidden copy of the
message for the model, so the chat and its history show what was typed.
4. `bighelp_people` tells the agent who's writing now and who else has used
Expand Down
2 changes: 1 addition & 1 deletion fixtures/loopdy_card_v1/static-html-app.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"schema": "loopdy.card",
"version": 1,
"title": "Trip planner",
"spoken_summary": "An app to open in bighelp: Trip planner.",
"spoken_summary": "An app to open in Bighelp: Trip planner.",
"data_sources": [],
"root": "app",
"elements": {
Expand Down
10 changes: 5 additions & 5 deletions loopdy_plugin/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async def send(
return SendResult(success=True, message_id=message_id)
return SendResult(
success=False,
error=str(result.get("error") or "bighelp delivery failed"),
error=str(result.get("error") or "Bighelp delivery failed"),
)

async def get_chat_info(self, chat_id: str) -> dict[str, str]:
Expand All @@ -133,7 +133,7 @@ async def standalone_send(
adapter_factory: Callable[..., BighelpAdapter | Any] = BighelpAdapter,
) -> dict[str, Any]:
if media_files:
return {"error": "bighelp proactive notifications do not accept attachments"}
return {"error": "Bighelp proactive notifications do not accept attachments"}
del force_document
target = str(
chat_id
Expand All @@ -143,7 +143,7 @@ async def standalone_send(
adapter = adapter_factory(pconfig, service=service or get_service())
try:
if not await adapter.connect():
return {"error": "bighelp delivery is unavailable"}
return {"error": "Bighelp delivery is unavailable"}
result = await adapter.send(
target,
message,
Expand All @@ -154,7 +154,7 @@ async def standalone_send(
"success": True,
"message_id": str(result.message_id or ""),
}
return {"error": str(result.error or "bighelp delivery failed")}
return {"error": str(result.error or "Bighelp delivery failed")}
finally:
await adapter.disconnect()

Expand All @@ -179,7 +179,7 @@ def env_enablement() -> dict[str, Any] | None:
return None
return {
"home_target": target,
"home_channel": {"chat_id": target, "name": "bighelp"},
"home_channel": {"chat_id": target, "name": "Bighelp"},
}


Expand Down
6 changes: 3 additions & 3 deletions loopdy_plugin/agent_board.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def session_titles(profile: str, session_ids: list[str]) -> dict[str, str]:
# MARK: Tool

TOOL_DESCRIPTION = (
"Publish to the user's bighelp app. Actions: 'post' adds a Feed post (a briefing, news item or "
"Publish to the user's Bighelp app. Actions: 'post' adds a Feed post (a briefing, news item or "
"update with optional images, links and files the user can open, save and share), or updates the "
"post with that id; 'idea' proposes something you could do for the user; "
"'goal' adds or updates a Goal (section 'tracking' for things you watch, 'goal' for the user's "
Expand Down Expand Up @@ -845,7 +845,7 @@ def observe(self, hook: str, **payload: Any) -> None:
try:
self._observe(hook, **payload)
except Exception as error: # observability must never break a turn
logger.debug("bighelp board observer skipped %s: %s", hook, type(error).__name__)
logger.debug("Bighelp board observer skipped %s: %s", hook, type(error).__name__)

def _observe(self, hook: str, **payload: Any) -> None:
if payload.get("parent_session_id") or payload.get("platform") == "subagent":
Expand Down Expand Up @@ -916,7 +916,7 @@ def register(ctx: Any) -> None:
ctx.register_hook(hook, lambda _hook=hook, **payload: recorder.observe(_hook, **payload))
skill = Path(__file__).resolve().parents[1] / "skills" / "bighelp-feed-and-ideas" / "SKILL.md"
description = ("Use when the user wants regular updates, briefings, news, ideas or goal tracking "
"surfaced in the bighelp app's Feed, Ideas or Goals.")
"surfaced in the Bighelp app's Feed, Ideas or Goals.")
ctx.register_skill("bighelp-feed-and-ideas", skill, description=description,
frontmatter={"name": "bighelp-feed-and-ideas", "description": description})

Expand Down
2 changes: 1 addition & 1 deletion loopdy_plugin/agent_deliveries.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def deliveries(items: Iterable[tuple[str, str]], *, now: Callable[[], float] | N
try:
turn = chat_live.gateway_turn(home, session, clock)
except Exception:
logger.debug("bighelp agent deliveries: turn unreadable")
logger.debug("Bighelp agent deliveries: turn unreadable")
turn = None
if turn is not None:
value["state"] = "working"
Expand Down
24 changes: 12 additions & 12 deletions loopdy_plugin/agent_guide.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

# Hermes caps every plugin's sections together at 8,000 characters.
CHAT_BRIEF = """\
You're talking with the user in bighelp, their iPhone, iPad and Vision Pro app for this Hermes host. \
You're talking with the user in Bighelp, their iPhone, iPad and Vision Pro app for this Hermes host. \
It's a chat app, not a terminal and not Hermes Desktop.
- Replies render as Markdown. To send a file, picture or video, put MEDIA:/absolute/path on its own \
line; it shows in the chat.
Expand All @@ -35,7 +35,7 @@
category (health, relationships, finance, career, interests, productivity or other). Feed posts can carry \
files (files: absolute paths).
- Reminders, check-ins and scheduled updates: create a Hermes cron job for this agent with deliver \
"local". When it runs, bighelp notifies the user with the run's reply (if they turned on notifications \
"local". When it runs, Bighelp notifies the user with the run's reply (if they turned on notifications \
for you); "local" stops Hermes also posting it to another channel. Write the job so its reply is the \
message, most important words first. Don't deliver to "loopdy"; that's the retired Link inbox.
- To tell the user something now when they're not in the chat (a long job finished): \
Expand All @@ -44,7 +44,7 @@
iphone_geofences, iphone_alarms, iphone_music, iphone_focus, iphone_shortcuts: use when asked, app open. \
One that's off asks the user with a card, so call it; don't send them to Settings. After \
permission_declined, don't retry it in this chat. Health trends: bighelp_render_chart.
- iphone_appearance sets bighelp's look (mode, chat color).
- iphone_appearance sets Bighelp's look (mode, chat color).
- iphone_navigation opens a page in the app to show where something is: call places with the user's words, \
then open the best match.
- Something interactive (a tool, a live dashboard): bighelp_show_app, an HTML page opened from \
Expand All @@ -58,9 +58,9 @@
CHAT_BRIEF_GUIDE = 'Full guide: skill_view("loopdy:bighelp").'

ELSEWHERE_NOTE = """\
The user also has the bighelp app for this agent. To reach them there later (a reminder, a check-in, a \
scheduled update), create a Hermes cron job for this agent with deliver "local"; bighelp notifies them \
with the run's reply if they turned on notifications. For bighelp cards, Feed, Ideas and Goals, see \
The user also has the Bighelp app for this agent. To reach them there later (a reminder, a check-in, a \
scheduled update), create a Hermes cron job for this agent with deliver "local"; Bighelp notifies them \
with the run's reply if they turned on notifications. For Bighelp cards, Feed, Ideas and Goals, see \
skill_view("loopdy:bighelp").\
"""

Expand All @@ -70,10 +70,10 @@
_SKILLS_ROOT = Path(__file__).resolve().parents[1] / "skills"
# Folder name, description. Registered as ``loopdy:<folder>``.
SKILLS = (
("bighelp", "Start here for anything in the bighelp app: where you are, cards, forms, Feed, Ideas "
("bighelp", "Start here for anything in the Bighelp app: where you are, cards, forms, Feed, Ideas "
"and Goals, reminders and notifications, secure input and iPhone tools."),
("generative-ui", "Every bighelp card tool, with payload rules and examples."),
("custom-theme-authoring", "Making color themes the bighelp app can import."),
("generative-ui", "Every Bighelp card tool, with payload rules and examples."),
("custom-theme-authoring", "Making color themes the Bighelp app can import."),
)


Expand Down Expand Up @@ -103,7 +103,7 @@ def _workspace_line(session: Mapping[str, Any]) -> str:
from . import workspace_root
workspace = workspace_root.resolve(profile)
except Exception as error: # the brief must never fail a turn
logger.debug("bighelp workspace brief skipped: %s", type(error).__name__)
logger.debug("Bighelp workspace brief skipped: %s", type(error).__name__)
return ""
if workspace.origin != workspace_root.HERMES_WORKSPACE:
return ""
Expand All @@ -121,10 +121,10 @@ def register(ctx: Any) -> None:
frontmatter={"name": name, "description": description})
register_section = getattr(ctx, "register_system_prompt_section", None)
if not callable(register_section):
logger.info("bighelp chat brief unavailable: Hermes has no plugin prompt sections")
logger.info("Bighelp chat brief unavailable: Hermes has no plugin prompt sections")
return
try:
register_section(SECTION_ID, prompt_section)
except ValueError:
# Already registered in this process (another profile scope or a reload).
logger.info("bighelp chat brief already registered")
logger.info("Bighelp chat brief already registered")
2 changes: 1 addition & 1 deletion loopdy_plugin/agent_talk.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def find_runs(calls: Iterable[tuple[str, str]], *, now: Callable[[], float] | No
try:
found = _runs_for_agent(path, hashes, clock)
except (OSError, sqlite3.Error):
logger.warning("bighelp agent talk read failed: storage")
logger.warning("Bighelp agent talk read failed: storage")
continue
per_message: dict[str, int] = {}
for run in sorted(found, key=lambda value: value["startedAt"], reverse=True):
Expand Down
4 changes: 2 additions & 2 deletions loopdy_plugin/agent_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async def guarded(request: Request) -> Response:
try:
return await handler(request)
except (NativeAPIError, AgentTemplateError) as error:
logger.warning("bighelp agent-template request rejected: %s", error.code)
logger.warning("Bighelp agent-template request rejected: %s", error.code)
return _error_response(error, request)
except ClientDisconnect:
return _error_response(
Expand All @@ -74,7 +74,7 @@ async def guarded(request: Request) -> Response:
except Exception:
# Profile configuration, skill readers, and filesystem exceptions can
# carry private paths or values. Never reflect or log their details.
logger.error("bighelp agent-template request failed: template_service_unavailable")
logger.error("Bighelp agent-template request failed: template_service_unavailable")
return _error_response(
AgentTemplateError(
503,
Expand Down
6 changes: 3 additions & 3 deletions loopdy_plugin/agents_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _dashboard_chats() -> dict[str, dict[str, bool]]:
rows.append((str(sid), str(session.get("session_key") or ""), bool(session.get("running")),
mirrored.get("method") if isinstance(mirrored, dict) else None))
except Exception:
logger.debug("bighelp agents activity: dashboard chats unreadable")
logger.debug("Bighelp agents activity: dashboard chats unreadable")
return {}
requests = sys.modules.get("tui_gateway.server_requests")
approvals = sys.modules.get("tools.approval")
Expand All @@ -102,7 +102,7 @@ def _dashboard_chats() -> dict[str, dict[str, bool]]:
if not waiting and callable(getattr(approvals, "has_blocking_approval", None)):
waiting = bool(approvals.has_blocking_approval(key))
except Exception:
logger.debug("bighelp agents activity: open requests unreadable")
logger.debug("Bighelp agents activity: open requests unreadable")
entry = chats.setdefault(key, {"running": False, "waiting": False})
entry["running"] = entry["running"] or running
entry["waiting"] = entry["waiting"] or waiting
Expand Down Expand Up @@ -256,7 +256,7 @@ def activity(profiles: Iterable[str], *, background: bool = False,
try:
value = _agent(profile, home, dashboard, moment, background)
except (OSError, sqlite3.Error):
logger.warning("bighelp agents activity read failed: storage")
logger.warning("Bighelp agents activity read failed: storage")
value = None
with _cache_lock:
if len(_cache) >= 4 * MAX_AGENTS:
Expand Down
4 changes: 2 additions & 2 deletions loopdy_plugin/agents_background.py
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ def _safe(name: str, read: Callable[[], list[Work]]) -> list[Work]:
try:
return read()
except (OSError, sqlite3.Error, ValueError):
logger.warning("bighelp agents background read failed: %s", name)
logger.warning("Bighelp agents background read failed: %s", name)
return []


Expand All @@ -571,7 +571,7 @@ def work(home: Path, since: float | None, *, with_session: bool = False) -> list
try:
db = _state_db(home)
except sqlite3.Error:
logger.warning("bighelp agents background read failed: state")
logger.warning("Bighelp agents background read failed: state")
db = None
if db is not None:
stack.callback(db.close)
Expand Down
2 changes: 1 addition & 1 deletion loopdy_plugin/agents_today_detail.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def detail(profile: str, item_id: str, *, now: Callable[[], float] | None = None
value = _fit(_read(home, item_id, moment))
except (OSError, sqlite3.Error):
# A record that can't be read now is not an item the phone can open: the answer is the same as for a gone one.
logger.warning("bighelp agents today detail read failed")
logger.warning("Bighelp agents today detail read failed")
raise ActivityNotFound from None
with _cache_lock:
if len(_cache) >= 256:
Expand Down
8 changes: 4 additions & 4 deletions loopdy_plugin/app_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def _computer_id(self, *, locked: bool = False) -> str:
with self._locked():
return self._computer_id(locked=True)
if path.exists() or path.is_symlink():
logger.warning("bighelp app state unavailable: computer_id_unreadable")
logger.warning("Bighelp app state unavailable: computer_id_unreadable")
raise AppStateError(503, "app_state_unavailable", "The app state on this computer can't be read.")
computer = str(uuid.uuid4())
self._write(path, json.dumps({"schemaVersion": SCHEMA_VERSION, "computerId": computer},
Expand Down Expand Up @@ -271,20 +271,20 @@ def _load(self, person: str) -> dict[str, dict[str, Any]]:
or not _is_revision(entry["revision"], minimum=1) \
or not isinstance(entry["updatedAt"], str) or _UPDATED.fullmatch(entry["updatedAt"]) is None \
or not isinstance(entry["device"], str) or _UUID.fullmatch(entry["device"]) is None:
logger.warning("bighelp app state entry skipped: incomplete")
logger.warning("Bighelp app state entry skipped: incomplete")
continue
try:
encoded_value(entry["value"])
except AppStateError as error:
logger.warning("bighelp app state entry skipped: %s", error.code)
logger.warning("Bighelp app state entry skipped: %s", error.code)
continue
entries[key] = entry
return entries

@staticmethod
def _skip(reason: str) -> dict:
# A fixed code only: person IDs and values stay on the computer.
logger.warning("bighelp app state unreadable: %s", reason)
logger.warning("Bighelp app state unreadable: %s", reason)
return {}

def _people_count(self) -> int:
Expand Down
Loading
Loading