All plugins

sound-cut

Trim silence from a sound effect and report length, estimated tempo, peak, and MIDI notes. Disclosure — sound_cut_inspect reads a local .wav, .mp3, .flac, .ogg, or .opus file up to 32 MiB, and sound_cut_midi reads a MIDI file up to 8 MiB, without starting ffmpeg; sound_cut_trim, sound_cut_slice, sound_cut_convert, and sound_cut_loop run local ffmpeg and write one new file in the directory you name, leaving an existing file in place; no audio is sent off the machine; enable installs numpy, mido, and miniaudio. macOS only.

TakeshiTGALToolsv0.1.0Updated 2 days ago

About

Trim silence from a sound effect and report length, estimated tempo, peak, and MIDI notes. Disclosure — sound_cut_inspect reads a local .wav, .mp3, .flac, .ogg, or .opus file up to 32 MiB, and sound_cut_midi reads a MIDI file up to 8 MiB, without starting ffmpeg; sound_cut_trim, sound_cut_slice, sound_cut_convert, and sound_cut_loop run local ffmpeg and write one new file in the directory you name, leaving an existing file in place; no audio is sent off the machine; enable installs numpy, mido, and miniaudio. macOS only.

Sound Cut

Sound Cut prepares a game sound effect on this computer before that file goes into a game.

  • Measure a wav, mp3, or flac. The reply has duration_seconds, peak_dbfs, and tempo_bpm_estimated. tempo_kind is estimated.
  • Read a MIDI file. The reply has track_count and note_count. A set_tempo value is the event stored in the file. tempo_bpm_estimated stays null.
  • Trim silence, cut one span, convert among wav, mp3, flac, and ogg, or write a loop seam. The new file is created only after one approval, and only inside the directory you name.

ffmpeg is the program already on PATH. This plugin does not install ffmpeg and does not download a model. Reading length, peak, tempo, and MIDI does not start ffmpeg. The four write tools register pre_tool_call and start ffmpeg only after that hook approves. The approval line is the full command. An existing file is not overwritten. The new file stays inside the directory you name. A path component that is a symlink is refused and is not followed. On macOS, /tmp and /var are symlinks, so pass the regular path named in the next field.

Tempo is always an estimate from the energy envelope. A null estimate means no periodic pulse was found. A MIDI set_tempo value is the event stored in the file, and tempo_bpm_estimated stays null for MIDI.

Sound Cut stores no API key. It does not call ElevenLabs. Audio stays on this computer.

Yolo and approvals off skip the prompt. This plugin still refuses cron, hermes -q, webhook, msgraph_webhook, api_server, and the plugin host, even after always. With plugins.isolation set to host, the plugin loads and runs in the plugin host. Read tools still measure the file. Write tools stop before ffmpeg starts. Choosing always stores one plugin_rule:<tool>:<16 hex> line in config.yaml for that same argument set, and that line stays after the plugin is removed.

Requires Hermes 0.21.6 or later. Checked on the v0.22.2 tree. macOS with ffmpeg 8.1 was exercised. Linux and Windows were not.

Install and first call

From this repository, with hermes on PATH. A non-interactive shell needs --yes-deps. Without that flag the install exits 0 and leaves the plugin disabled. python3 on PATH only writes the wav with the standard library.

export HERMES_HOME="${TMPDIR:-/tmp}/sound-cut-home"
export HOME="${TMPDIR:-/tmp}/sound-cut-user"
mkdir -p "$HERMES_HOME" "$HOME"
hermes plugins install --yes-deps "file://${PWD}" </dev/null
hermes plugins enable sound-cut </dev/null
python3 - <<'PY'
import math, struct, wave
from pathlib import Path
wav = Path.cwd() / "sound-cut-check.wav"
rate = 44100
tone = b"".join(struct.pack("<h", int(12000 * math.sin(2 * math.pi * 440 * i / rate))) for i in range(rate // 2))
silence = b"\x00\x00" * (rate // 4)
with wave.open(str(wav), "w") as handle:
    handle.setnchannels(1)
    handle.setsampwidth(2)
    handle.setframerate(rate)
    handle.writeframes(silence + tone + silence)
print(wav)
PY
hermes sound-cut call sound_cut_inspect --json "{\"input_path\":\"${PWD}/sound-cut-check.wav\"}" </dev/null

The same steps when HERMES_HOME is unset, so Hermes uses $HOME/.hermes:

mkdir -p "${TMPDIR:-/tmp}/sound-cut-user-2"
env -u HERMES_HOME HOME="${TMPDIR:-/tmp}/sound-cut-user-2" hermes plugins install --yes-deps "file://${PWD}" </dev/null
env -u HERMES_HOME HOME="${TMPDIR:-/tmp}/sound-cut-user-2" hermes plugins enable sound-cut </dev/null
python3 - <<'PY'
import math, struct, wave
from pathlib import Path
wav = Path.cwd() / "sound-cut-check.wav"
rate = 44100
tone = b"".join(struct.pack("<h", int(12000 * math.sin(2 * math.pi * 440 * i / rate))) for i in range(rate // 2))
silence = b"\x00\x00" * (rate // 4)
with wave.open(str(wav), "w") as handle:
    handle.setnchannels(1)
    handle.setsampwidth(2)
    handle.setframerate(rate)
    handle.writeframes(silence + tone + silence)
print(wav)
PY
env -u HERMES_HOME HOME="${TMPDIR:-/tmp}/sound-cut-user-2" hermes sound-cut call sound_cut_inspect --json "{\"input_path\":\"${PWD}/sound-cut-check.wav\"}" </dev/null

tempo_bpm_estimated is null or a number, and tempo_kind is estimated. The wav stays in this repository directory. On macOS, pass that absolute path. A path under /tmp or /var has a symlink component.

hermes sound-cut call prints one JSON object. It does not open the hermes program file. A write tool on that command returns approval_denied and does not start ffmpeg. A trim writes only after the approval hook has run in an attended chat, and only inside output_dir.

Tools

ToolWhat it does
sound_cut_inspectLength, peak, estimated tempo. No ffmpeg.
sound_cut_midiTrack count and note count. No playback.
sound_cut_trimCut leading and trailing silence.
sound_cut_sliceWrite one time span.
sound_cut_convertwav, mp3, flac, or ogg.
sound_cut_loopCrossfade the end into the start.

Before approval, the message shows the input path, the output path, and the full ffmpeg command. The card's command field is the tool name. The message is what will run.

Details

pre_tool_call is the hook this plugin registers. It approves the four write tools. Read tools and every other tool receive no directive from this hook. hermes sound-cut call does not send that hook. A write from the command has no saved approval, returns approval_denied, and leaves ffmpeg unstarted.

ffmpeg is stopped after 30 seconds. The child process is that ffmpeg binary. It is not a sandbox for hostile code. The child receives only HOME, PATH, TMPDIR, LANG, and LC_ALL when those variables are set. Proxy variables are not copied.

When the output directory is not writable, the code is not_writable. A read-only filesystem returns read_only. A full filesystem returns no_space. ffmpeg is not started. A path that cannot be read returns not_readable.

After hermes plugins remove, plugins/sound-cut is gone. The directory installs/.../plugin-deps/sound-cut-<hash> remains. On the check machine, du -sk of that plugin-deps directory was 4. After hermes tools disable --platform saves tool settings, known_plugin_toolsets keeps the name sound-cut. An always plugin_rule line in config.yaml also remains.

The installed plugin directory, including .git, is 460 kilobytes by du -sk.

ogg export needs an ffmpeg build that includes libvorbis. Without that encoder the tool returns encoder_missing and leaves no new file.

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

More by TakeshiTGAL

39 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 対象です.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.CommunitytoolsTakeshiTGALcsharp-game-editorGive it one feature for the Unity project open in your editor, and it builds the scripts, objects and scene in one plan, stops that plan when the compile reports an error CS line, and plays the scene when the compile is clean. Disclosure — Needs MCP for Unity pinned to v10.3.0, plus git and uv. Hermes starts mcpforunityserver==10.3.0 through uvx with telemetry and the update check off. Disk reads run at once. apply_plan asks once and puts back a file the plan did not name. A plan that deletes, runs editor code, can lose unsaved work or writes outside the project asks again, and that summary is sent only when every line fits the approval card; otherwise nothing is sent and confirm_risky_plan asks. unity_docs sends the query to docs.unity3d.com after Hermes asks. unity_generate can call paid providers you configured in MCP for Unity; that call was not part of the check. Tools are on by default on every surface, including the gateway. Only users the gateway admits can reach the tools, and this plugin keeps no user list of its own. Cron and a session with nobody to answer decline. Logs stay in <HERMES_HOME>/plugin-data/agent-plugin-csharp-game-editor-<hash>/logs. Stop with hermes plugins disable csharp-game-editor, or hermes tools for one surface. macOS only.Communitytools

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section