fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
"""
|
|
|
|
|
Toolsets Module
|
|
|
|
|
|
|
|
|
|
This module provides a flexible system for defining and managing tool aliases/toolsets.
|
|
|
|
|
Toolsets allow you to group tools together for specific scenarios and can be composed
|
|
|
|
|
from individual tools or other toolsets.
|
|
|
|
|
|
|
|
|
|
Features:
|
|
|
|
|
- Define custom toolsets with specific tools
|
|
|
|
|
- Compose toolsets from other toolsets
|
|
|
|
|
- Built-in common toolsets for typical use cases
|
|
|
|
|
- Easy extension for new toolsets
|
|
|
|
|
- Support for dynamic toolset resolution
|
|
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
|
from toolsets import get_toolset, resolve_toolset, get_all_toolsets
|
|
|
|
|
|
|
|
|
|
# Get tools for a specific toolset
|
|
|
|
|
tools = get_toolset("research")
|
|
|
|
|
|
|
|
|
|
# Resolve a toolset to get all tool names (including from composed toolsets)
|
|
|
|
|
all_tools = resolve_toolset("full_stack")
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
from typing import List, Dict, Any, Set, Optional
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Shared tool list for CLI and all messaging platform toolsets.
|
|
|
|
|
# Edit this once to update all platforms simultaneously.
|
|
|
|
|
_HERMES_CORE_TOOLS = [
|
|
|
|
|
# Web
|
|
|
|
|
"web_search", "web_extract",
|
|
|
|
|
# Terminal + process management
|
|
|
|
|
"terminal", "process",
|
|
|
|
|
# File manipulation
|
|
|
|
|
"read_file", "write_file", "patch", "search_files",
|
|
|
|
|
# Vision + image generation
|
|
|
|
|
"vision_analyze", "image_generate",
|
|
|
|
|
# MoA
|
|
|
|
|
"mixture_of_agents",
|
|
|
|
|
# Skills
|
|
|
|
|
"skills_list", "skill_view", "skill_manage",
|
|
|
|
|
# Browser automation
|
|
|
|
|
"browser_navigate", "browser_snapshot", "browser_click",
|
|
|
|
|
"browser_type", "browser_scroll", "browser_back",
|
|
|
|
|
"browser_press", "browser_close", "browser_get_images",
|
2026-03-17 02:02:49 -07:00
|
|
|
"browser_vision", "browser_console",
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
# Text-to-speech
|
|
|
|
|
"text_to_speech",
|
|
|
|
|
# Planning & memory
|
|
|
|
|
"todo", "memory",
|
|
|
|
|
# Session history search
|
|
|
|
|
"session_search",
|
|
|
|
|
# Clarifying questions
|
|
|
|
|
"clarify",
|
|
|
|
|
# Code execution + delegation
|
|
|
|
|
"execute_code", "delegate_task",
|
|
|
|
|
# Cronjob management
|
2026-03-14 12:21:50 -07:00
|
|
|
"cronjob",
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
# Cross-platform messaging (gated on gateway running via check_fn)
|
|
|
|
|
"send_message",
|
2026-03-11 11:46:37 -04:00
|
|
|
# Honcho memory tools (gated on honcho being active via check_fn)
|
|
|
|
|
"honcho_context", "honcho_profile", "honcho_search", "honcho_conclude",
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
# Home Assistant smart home control (gated on HASS_TOKEN via check_fn)
|
|
|
|
|
"ha_list_entities", "ha_get_state", "ha_list_services", "ha_call_service",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Core toolset definitions
|
|
|
|
|
# These can include individual tools or reference other toolsets
|
|
|
|
|
TOOLSETS = {
|
|
|
|
|
# Basic toolsets - individual tool categories
|
|
|
|
|
"web": {
|
|
|
|
|
"description": "Web research and content extraction tools",
|
|
|
|
|
"tools": ["web_search", "web_extract"],
|
|
|
|
|
"includes": [] # No other toolsets included
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"search": {
|
|
|
|
|
"description": "Web search only (no content extraction/scraping)",
|
|
|
|
|
"tools": ["web_search"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"vision": {
|
|
|
|
|
"description": "Image analysis and vision tools",
|
|
|
|
|
"tools": ["vision_analyze"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"image_gen": {
|
|
|
|
|
"description": "Creative generation tools (images)",
|
|
|
|
|
"tools": ["image_generate"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"terminal": {
|
|
|
|
|
"description": "Terminal/command execution and process management tools",
|
|
|
|
|
"tools": ["terminal", "process"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"moa": {
|
|
|
|
|
"description": "Advanced reasoning and problem-solving tools",
|
|
|
|
|
"tools": ["mixture_of_agents"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"skills": {
|
|
|
|
|
"description": "Access, create, edit, and manage skill documents with specialized instructions and knowledge",
|
|
|
|
|
"tools": ["skills_list", "skill_view", "skill_manage"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"browser": {
|
|
|
|
|
"description": "Browser automation for web interaction (navigate, click, type, scroll, iframes, hold-click) with web search for finding URLs",
|
|
|
|
|
"tools": [
|
|
|
|
|
"browser_navigate", "browser_snapshot", "browser_click",
|
|
|
|
|
"browser_type", "browser_scroll", "browser_back",
|
|
|
|
|
"browser_press", "browser_close", "browser_get_images",
|
2026-03-17 02:02:49 -07:00
|
|
|
"browser_vision", "browser_console", "web_search"
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"cronjob": {
|
2026-03-14 12:21:50 -07:00
|
|
|
"description": "Cronjob management tool - create, list, update, pause, resume, remove, and trigger scheduled tasks",
|
|
|
|
|
"tools": ["cronjob"],
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
2026-03-17 04:06:06 -07:00
|
|
|
"messaging": {
|
|
|
|
|
"description": "Cross-platform messaging: send messages to Telegram, Discord, Slack, SMS, etc.",
|
|
|
|
|
"tools": ["send_message"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
"rl": {
|
|
|
|
|
"description": "RL training tools for running reinforcement learning on Tinker-Atropos",
|
|
|
|
|
"tools": [
|
|
|
|
|
"rl_list_environments", "rl_select_environment",
|
|
|
|
|
"rl_get_current_config", "rl_edit_config",
|
|
|
|
|
"rl_start_training", "rl_check_status",
|
|
|
|
|
"rl_stop_training", "rl_get_results",
|
|
|
|
|
"rl_list_runs", "rl_test_inference"
|
|
|
|
|
],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"file": {
|
|
|
|
|
"description": "File manipulation tools: read, write, patch (with fuzzy matching), and search (content + files)",
|
|
|
|
|
"tools": ["read_file", "write_file", "patch", "search_files"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"tts": {
|
|
|
|
|
"description": "Text-to-speech: convert text to audio with Edge TTS (free), ElevenLabs, or OpenAI",
|
|
|
|
|
"tools": ["text_to_speech"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"todo": {
|
|
|
|
|
"description": "Task planning and tracking for multi-step work",
|
|
|
|
|
"tools": ["todo"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"memory": {
|
|
|
|
|
"description": "Persistent memory across sessions (personal notes + user profile)",
|
|
|
|
|
"tools": ["memory"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"session_search": {
|
|
|
|
|
"description": "Search and recall past conversations with summarization",
|
|
|
|
|
"tools": ["session_search"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"clarify": {
|
|
|
|
|
"description": "Ask the user clarifying questions (multiple-choice or open-ended)",
|
|
|
|
|
"tools": ["clarify"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"code_execution": {
|
|
|
|
|
"description": "Run Python scripts that call tools programmatically (reduces LLM round trips)",
|
|
|
|
|
"tools": ["execute_code"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"delegation": {
|
|
|
|
|
"description": "Spawn subagents with isolated context for complex subtasks",
|
|
|
|
|
"tools": ["delegate_task"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"honcho": {
|
|
|
|
|
"description": "Honcho AI-native memory for persistent cross-session user modeling",
|
2026-03-11 11:46:37 -04:00
|
|
|
"tools": ["honcho_context", "honcho_profile", "honcho_search", "honcho_conclude"],
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"homeassistant": {
|
|
|
|
|
"description": "Home Assistant smart home control and monitoring",
|
|
|
|
|
"tools": ["ha_list_entities", "ha_get_state", "ha_list_services", "ha_call_service"],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Scenario-specific toolsets
|
|
|
|
|
|
|
|
|
|
"debugging": {
|
|
|
|
|
"description": "Debugging and troubleshooting toolkit",
|
|
|
|
|
"tools": ["terminal", "process"],
|
|
|
|
|
"includes": ["web", "file"] # For searching error messages and solutions, and file operations
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"safe": {
|
|
|
|
|
"description": "Safe toolkit without terminal access",
|
|
|
|
|
"tools": ["mixture_of_agents"],
|
|
|
|
|
"includes": ["web", "vision", "image_gen"]
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
# ==========================================================================
|
|
|
|
|
# Full Hermes toolsets (CLI + messaging platforms)
|
|
|
|
|
#
|
|
|
|
|
# All platforms share the same core tools (including send_message,
|
|
|
|
|
# which is gated on gateway running via its check_fn).
|
|
|
|
|
# ==========================================================================
|
2026-03-14 00:09:05 -07:00
|
|
|
|
|
|
|
|
"hermes-acp": {
|
|
|
|
|
"description": "Editor integration (VS Code, Zed, JetBrains) — coding-focused tools without messaging, audio, or clarify UI",
|
|
|
|
|
"tools": [
|
|
|
|
|
"web_search", "web_extract",
|
|
|
|
|
"terminal", "process",
|
|
|
|
|
"read_file", "write_file", "patch", "search_files",
|
|
|
|
|
"vision_analyze",
|
|
|
|
|
"skills_list", "skill_view", "skill_manage",
|
|
|
|
|
"browser_navigate", "browser_snapshot", "browser_click",
|
|
|
|
|
"browser_type", "browser_scroll", "browser_back",
|
|
|
|
|
"browser_press", "browser_close", "browser_get_images",
|
2026-03-17 02:02:49 -07:00
|
|
|
"browser_vision", "browser_console",
|
2026-03-14 00:09:05 -07:00
|
|
|
"todo", "memory",
|
|
|
|
|
"session_search",
|
|
|
|
|
"execute_code", "delegate_task",
|
|
|
|
|
],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
2026-03-26 18:02:26 -07:00
|
|
|
|
|
|
|
|
"hermes-api-server": {
|
|
|
|
|
"description": "OpenAI-compatible API server — full agent tools accessible via HTTP (no interactive UI tools like clarify or send_message)",
|
|
|
|
|
"tools": [
|
|
|
|
|
# Web
|
|
|
|
|
"web_search", "web_extract",
|
|
|
|
|
# Terminal + process management
|
|
|
|
|
"terminal", "process",
|
|
|
|
|
# File manipulation
|
|
|
|
|
"read_file", "write_file", "patch", "search_files",
|
|
|
|
|
# Vision + image generation
|
|
|
|
|
"vision_analyze", "image_generate",
|
|
|
|
|
# MoA
|
|
|
|
|
"mixture_of_agents",
|
|
|
|
|
# Skills
|
|
|
|
|
"skills_list", "skill_view", "skill_manage",
|
|
|
|
|
# Browser automation
|
|
|
|
|
"browser_navigate", "browser_snapshot", "browser_click",
|
|
|
|
|
"browser_type", "browser_scroll", "browser_back",
|
|
|
|
|
"browser_press", "browser_close", "browser_get_images",
|
|
|
|
|
"browser_vision", "browser_console",
|
|
|
|
|
# Planning & memory
|
|
|
|
|
"todo", "memory",
|
|
|
|
|
# Session history search
|
|
|
|
|
"session_search",
|
|
|
|
|
# Code execution + delegation
|
|
|
|
|
"execute_code", "delegate_task",
|
|
|
|
|
# Cronjob management
|
|
|
|
|
"cronjob",
|
|
|
|
|
# Home Assistant smart home control (gated on HASS_TOKEN via check_fn)
|
|
|
|
|
"ha_list_entities", "ha_get_state", "ha_list_services", "ha_call_service",
|
|
|
|
|
# Honcho memory tools (gated on honcho being active via check_fn)
|
|
|
|
|
"honcho_context", "honcho_profile", "honcho_search", "honcho_conclude",
|
|
|
|
|
],
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
|
|
|
|
|
"hermes-cli": {
|
|
|
|
|
"description": "Full interactive CLI toolset - all default tools plus cronjob management",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"hermes-telegram": {
|
|
|
|
|
"description": "Telegram bot toolset - full access for personal use (terminal has safety checks)",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"hermes-discord": {
|
|
|
|
|
"description": "Discord bot toolset - full access (terminal has safety checks via dangerous command approval)",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"hermes-whatsapp": {
|
|
|
|
|
"description": "WhatsApp bot toolset - similar to Telegram (personal messaging, more trusted)",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"hermes-slack": {
|
|
|
|
|
"description": "Slack bot toolset - full access for workspace use (terminal has safety checks)",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"hermes-signal": {
|
|
|
|
|
"description": "Signal bot toolset - encrypted messaging platform (full access)",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"hermes-homeassistant": {
|
|
|
|
|
"description": "Home Assistant bot toolset - smart home event monitoring and control",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
feat: add email gateway platform (IMAP/SMTP)
Allow users to interact with Hermes by sending and receiving emails.
Uses IMAP polling for incoming messages and SMTP for replies with
proper threading (In-Reply-To, References headers).
Integrates with all 14 gateway extension points: config, adapter
factory, authorization, send_message tool, cron delivery, toolsets,
prompt hints, channel directory, setup wizard, status display, and
env example.
65 tests covering config, parsing, dispatch, threading, IMAP fetch,
SMTP send, attachments, and all integration points.
2026-03-10 03:15:38 +03:00
|
|
|
"hermes-email": {
|
|
|
|
|
"description": "Email bot toolset - interact with Hermes via email (IMAP/SMTP)",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
2026-03-28 14:05:02 -07:00
|
|
|
"hermes-mattermost": {
|
|
|
|
|
"description": "Mattermost bot toolset - self-hosted team messaging (full access)",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"hermes-matrix": {
|
|
|
|
|
"description": "Matrix bot toolset - decentralized encrypted messaging (full access)",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
"hermes-dingtalk": {
|
|
|
|
|
"description": "DingTalk bot toolset - enterprise messaging platform (full access)",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
feat(gateway): add Feishu/Lark platform support (#3817)
Adds Feishu (ByteDance's enterprise messaging platform) as a gateway
platform adapter with full feature parity: WebSocket + webhook transports,
message batching, dedup, rate limiting, rich post/card content parsing,
media handling (images/audio/files/video), group @mention gating,
reaction routing, and interactive card button support.
Cherry-picked from PR #1793 by penwyp with:
- Moved to current main (PR was 458 commits behind)
- Fixed _send_with_retry shadowing BasePlatformAdapter method (renamed to
_feishu_send_with_retry to avoid signature mismatch crash)
- Fixed import structure: aiohttp/websockets imported independently of
lark_oapi so they remain available when SDK is missing
- Fixed get_hermes_home import (hermes_constants, not hermes_cli.config)
- Added skip decorators for tests requiring lark_oapi SDK
- All 16 integration points added surgically to current main
New dependency: lark-oapi>=1.5.3,<2 (optional, pip install hermes-agent[feishu])
Fixes #1788
Co-authored-by: penwyp <penwyp@users.noreply.github.com>
2026-03-29 18:17:42 -07:00
|
|
|
"hermes-feishu": {
|
|
|
|
|
"description": "Feishu/Lark bot toolset - enterprise messaging via Feishu/Lark (full access)",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
feat: add SMS (Twilio) platform adapter
Add SMS as a first-class messaging platform via the Twilio API.
Shares credentials with the existing telephony skill — same
TWILIO_ACCOUNT_SID, TWILIO_AUTH_TOKEN, TWILIO_PHONE_NUMBER env vars.
Adapter (gateway/platforms/sms.py):
- aiohttp webhook server for inbound (Twilio form-encoded POSTs)
- Twilio REST API with Basic auth for outbound
- Markdown stripping, smart chunking at 1600 chars
- Echo loop prevention, phone number redaction in logs
Integration (13 files):
- gateway config, run, channel_directory
- agent prompt_builder (SMS platform hint)
- cron scheduler, cronjob tools
- send_message_tool (_send_sms via Twilio API)
- toolsets (hermes-sms + hermes-gateway)
- gateway setup wizard, status display
- pyproject.toml (sms optional extra)
- 21 tests
Docs:
- website/docs/user-guide/messaging/sms.md (full setup guide)
- Updated messaging index (architecture, toolsets, security, links)
- Updated environment-variables.md reference
Inspired by PR #1575 (@sunsakis), rewritten for Twilio.
2026-03-17 03:14:53 -07:00
|
|
|
"hermes-sms": {
|
|
|
|
|
"description": "SMS bot toolset - interact with Hermes via SMS (Twilio)",
|
|
|
|
|
"tools": _HERMES_CORE_TOOLS,
|
|
|
|
|
"includes": []
|
|
|
|
|
},
|
|
|
|
|
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
"hermes-gateway": {
|
|
|
|
|
"description": "Gateway toolset - union of all messaging platform tools",
|
|
|
|
|
"tools": [],
|
feat(gateway): add Feishu/Lark platform support (#3817)
Adds Feishu (ByteDance's enterprise messaging platform) as a gateway
platform adapter with full feature parity: WebSocket + webhook transports,
message batching, dedup, rate limiting, rich post/card content parsing,
media handling (images/audio/files/video), group @mention gating,
reaction routing, and interactive card button support.
Cherry-picked from PR #1793 by penwyp with:
- Moved to current main (PR was 458 commits behind)
- Fixed _send_with_retry shadowing BasePlatformAdapter method (renamed to
_feishu_send_with_retry to avoid signature mismatch crash)
- Fixed import structure: aiohttp/websockets imported independently of
lark_oapi so they remain available when SDK is missing
- Fixed get_hermes_home import (hermes_constants, not hermes_cli.config)
- Added skip decorators for tests requiring lark_oapi SDK
- All 16 integration points added surgically to current main
New dependency: lark-oapi>=1.5.3,<2 (optional, pip install hermes-agent[feishu])
Fixes #1788
Co-authored-by: penwyp <penwyp@users.noreply.github.com>
2026-03-29 18:17:42 -07:00
|
|
|
"includes": ["hermes-telegram", "hermes-discord", "hermes-whatsapp", "hermes-slack", "hermes-signal", "hermes-homeassistant", "hermes-email", "hermes-sms", "hermes-mattermost", "hermes-matrix", "hermes-dingtalk", "hermes-feishu"]
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_toolset(name: str) -> Optional[Dict[str, Any]]:
|
|
|
|
|
"""
|
|
|
|
|
Get a toolset definition by name.
|
|
|
|
|
|
|
|
|
|
Args:
|
|
|
|
|
name (str): Name of the toolset
|
|
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
Dict: Toolset definition with description, tools, and includes
|
|
|
|
|
None: If toolset not found
|
|
|
|
|
"""
|
|
|
|
|
# Return toolset definition
|
|
|
|
|
return TOOLSETS.get(name)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def resolve_toolset(name: str, visited: Set[str] = None) -> List[str]:
|
|
|
|
|
"""
|
|
|
|
|
Recursively resolve a toolset to get all tool names.
|
|
|
|
|
|
|
|
|
|
This function handles toolset composition by recursively resolving
|
|
|
|
|
included toolsets and combining all tools.
|
|
|
|
|
|
|
|
|
|
Args:
|
|
|
|
|
name (str): Name of the toolset to resolve
|
|
|
|
|
visited (Set[str]): Set of already visited toolsets (for cycle detection)
|
|
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
List[str]: List of all tool names in the toolset
|
|
|
|
|
"""
|
|
|
|
|
if visited is None:
|
|
|
|
|
visited = set()
|
|
|
|
|
|
|
|
|
|
# Special aliases that represent all tools across every toolset
|
|
|
|
|
# This ensures future toolsets are automatically included without changes.
|
|
|
|
|
if name in {"all", "*"}:
|
|
|
|
|
all_tools: Set[str] = set()
|
|
|
|
|
for toolset_name in get_toolset_names():
|
|
|
|
|
# Use a fresh visited set per branch to avoid cross-branch contamination
|
|
|
|
|
resolved = resolve_toolset(toolset_name, visited.copy())
|
|
|
|
|
all_tools.update(resolved)
|
|
|
|
|
return list(all_tools)
|
|
|
|
|
|
2026-03-21 07:11:09 -07:00
|
|
|
# Check for cycles / already-resolved (diamond deps).
|
|
|
|
|
# Silently return [] — either this is a diamond (not a bug, tools already
|
|
|
|
|
# collected via another path) or a genuine cycle (safe to skip).
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
if name in visited:
|
|
|
|
|
return []
|
2026-03-21 07:11:09 -07:00
|
|
|
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
visited.add(name)
|
2026-03-21 07:11:09 -07:00
|
|
|
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
# Get toolset definition
|
|
|
|
|
toolset = TOOLSETS.get(name)
|
|
|
|
|
if not toolset:
|
2026-03-22 04:55:34 -07:00
|
|
|
# Fall back to tool registry for plugin-provided toolsets
|
|
|
|
|
if name in _get_plugin_toolset_names():
|
|
|
|
|
try:
|
|
|
|
|
from tools.registry import registry
|
|
|
|
|
return [e.name for e in registry._tools.values() if e.toolset == name]
|
|
|
|
|
except Exception:
|
|
|
|
|
pass
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
return []
|
2026-03-21 07:11:09 -07:00
|
|
|
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
# Collect direct tools
|
|
|
|
|
tools = set(toolset.get("tools", []))
|
2026-03-21 07:11:09 -07:00
|
|
|
|
|
|
|
|
# Recursively resolve included toolsets, sharing the visited set across
|
|
|
|
|
# sibling includes so diamond dependencies are only resolved once and
|
|
|
|
|
# cycle warnings don't fire multiple times for the same cycle.
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
for included_name in toolset.get("includes", []):
|
2026-03-21 07:11:09 -07:00
|
|
|
included_tools = resolve_toolset(included_name, visited)
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
tools.update(included_tools)
|
|
|
|
|
|
|
|
|
|
return list(tools)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def resolve_multiple_toolsets(toolset_names: List[str]) -> List[str]:
|
|
|
|
|
"""
|
|
|
|
|
Resolve multiple toolsets and combine their tools.
|
|
|
|
|
|
|
|
|
|
Args:
|
|
|
|
|
toolset_names (List[str]): List of toolset names to resolve
|
|
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
List[str]: Combined list of all tool names (deduplicated)
|
|
|
|
|
"""
|
|
|
|
|
all_tools = set()
|
|
|
|
|
|
|
|
|
|
for name in toolset_names:
|
|
|
|
|
tools = resolve_toolset(name)
|
|
|
|
|
all_tools.update(tools)
|
|
|
|
|
|
|
|
|
|
return list(all_tools)
|
|
|
|
|
|
|
|
|
|
|
2026-03-22 04:55:34 -07:00
|
|
|
def _get_plugin_toolset_names() -> Set[str]:
|
|
|
|
|
"""Return toolset names registered by plugins (from the tool registry).
|
|
|
|
|
|
|
|
|
|
These are toolsets that exist in the registry but not in the static
|
|
|
|
|
``TOOLSETS`` dict — i.e. they were added by plugins at load time.
|
|
|
|
|
"""
|
|
|
|
|
try:
|
|
|
|
|
from tools.registry import registry
|
|
|
|
|
return {
|
|
|
|
|
entry.toolset
|
|
|
|
|
for entry in registry._tools.values()
|
|
|
|
|
if entry.toolset not in TOOLSETS
|
|
|
|
|
}
|
|
|
|
|
except Exception:
|
|
|
|
|
return set()
|
|
|
|
|
|
|
|
|
|
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
def get_all_toolsets() -> Dict[str, Dict[str, Any]]:
|
|
|
|
|
"""
|
|
|
|
|
Get all available toolsets with their definitions.
|
2026-03-22 04:55:34 -07:00
|
|
|
|
|
|
|
|
Includes both statically-defined toolsets and plugin-registered ones.
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
Dict: All toolset definitions
|
|
|
|
|
"""
|
2026-03-22 04:55:34 -07:00
|
|
|
result = TOOLSETS.copy()
|
|
|
|
|
# Add plugin-provided toolsets (synthetic entries)
|
|
|
|
|
for ts_name in _get_plugin_toolset_names():
|
|
|
|
|
if ts_name not in result:
|
|
|
|
|
try:
|
|
|
|
|
from tools.registry import registry
|
|
|
|
|
tools = [e.name for e in registry._tools.values() if e.toolset == ts_name]
|
|
|
|
|
result[ts_name] = {
|
|
|
|
|
"description": f"Plugin toolset: {ts_name}",
|
|
|
|
|
"tools": tools,
|
|
|
|
|
}
|
|
|
|
|
except Exception:
|
|
|
|
|
pass
|
|
|
|
|
return result
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_toolset_names() -> List[str]:
|
|
|
|
|
"""
|
|
|
|
|
Get names of all available toolsets (excluding aliases).
|
2026-03-22 04:55:34 -07:00
|
|
|
|
|
|
|
|
Includes plugin-registered toolset names.
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
List[str]: List of toolset names
|
|
|
|
|
"""
|
2026-03-22 04:55:34 -07:00
|
|
|
names = set(TOOLSETS.keys())
|
|
|
|
|
names |= _get_plugin_toolset_names()
|
|
|
|
|
return sorted(names)
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def validate_toolset(name: str) -> bool:
|
|
|
|
|
"""
|
|
|
|
|
Check if a toolset name is valid.
|
|
|
|
|
|
|
|
|
|
Args:
|
|
|
|
|
name (str): Toolset name to validate
|
|
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
bool: True if valid, False otherwise
|
|
|
|
|
"""
|
|
|
|
|
# Accept special alias names for convenience
|
|
|
|
|
if name in {"all", "*"}:
|
|
|
|
|
return True
|
2026-03-22 04:55:34 -07:00
|
|
|
if name in TOOLSETS:
|
|
|
|
|
return True
|
|
|
|
|
# Check tool registry for plugin-provided toolsets
|
|
|
|
|
return name in _get_plugin_toolset_names()
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
def create_custom_toolset(
|
|
|
|
|
name: str,
|
|
|
|
|
description: str,
|
|
|
|
|
tools: List[str] = None,
|
|
|
|
|
includes: List[str] = None
|
|
|
|
|
) -> None:
|
|
|
|
|
"""
|
|
|
|
|
Create a custom toolset at runtime.
|
|
|
|
|
|
|
|
|
|
Args:
|
|
|
|
|
name (str): Name for the new toolset
|
|
|
|
|
description (str): Description of the toolset
|
|
|
|
|
tools (List[str]): Direct tools to include
|
|
|
|
|
includes (List[str]): Other toolsets to include
|
|
|
|
|
"""
|
|
|
|
|
TOOLSETS[name] = {
|
|
|
|
|
"description": description,
|
|
|
|
|
"tools": tools or [],
|
|
|
|
|
"includes": includes or []
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def get_toolset_info(name: str) -> Dict[str, Any]:
|
|
|
|
|
"""
|
|
|
|
|
Get detailed information about a toolset including resolved tools.
|
|
|
|
|
|
|
|
|
|
Args:
|
|
|
|
|
name (str): Toolset name
|
|
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
|
Dict: Detailed toolset information
|
|
|
|
|
"""
|
|
|
|
|
toolset = get_toolset(name)
|
|
|
|
|
if not toolset:
|
|
|
|
|
return None
|
|
|
|
|
|
|
|
|
|
resolved_tools = resolve_toolset(name)
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
"name": name,
|
|
|
|
|
"description": toolset["description"],
|
|
|
|
|
"direct_tools": toolset["tools"],
|
|
|
|
|
"includes": toolset["includes"],
|
|
|
|
|
"resolved_tools": resolved_tools,
|
|
|
|
|
"tool_count": len(resolved_tools),
|
|
|
|
|
"is_composite": len(toolset["includes"]) > 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
print("Toolsets System Demo")
|
|
|
|
|
print("=" * 60)
|
|
|
|
|
|
|
|
|
|
print("\nAvailable Toolsets:")
|
|
|
|
|
print("-" * 40)
|
|
|
|
|
for name, toolset in get_all_toolsets().items():
|
|
|
|
|
info = get_toolset_info(name)
|
|
|
|
|
composite = "[composite]" if info["is_composite"] else "[leaf]"
|
|
|
|
|
print(f" {composite} {name:20} - {toolset['description']}")
|
|
|
|
|
print(f" Tools: {len(info['resolved_tools'])} total")
|
|
|
|
|
|
|
|
|
|
print("\nToolset Resolution Examples:")
|
|
|
|
|
print("-" * 40)
|
|
|
|
|
for name in ["web", "terminal", "safe", "debugging"]:
|
|
|
|
|
tools = resolve_toolset(name)
|
|
|
|
|
print(f"\n {name}:")
|
|
|
|
|
print(f" Resolved to {len(tools)} tools: {', '.join(sorted(tools))}")
|
|
|
|
|
|
|
|
|
|
print("\nMultiple Toolset Resolution:")
|
|
|
|
|
print("-" * 40)
|
|
|
|
|
combined = resolve_multiple_toolsets(["web", "vision", "terminal"])
|
chore: fix 154 f-strings, simplify getattr/URL patterns, remove dead code (#3119)
Three categories of cleanup, all zero-behavioral-change:
1. F-strings without placeholders (154 fixes across 29 files)
- Converted f'...' to '...' where no {expression} was present
- Heaviest files: run_agent.py (24), cli.py (20), honcho_integration/cli.py (34)
2. Simplify defensive patterns in run_agent.py
- Added explicit self._is_anthropic_oauth = False in __init__ (before
the api_mode branch that conditionally sets it)
- Replaced 7x getattr(self, '_is_anthropic_oauth', False) with direct
self._is_anthropic_oauth (attribute always initialized now)
- Added _is_openrouter_url() and _is_anthropic_url() helper methods
- Replaced 3 inline 'openrouter' in self._base_url_lower checks
3. Remove dead code in small files
- hermes_cli/claw.py: removed unused 'total' computation
- tools/fuzzy_match.py: removed unused strip_indent() function and
pattern_stripped variable
Full test suite: 6184 passed, 0 failures
E2E PTY: banner clean, tool calls work, zero garbled ANSI
2026-03-25 19:47:58 -07:00
|
|
|
print(" Combining ['web', 'vision', 'terminal']:")
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
print(f" Result: {', '.join(sorted(combined))}")
|
|
|
|
|
|
|
|
|
|
print("\nCustom Toolset Creation:")
|
|
|
|
|
print("-" * 40)
|
|
|
|
|
create_custom_toolset(
|
|
|
|
|
name="my_custom",
|
|
|
|
|
description="My custom toolset for specific tasks",
|
|
|
|
|
tools=["web_search"],
|
|
|
|
|
includes=["terminal", "vision"]
|
|
|
|
|
)
|
|
|
|
|
custom_info = get_toolset_info("my_custom")
|
chore: fix 154 f-strings, simplify getattr/URL patterns, remove dead code (#3119)
Three categories of cleanup, all zero-behavioral-change:
1. F-strings without placeholders (154 fixes across 29 files)
- Converted f'...' to '...' where no {expression} was present
- Heaviest files: run_agent.py (24), cli.py (20), honcho_integration/cli.py (34)
2. Simplify defensive patterns in run_agent.py
- Added explicit self._is_anthropic_oauth = False in __init__ (before
the api_mode branch that conditionally sets it)
- Replaced 7x getattr(self, '_is_anthropic_oauth', False) with direct
self._is_anthropic_oauth (attribute always initialized now)
- Added _is_openrouter_url() and _is_anthropic_url() helper methods
- Replaced 3 inline 'openrouter' in self._base_url_lower checks
3. Remove dead code in small files
- hermes_cli/claw.py: removed unused 'total' computation
- tools/fuzzy_match.py: removed unused strip_indent() function and
pattern_stripped variable
Full test suite: 6184 passed, 0 failures
E2E PTY: banner clean, tool calls work, zero garbled ANSI
2026-03-25 19:47:58 -07:00
|
|
|
print(" Created 'my_custom' toolset:")
|
fix: Signal adapter parity pass — integration gaps, clawdbot features, env var simplification
Integration gaps fixed (7 files missing Signal):
- cron/scheduler.py: Signal in platform_map (cron delivery was broken)
- agent/prompt_builder.py: PLATFORM_HINTS for Signal (agent knows it's on Signal)
- toolsets.py: hermes-signal toolset + added to hermes-gateway composite
- hermes_cli/status.py: Signal + Slack in platform status display
- tools/send_message_tool.py: Signal example in target description
- tools/cronjob_tools.py: Signal in delivery option docs + schema
- gateway/channel_directory.py: Signal in session-based channel discovery
Clawdbot parity features added to signal.py:
- Self-message filtering: prevents reply loops by checking sender != account
- SyncMessage filtering: ignores sync envelopes (sent transcripts, read receipts)
- Edit message support: reads dataMessage from editMessage envelope
- Mention rendering: replaces \uFFFC placeholders with @identifier text
- Jitter in SSE reconnection backoff (20% randomization, prevents thundering herd)
Env var simplification (7 → 4):
- Removed SIGNAL_DM_POLICY (DM auth follows standard platform pattern via
SIGNAL_ALLOWED_USERS + DM pairing, same as Telegram/Discord)
- Removed SIGNAL_GROUP_POLICY (derived from SIGNAL_GROUP_ALLOWED_USERS:
not set = disabled, set with IDs = allowlist, set with * = open)
- Removed SIGNAL_DEBUG (was setting root logger, removed entirely)
- Remaining: SIGNAL_HTTP_URL, SIGNAL_ACCOUNT (required),
SIGNAL_ALLOWED_USERS, SIGNAL_GROUP_ALLOWED_USERS (optional)
Updated all docs (website, AGENTS.md, signal.md) to match.
2026-03-08 21:00:21 -07:00
|
|
|
print(f" Description: {custom_info['description']}")
|
|
|
|
|
print(f" Resolved tools: {', '.join(custom_info['resolved_tools'])}")
|