Skip to content

feat(tools): clawmes_info — agent-callable bridge for read-only commands (v0.17.0) - #39

Merged
clawnchdev merged 1 commit into
mainfrom
feat/agent-callable-info-tool
Jun 2, 2026
Merged

feat(tools): clawmes_info — agent-callable bridge for read-only commands (v0.17.0)#39
clawnchdev merged 1 commit into
mainfrom
feat/agent-callable-info-tool

Conversation

@clawnchdev

Copy link
Copy Markdown
Owner

Why

You launched the desktop and saw no clawmes commands in the / menu, and the ones you typed rendered as a gray, non-selectable status line. Traced to the desktop source: desktop-slash-commands.ts filters the slash autocomplete to a built-in allowlist, so plugin slash commands are excluded by design and their output renders as a status notice rather than a chat bubble.

The desktop is built around natural-language chat where the agent calls tools — and tool results render as proper, selectable cards (where our links + preview cards live). So this re-exposes the key informational commands as an agent-callable tool.

What

clawmes_info (tool #53, read-only, toolset clawmes-trading):

  • op (enum) + optional args. Ops: wallet, balance, portfolio, research, scan, trending, leaderboard, my_launches.
  • The agent invokes it from phrases like "what's my wallet balance" or "research CLAWNCH" → renders as a normal tool card.
  • Any HTML card the underlying command generates (e.g. /research) is surfaced as a preview attachment via json_result(preview=...) — so the cards render in the desktop too.
  • Bridges to the existing async command handlers via an async-safe runner that works whether or not an event loop is already running (both branches tested).

Read-only by design — write actions keep their own gated tools (defi_swap, transfer). This also sidesteps the gray-status-line issue: tool results are first-class cards.

Changes

  • New clawmes/tools/clawmes_info.py + wired into register_all.
  • Tool count 52 → 53: updated the doctor test, the release smoke assertion, and plugin.yaml (both copies).

Verification

  • 4574 passed, 8 skipped; 100% line coverage (16,249 stmts, 0 missing)
  • ruff check + ruff format --check clean repo-wide
  • plugin.yaml byte-identical
  • Doctor test (counts real registered tools) passes at 53

Note

Wallet connection (/connect) still needs WALLETCONNECT_PROJECT_ID in ~/.hermes/.env regardless of surface. Scheduler/write commands (/dca, /buy, etc.) intentionally remain gated tools / slash commands, not in this read bridge.

…nds (v0.17.0)

The Hermes Desktop app filters its slash-command autocomplete to a built-in
allowlist (desktop-slash-commands.ts), so clawmes plugin slash commands don't
appear in the / menu and their output renders as a non-selectable status line.
Confirmed against the desktop source.

This adds a single read-only TOOL so clawmes is usable from natural language in
the desktop and renders as a proper tool card:

* clawmes_info(op, args) — ops: wallet, balance, portfolio, research, scan,
  trending, leaderboard, my_launches. Bridges to the existing async command
  handlers via an async-safe runner (handles both no-loop and running-loop
  contexts). Any HTML card a command generates (e.g. /research) is surfaced as
  a preview attachment via json_result(preview=...).

Read-only by design; write actions keep their gated tools (defi_swap, transfer).
Tool count 52 -> 53; updated the doctor test + release smoke assertion +
plugin.yaml (both copies).

Verification: 4574 passed, 8 skipped; 100% line coverage (16,249 stmts, 0
missing); ruff check + format clean repo-wide; plugin.yaml byte-identical.
@clawnchdev
clawnchdev merged commit 7a359b7 into main Jun 2, 2026
4 checks passed
@clawnchdev
clawnchdev deleted the feat/agent-callable-info-tool branch June 2, 2026 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant