All plugins

fledge

Skills have to earn their wings. Before Hermes saves or rewrites a skill, Fledge checks what actually happened in the run it learned from (tools still failing when the turn ended, a failed or interrupted turn, the user correcting the agent in the next message, /undo or a /rollback restore right after, denied approvals), using only facts Hermes reports through hooks: no model grades the model. A save learned from a bad run is held in Hermes' own skills pending queue with the reasons (review from any chat with /fledge pending|diff|approve|reject, or /skills pending in the CLI); a foreground save after errors goes through Hermes' approval prompt, and unattended runs queue instead of waiting. New and rewritten skills start on probation: clean real runs graduate them, repeated bad runs ground them, and a save from a run the user corrected right after is grounded at once; a grounded skill Hermes created on its own is archived (hermes curator restore brings it back), skills the user asked for are only reported. Skills the user edited by hand are fingerprinted, and autonomous rewrites or deletes of them become proposals in the same queue (optionally Hermes' content lock). Modes: enforce, watch (records only), off. Disclosure — nine hooks (pre_llm_call, pre_tool_call, post_tool_call, on_session_end, on_session_finalize, on_session_reset, on_skill_lifecycle, pre_command, post_approval_response); pre_tool_call blocks or asks for approval on skill_manage only and lets the write through on its own errors (a write already queued for review stays held); reads hook payloads (tool statuses and error text, the first 280 characters of the next user message) and skill folders to fingerprint them; writes its own SQLite under each profile's plugin-data/fledge (skill names, fingerprints, verdict reasons, session/turn ids; reasons quote the matched correction phrase and up to 80 characters of a tool error, hold summaries the skill's one-line description; no other message text, no skill bodies), held writes into pending/skills/, and archives grounded agent-created skills into skills/.archive/; calls tools.skill_provenance, tools.write_approval and tools.skill_usage (the functions behind /skills pending and hermes curator archive/lock) because no public seam exists yet, each guarded; no network, no model calls, no credentials, no shell commands, never approves anything. Needs plugins.isolation in_process to tell background-review writes from foreground ones. Measured on 2026-11-10: 153 tests passed on Python 3.14 and 3.11; hermes plugins validate passes on Hermes 0.23.1, 0.23.0 and 0.22.7 with only the private-import warnings above; live sessions with a real model in isolated HERMES_HOMEs (bad-run hold, approve onto probation, grounding after a correction, hand-edit proposal and approval prompt, watch mode, 13 clean writes with 0 holds, fail-open under a locked database) in VALIDATION.md, raw output in tests/smoke-2026-11-05.txt and tests/profiles-2026-11-10.txt.

12burbToolsv0.1.0Updated 21 days ago

About

Skills have to earn their wings. Before Hermes saves or rewrites a skill, Fledge checks what actually happened in the run it learned from (tools still failing when the turn ended, a failed or interrupted turn, the user correcting the agent in the next message, /undo or a /rollback restore right after, denied approvals), using only facts Hermes reports through hooks: no model grades the model. A save learned from a bad run is held in Hermes' own skills pending queue with the reasons (review from any chat with /fledge pending|diff|approve|reject, or /skills pending in the CLI); a foreground save after errors goes through Hermes' approval prompt, and unattended runs queue instead of waiting. New and rewritten skills start on probation: clean real runs graduate them, repeated bad runs ground them, and a save from a run the user corrected right after is grounded at once; a grounded skill Hermes created on its own is archived (hermes curator restore brings it back), skills the user asked for are only reported. Skills the user edited by hand are fingerprinted, and autonomous rewrites or deletes of them become proposals in the same queue (optionally Hermes' content lock). Modes: enforce, watch (records only), off. Disclosure — nine hooks (pre_llm_call, pre_tool_call, post_tool_call, on_session_end, on_session_finalize, on_session_reset, on_skill_lifecycle, pre_command, post_approval_response); pre_tool_call blocks or asks for approval on skill_manage only and lets the write through on its own errors (a write already queued for review stays held); reads hook payloads (tool statuses and error text, the first 280 characters of the next user message) and skill folders to fingerprint them; writes its own SQLite under each profile's plugin-data/fledge (skill names, fingerprints, verdict reasons, session/turn ids; reasons quote the matched correction phrase and up to 80 characters of a tool error, hold summaries the skill's one-line description; no other message text, no skill bodies), held writes into pending/skills/, and archives grounded agent-created skills into skills/.archive/; calls tools.skill_provenance, tools.write_approval and tools.skill_usage (the functions behind /skills pending and hermes curator archive/lock) because no public seam exists yet, each guarded; no network, no model calls, no credentials, no shell commands, never approves anything. Needs plugins.isolation in_process to tell background-review writes from foreground ones. Measured on 2026-11-10: 153 tests passed on Python 3.14 and 3.11; hermes plugins validate passes on Hermes 0.23.1, 0.23.0 and 0.22.7 with only the private-import warnings above; live sessions with a real model in isolated HERMES_HOMEs (bad-run hold, approve onto probation, grounding after a correction, hand-edit proposal and approval prompt, watch mode, 13 clean writes with 0 holds, fail-open under a locked database) in VALIDATION.md, raw output in tests/smoke-2026-11-05.txt and tests/profiles-2026-11-10.txt.

🪶 Fledge

Skills have to earn their wings.

Hermes learns from its own work: after a task it writes the procedure down as a skill and reuses it next time. The catch is who grades the work. In Kilo's read of 1,300+ r/openclaw comments, the first thing listed under what people dislike about Hermes is that self-evaluation always passes, quoting a user: "It always thinks it did a good job. ALWAYS." A skill learned from a run that quietly went wrong carries the mistake forward, and the next "self-improvement" can overwrite the skill you spent an evening tuning.

Fledge takes the grading away from the agent. Before Hermes saves or rewrites a skill, Fledge looks at what actually happened in the run it learned from. No model grades the model.

What Fledge does
Save gateA skill learned from a run that went wrong is held in Hermes' own review queue instead of going live. You see why, then keep it or drop it.
ProbationNew and rewritten skills start as fledglings. Clean real runs graduate them; runs that keep going wrong ground them (archived, recoverable). A save from a run you corrected right after is grounded at once.
Hand-edit protectionSkills you edited by hand stop being overwritten. Autonomous rewrites or deletes of them become proposals you approve or reject.

How it decides

Fledge only uses facts Hermes reports through plugin hooks:

EvidencePoints
The turn ended in an error3
The turn was interrupted2
Your next message corrects the agent ("that's wrong", "not what I asked", "still broken"…)3 (a softer "try again" / "not quite", or a bare "No.", is 1)
You ran /undo or restored a /rollback right after (/retry: 2)3
A task tool was still failing when the turn ended (terminal, code, file writes, browser, MCP; terminal is judged per program, so a later rm tmp.txt does not "recover" a failed ./fetch.sh)2 each
…and it failed two or more times in a row without recovering+1
Any other tool still failing at the end1 each (tool failures max 4 in total)
You denied an action at an approval prompt1 each, max 2

An error the agent recovered from is normal work and costs nothing, and a single failing command at the end (a grep with no matches) is not enough on its own. A run scoring 3 or more is bad (strictness: lenient 4, standard 3, strict 2). Zero with a clean finish is clean; anything between is unclear and neither helps nor hurts on probation.

Who is writing matters. Hermes saves most skills from its background review, a forked agent that runs after your turn. Fledge recognizes it and judges the save by the turn it is reviewing:

  • Background review / curator saving after a bad run → held in the review queue (nobody is there to ask).
  • Foreground turn saving mid-task after errors → Hermes' approval prompt asks you (foreground_bad_run: approve), or it is queued (stage), or let through (allow). Cron, kanban and API turns always queue.
  • Your /fledge approve or /skills approve → saved as you decided. It goes on probation like any new skill, but the run it came from is never held against it.

What you see

When Fledge holds something, a notice lands in your own chat right away (Desktop, TUI, Telegram and other
messaging chats). The classic hermes chat CLI only draws notices while a turn is running, so there it
appears at the start of your next turn:

🪶 Fledge: held skill 'pull-water-results': it was learned from a run that went wrong
(terminal failed 3 times in a row and never recovered: exit 1: HTTP 404 Not Found).
Review: /fledge diff 3fa9c1e2, then /fledge approve 3fa9c1e2 or /fledge reject 3fa9c1e2.

/fledge gives the overview:

Fledge (enforce, standard) — 12 fledged · 3 on probation · 1 grounded · 2 hand-tuned
Held for your review (/fledge pending):
  3fa9c1e2  'pull-water-results' — terminal failed 3 times in a row and never recovered (2m ago)
On probation:
  csv-cleaner — 2 clean / 0 bad of 3 needed
Grounded:
  scrape-dnr — 2 of its 3 runs on probation went wrong (archived: hermes curator restore scrape-dnr)
Hand-tuned (autonomous rewrites become proposals): smart-home-lights, release-notes

Holds live in Hermes' own pending queue, so /skills pending in the CLI lists them too (tagged [fledge]). /fledge pending | diff | approve | reject work from every surface, including Telegram and Discord, where /skills is CLI-only unless skills.write_approval is on.

Install

Requires Hermes 0.22.7 or newer.

hermes plugins install 12burb/hermes-fledge --enable
hermes fledge scan      # optional: fingerprint existing skills so later hand edits are recognized

Start a new session (or restart the gateway). /fledge doctor shows which Hermes features Fledge can reach.

Fledge must run in-process (the default, plugins.isolation: in_process). In the out-of-process plugin host it cannot see which agent is writing, so it treats every save as autonomous (held, never asked) and its chat notices are off. /fledge doctor says so.

Want to see what it would do before it does anything? /fledge mode watch records every decision without blocking; /fledge mode enforce turns it on.

Settings

plugins.entries.fledge.settings (also the plugin's page in Desktop → Settings → Plugins):

KeyDefaultMeaning
modeenforceenforce holds bad saves · watch only records · off
strictnessstandardbad-run threshold 4 / 3 / 2 (lenient / standard / strict)
graduate_after3clean runs a new skill needs (plus one per bad run)
ground_after2bad runs on probation that ground a skill
auto_archivetruearchive grounded skills Hermes created on its own (skills you asked for are only reported)
protect_hand_editstrueturn autonomous rewrites and deletes of hand-edited skills into proposals
on_hand_editprotectlock also sets Hermes' content lock (hermes curator lock), which stops every agent edit
foreground_bad_runapproveforeground save after errors: approve (ask) · stage · allow
notifytruechat notices
settle_hours6a run with no follow-up message is judged after this long

Commands

SlashCLI
/fledgehermes fledge statusoverview
/fledge pendinghermes fledge pendingwrites Fledge is holding
/fledge diff ID · approve ID · reject IDsamereview a hold (only Fledge's own holds)
/fledge skill NAMEhermes fledge skill NAMEtrack record and why
/fledge protect NAME · unprotect NAMEsamemark or unmark as hand-tuned
/fledge release NAMEsametake off probation
/fledge forget NAMEsamedrop Fledge's record
/fledge mode enforce|watch|offhermes fledge mode …switch mode
/fledge doctorhermes fledge doctorreachable Hermes features
hermes fledge scanfingerprint existing skills
hermes fledge exporteverything as JSON

How it plugs into Hermes

Nine hooks, no tools, no patches to Hermes code:

  • pre_llm_call, post_tool_call, on_session_end, on_session_finalize, on_session_reset, pre_command, post_approval_response — record what happened in each foreground turn (tool statuses, turn outcome, your follow-up, /undo, denials). Turns of the background-review and side-question forks are ignored.
  • pre_tool_call on skill_manage — the save gate. It returns Hermes' documented block (held) or approve (ask you) directive. On its own errors it fails open: a Fledge exception never stops Hermes from saving skills. If Hermes' review queue can't take a held write (Hermes' stage_write reports success even when its disk write failed, so Fledge confirms it), the skill is saved on probation with a notice instead of being dropped. Two exceptions are deliberate: a write already in the queue stays held even if Fledge then fails to record it (it is never both saved and queued), and an autonomous rewrite of a skill you edited by hand is never let through. (Hermes itself blocks the tool call if any pre_tool_call callback hangs past plugins.hook_callback_timeout, 30 s by default; Fledge's gate does a few local SQLite reads and returns in milliseconds.)
  • on_skill_lifecycle — writes that landed (start probation), skill loads (count real runs), archive/restore.

Where no public plugin seam exists yet, Fledge calls the same functions Hermes' own commands use, all in bridge.py and each guarded so a moved function disables one feature instead of breaking the agent: the skill write origin (tools.skill_provenance), the pending queue (tools.write_approval.stage_write, the backend of /skills pending), and curator actions (tools.skill_usage.archive_skill / set_locked, the backend of hermes curator archive / lock). hermes plugins validate lists these imports as warnings; a public ctx seam for them is the obvious follow-up.

Disclosure

  • Reads: hook payloads (tool names, statuses and error text, turn outcome, the first 280 characters of your next message to spot a correction), and skill folders, to fingerprint them.
  • Writes: its own SQLite file <HERMES_HOME>/plugin-data/fledge/data.db, one per profile and opened only through Hermes' plugin storage (skill names, fingerprints, verdict reasons, session/turn ids). Verdict reasons quote short excerpts: the matched correction phrase (up to 60 characters) and a failing tool's error text (up to 80); hold summaries include the skill's one-line description. No other message text and no skill bodies. held writes into Hermes' pending queue <HERMES_HOME>/pending/skills/, and — only for skills Hermes created on its own that get grounded — an archive move into skills/.archive/ (undo with hermes curator restore NAME). With on_hand_edit: lock, Hermes' content-lock flag.
  • Never: network calls, model calls, credentials, shell commands, background processes, telemetry.
  • Approvals: Fledge only adds friction. It can block a skill write or ask you about it through Hermes' approval prompt; it never approves anything, and asks are queued instead of waiting when nobody can answer (cron, kanban, API).

Limits, honestly

  • Fledge judges runs by what Hermes can observe. A run that finishes cleanly with a wrong answer and no reaction from you looks clean until you say otherwise; probation is there to catch it later.
  • Correction detection is a phrase list over the start of your next message, tuned to miss rather than misfire (a casual "no worries" never counts).
  • Hand edits are detected by fingerprint: Fledge knows a skill's last agent-written state once it has seen the agent write it (or after hermes fledge scan). An edit made through a shell command by the agent also looks like a hand edit; that errs on the side of protecting the skill.
  • Turn evidence lives in memory; a restart forgets runs in flight (probation counts already recorded are kept).
  • Tool status is what Hermes reports. A compound shell command (./fetch.sh; rm tmp) reports the exit status of its last part. Agents often wrap commands so the failure is only in the output. Fledge reads two shapes, both from text the command itself printed: a labelled $? (echo "exit=$?", ec=$?; echo "exit_code=$ec"), and which of the command's own fixed echo branches ran (if ./fetch.sh; then echo "ok"; else echo "failed"; fi, ./fetch.sh || echo "failed"), matched as whole lines. Predicate commands (grep, test, diff, which…) are skipped, since their non-zero exit is an answer, not a failure. Anything else hidden inside a compound command is not seen; Fledge never guesses from other output text.
  • Deletes are protected only for hand-edited skills; a hand edit made before Fledge saw the skill is recognized after hermes fledge scan.

Development

python -m pytest tests          # 153 tests, no Hermes install needed (Hermes surfaces are faked)
hermes plugins doctor . --ci    # real discovery, register(), hooks — in a temp HERMES_HOME
hermes plugins validate .       # catalog admission checks

MIT licensed. Built by Borb / 12birb.

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

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section