All plugins

slack-history

Slack History returns speakers, times, and messages from the current channel or thread. A channel read includes replies from up to 5 threads and names any reply left unread. Ask what the thread concluded or what happened in this channel. Disclosure — reads message text, speaker display names, timestamps and permalinks from the current Slack channel or thread (and a channel listed in the plugin's extra_channels setting) through slack.com with the gateway's existing bot token, and sends that text to your model provider; anyone the gateway admits in that Slack conversation can trigger a read, with no separate user list. It does not post, react, edit or start OAuth, writes no files, and reads nothing in cron or non-Slack sessions.

TakeshiTGALToolsv0.1.0Updated 10 days ago

About

Slack History returns speakers, times, and messages from the current channel or thread. A channel read includes replies from up to 5 threads and names any reply left unread. Ask what the thread concluded or what happened in this channel. Disclosure — reads message text, speaker display names, timestamps and permalinks from the current Slack channel or thread (and a channel listed in the plugin's extra_channels setting) through slack.com with the gateway's existing bot token, and sends that text to your model provider; anyone the gateway admits in that Slack conversation can trigger a read, with no separate user list. It does not post, react, edit or start OAuth, writes no files, and reads nothing in cron or non-Slack sessions.

Slack History

A Slack conversation and the slack_history result that includes the thread reply

Say "Summarize this thread." in a Slack thread. The tool reads that thread and returns each speaker, time, link, and message so the reply can summarize them.

Say "What happened in this channel last week?" in a Slack channel. The tool reads the recent messages in that channel.

Say either sentence from the CLI or from a cron job. The tool reads nothing and tells you to ask again from the Slack channel.

Install

Copy this directory to $HERMES_HOME/plugins/slack-history.

Add slack-history under plugins.enabled in $HERMES_HOME/config.yaml.

Store the existing Slack bot token as SLACK_BOT_TOKEN in the profile secret store. This plugin does not start a new OAuth flow and it does not ask for a user token.

Restart the gateway. In the Slack channel, say: Summarize this thread.

The tool name is slack_history. Its toolset name is slack. Hermes turns a plugin toolset on by default. The tool is off only when the saved config records slack under known_plugin_toolsets for the Slack platform and the saved Slack toolset list omits it. In that case the Slack platform note still says channel history cannot be searched, so add slack back to that list.

What it reads

The default read is the current channel. When the conversation is already in a thread that has a reply from someone other than this bot, the read is that thread. Hermes gives a top-level Slack message a thread id when reply_in_thread is on, so a message with no replies reads the current channel. Passing the current channel id while the conversation is already in a thread still reads that thread. A channel id passed by the model is read only when it is the current channel or it appears in extra_channels.

extra_channels is a list of channel ids under the plugin settings. An empty list means the current conversation only.

Message text is returned inside an untrusted-data block. Speaker display names, timestamps, and permalinks are included. When users.info fails, the transcript shows the user id instead of a display name. The bot token is not included.

One call follows at most 4 pages of channel history. A top-level message spends one of those pages on the thread check, which leaves 3 for the channel. A channel read can add at most 5 pages of conversations.replies, one page for each of the newest parent messages that have replies. The call also requests auth.test once and users.info once for each speaker, so the number of HTTP requests can be higher than 4 even when there is no 429. A 429 whose Retry-After is 5 seconds or less is requested once more, which can raise that number again.

A channel read includes replies inside threads. It starts at the newest channel message and stops at 50 messages or 12000 characters of message text. Parent messages in that range that have replies are read with conversations.replies, newest parent first, at most 5 threads, and one page each. Reply text from those pages counts toward the same 50 messages and 12000 characters. A further page of a thread is not read. A reply that was already posted to the channel is kept once and is not repeated under the parent. incomplete is false only when every channel message in range was returned whole, every reply that fit those caps was returned whole, and none of the kept messages has unread thread replies. Otherwise incomplete is true. The note says what was left out: older messages, the end of a message or a reply cut at the character cap, replies that did not fit, or more than one of these. For a kept message whose thread_ts is absent or equal to its ts, a non-bool integer reply_count of 1 or more is that many unread replies, and the result gives that count and the message timestamp, which is the thread id. A non-bool integer reply_count of 0 is no unread replies when no reply from that thread is in the result, even when thread_ts is present. When thread_ts equals ts, both values are a valid Slack ts, and reply_count is missing, a string, a boolean, a decimal, a negative number, or another unusable shape, the message has replies and the count is unknown. When thread_ts is absent and reply_count is unusable, latest_reply or a reply_users_count of 1 or more means the same. A message whose valid thread_ts differs from ts is a reply in that thread: its own timestamp is not an unread item and its own reply_count is not added. When the parent with that thread_ts is already in the result and its count is a non-bool integer of 1 or more, the unread count is that count minus the number of replies with the same thread_ts whose text remains in the result. The same reply timestamp is counted once. A reply the message cap or the character cap left out of the result is not subtracted. When the remainder is 1 or more, the result names that parent once with the remainder, and the note uses that same number, singular or plural. When the remainder is 0 or less, that thread is not an unread item. A reply whose text was cut keeps the character-cap note. When that parent is in the result and its reply_count is a non-bool integer of 0, the thread is one item and the count is unknown, because a reply is visible. When that parent is not in the result, each thread_ts is one item and the count is unknown. Anything else is no unread replies. Known counts are totaled on their own. An unknown count is null, and the note does not state a combined total or say that the read finished. A broken value does not raise. A timestamp that is not a Slack ts is left out of the note and the result. A parent past the 5 thread cap stays in the note with that parent timestamp. Replies past the one page, the message cap, or the character cap stay in that note too.

A thread read follows the thread for up to 4 pages, then keeps the parent message and the newest replies inside the same message and character caps. The result says how many replies were omitted and which message was cut. When 4 pages do not reach the end of the thread, the result says the newest replies were not read. When Slack reports more replies than it returns, the result says their position is unknown.

These auth.test results stop the read before any channel or thread page: ratelimited, invalid_auth, token_expired, token_revoked, account_inactive, not_authed, missing_token, and unscoped. A short Retry-After on ratelimited is the one retry described above. The read stops when that retry is also ratelimited or the wait is longer than 5 seconds. A temporary failure such as internal_error, HTTP 500, or HTTP 503 still reads. When that failure does not identify this bot, a one-page thread of only bot replies reads the current channel and the result says those bot replies were not read. The same split applies when auth.test succeeds but does not identify this bot. A bot-only thread that continues past one page is read as a thread. A limit of 1 keeps only the newest reply.

When it reads nothing

A CLI session, a cron turn, and any turn that is not Slack return an error and the next step. They do not call Slack.

Slack errors come back with a next step. not_in_channel means invite the bot. missing_scope means add channels:history, groups:history, im:history, and mpim:history, then reinstall the app. ratelimited waits for a short Retry-After and otherwise tells you how many seconds to wait. invalid_auth, token_expired, token_revoked, and account_inactive each say how to replace or restore the bot token.

The tool does not post, react, or edit.

Remove

Remove slack-history from plugins.enabled and delete $HERMES_HOME/plugins/slack-history. The bot token stays in the profile secret store. Messages stay in Slack. This plugin does not write a transcript file.

README from the reviewed commit a3618d8; it updates when the author re-pins.

More by TakeshiTGAL

41 plugins by TakeshiTGAL in the catalog.

TakeshiTGALjp-subsidiesJapanese subsidy search and weekly watch, built on the jGrants public API. Disclosure — Searches api.jgrants-portal.go.jp with no API key and no daily request cap; each call waits at most 60 seconds and retries at most twice, and a result is a search match, not proof that every subsidy came back. The plugin has no user list of its own: anyone you allow on your Hermes gateway can call these tools and change this profile's watch, and the agent can set up a watch by itself. In a Chatwork room listed in CHATWORK_ROOMS, everyone can call them while CHATWORK_ALLOWED_USERS is unset. The tools are on for every platform, including gateways; turn them off per platform with hermes tools. While the plugin is enabled, its skill adds one line to the skills index of every session, including surfaces where the tools are turned off, and its pre_llm_call paragraph is added on those surfaces too. The /subsidies command is outside hermes tools; limit it with allow_admin_from or user_allowed_commands, or disable the plugin. The optional weekly watch is an unattended cron job that runs a script with no model call and is not a sandbox; delivering it to bot-chat instead runs one model turn on the fetched text. If delivery fails after the script runs, those subsidies are already marked seen and the text stays under cron/output/. Uninstall leaves the cron job, scripts/jp-subsidies-weekly-*.py and plugin-data/jp-subsidies/ until you run hermes cron remove and delete the files. The plugin does not store the name or ID of who asked. Not tested against a live gateway, with the Chatwork plugin loaded, or for result sets of several hundred rows. subsidies_detail compares a corporation's published industry, capital, employee count, and address with the call text as characters, returns a cap only when the call states one, and does not estimate an award. pre_tool_call blocks subsidies_search unless keyword is contained in industry text copied from a tool result, including a list of industry strings. A company name does not pass, including when the industry text is contained in the company name. When industry text was returned and the keyword is not that text, the block does not say the industry was missing. The block says the search was not run, eligibility is not_claimed, and no award was estimated. A company name contained in business_summary does not pass as an industry keyword. That holds when the name field is absent and the summary is トヨタ自動車は自動車を製造する。: トヨタ自動車 does not pass and 自動車 does. transform_tool_result remembers industry text and returns nothing, so the tool result is unchanged. pre_llm_call adds its paragraph only on a subsidy question (補助金, 助成金, jGrants, or 募集) or when subsidies_search, subsidies_detail, or subsidies_watch_setup was called in the previous turn, and adds nothing on other turns. A company name alone or an unrelated question does not add it. The paragraph says to call subsidies_search only with industry text copied from a tool result, that eligibility is not_claimed, and not to estimate an award or write 対象です.Communitytools1TakeshiTGALmesh-checkMesh Check reads one local STL, OBJ, PLY, GLB, or glTF file and returns whether it is closed, its volume, its bounds, and mesh, animation, and material counts. Use it before a 3D print or a game export. Disclosure — reads any local file path the agent passes (following symlinks) that ends in .stl, .obj, .ply, .glb or .gltf, up to 32 MiB including glTF buffer files in the same directory, and returns only measurements and mesh names; no network, file writes, rendering or repair; enabling it installs trimesh, pygltflib and numpy.Communitytools1TakeshiTGALwyoming-voice-bridgeWyoming speech-to-text and text-to-speech for a Wyoming server you run (stt/tts provider wyoming), plus a wyoming_voice_status tool that lists the server's models and voices. Disclosure — Audio and text to speak go to the WYOMING_* host:port you set over cleartext, unauthenticated TCP (public addresses accepted). Once selected, the providers send speech in every session, including cron and webhooks. This build imports the installed package only when its file tree is the official wyoming 1.5.4 wheel, and a different tree sends nothing. This build lists no ffmpeg digest, so audio that is not already 16 kHz, 16-bit, mono WAV is not converted. wyoming_voice_status asks with one public pre_tool_call line. Choosing always stores one command_allowlist line for that same which and the same host:port list. A later call skips the question only when a person is present. cron, hermes -q, webhook, msgraph_webhook, and api_server do not send a describe, even after always. yolo and approvals off skip the prompt, and this plugin does not add a refusal for those modes. The plugin does not import Hermes approval, config, or write-guard modules. Hermes 0.21.4 does not list the skill. The v0.21.5 canary and Hermes 0.22.2 add one skill line to every session that loads the plugin, including a surface where the tools are turned off. The status tool is on for every surface, including the gateway, and a guest there can call it and approve it when a person can answer. Turn the wyoming_voice toolset off per surface with hermes tools.Communityvoice1TakeshiTGALauthor-feedEach watch run costs 0 tokens, and the unmanned run holds no tools. Read one public profile and watch one account, with profile_get, author_feed and author_watch. It reads public posts and profiles from the Bluesky social media network, which is built on the AT Protocol (atproto), without signing in. Disclosure — HTTPS GET only to public.api.bsky.app, no API key. Hermes starts the watch Python when the cron job fires. The tools are on for every surface, including gateways, and ask for no approval: anyone you allow on your gateway can call them. Turn a surface off with hermes tools. While the plugin is enabled, its skill adds one line to the skills index of every session, including surfaces where the tools are turned off. hermes author-feed schedule writes a script and creates one cron job that does not call a model. Each run costs 0 tokens and has no daily cap. Empty script output sends nothing. Delivered to local unless you pass --deliver, so no chat by default. Run hermes author-feed unschedule before removal. That removes the job and the script. A leftover job after the plugin is gone stops with hermes cron remove <id>. The scheduled script does not run under plugins.isolation: host, so that setting does not stop the watch. The author_watch tool still refuses a run that is not the saved cron job, including under plugins.isolation: host, and posts that notice on every run of the tool. The first run only records what is already there. One run reads at most the latest 3 pages and announces a new post by this account on them. When every row on those pages is new, with no saved post or mark, and the feed still offers another cursor, it also posts a possible-miss notice, at most once in 24 hours while that keeps happening. Replies, including the account's own thread continuations, are not announced. It relies on private Hermes parts, so an update can stop it. State stays in <HERMES_HOME>/plugin-data/author-feed after uninstall. Seen post URIs advance only on the saved cron job after a successful fetch. The script allows that when cron/executions.db shows that job running under the parent pid and cron/jobs.json names author-feed-watch.py. A direct run and another cron job exit 3 with no GET and no write. The author_watch tool allows that only for the saved job id. Delivery accepts origin, local, all, bot-chat, the Hermes 0.21.6 cron platform names, and public registry names that declare a cron delivery env var. A refused name can be set with hermes cron edit <id> --deliver. bot-chat places the watched account's post text in another model turn that has the profile's tools. hermes cron create cannot set a per-job tool list. A job made by 0.1.x keeps its model turn until the next schedule. On Hermes 0.21.4 and 0.21.5 this plugin does not load, and a leftover job keeps its model turn until hermes cron remove <id>. Running schedule again updates the interval and deliver target and switches an existing model job to the script.Communitytools

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section