add Hermes plugin for Ponytail with command support and documentation#78
Open
salaamdev wants to merge 4 commits into
Open
add Hermes plugin for Ponytail with command support and documentation#78salaamdev wants to merge 4 commits into
salaamdev wants to merge 4 commits into
Conversation
Closed
anupddas
suggested changes
Jun 16, 2026
Author
Working on it |
Author
hey i have updated the description of the pr with the detailed changes, i did not a stand alone docs since the readme changes are enough. let me know if there is anything else i should add/remove. This has been tested with hermes connected to telegram/whatsapp and hermes cli |
This was referenced Jun 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues
Closes #125
Closes #133
Summary
Adds native Hermes Agent plugin support to Ponytail, installable with one command, injects the active ruleset before every LLM turn, and exposes all Ponytail commands and skills through Hermes's plugin system.
Motivation
Hermes Agent is a gateway/agent framework with its own plugin API (hooks, skills, slash commands). This PR integrates Ponytail as a first-class Hermes plugin so Hermes users get the same always-on lazy-dev mode and command surface that Claude Code, Codex, OpenCode, Gemini, and pi users already have.
What it does
Install:
Hooks registered:
pre_llm_call— injects the mode-filtered Ponytail ruleset (fromskills/ponytail/SKILL.md) as system context before each LLM turn. Supportslite/full/ultramodes, config viaPONYTAIL_DEFAULT_MODEenv or~/.config/ponytail/config.json, and areviewmode that loads the review skill.pre_gateway_dispatch— rewrites/ponytail-review,/ponytail-audit,/ponytail-debt,/ponytail-helpgateway slash commands into agent prompts (with access-control delegation to Hermes's_check_slash_access).Slash commands:
/ponytail [lite|full|ultra|off]— get/set runtime mode (process-local)/ponytail-review [target]— review diff for over-engineering/ponytail-audit [target]— whole-repo audit/ponytail-debt— harvestponytail:shortcuts into a ledger/ponytail-help— quick referenceSkills: All bundled skills (
ponytail,ponytail-review,ponytail-audit,ponytail-debt,ponytail-help) registered under theponytail:namespace.Files added/changed
__init__.pyplugin.yamlhermes plugins installafter-install.mdhermes plugins installtests/hermes-plugin.test.jsREADME.mddocs/agent-portability.mdTesting
Tests verify:
ponytail:namespace with correctSKILL.mdpathsbuild_injected_context('ultra')contains mode header, skill content, no frontmatter, no wrong-mode table rowsPONYTAIL_DEFAULT_MODEenv >config.json> defaultfull;offreturns empty; invalid command returns usagereviewmode loads the real review skill body/ponytail ultrachanges mode, subsequentpre_llm_callinjectsultracontextnullwhen_check_slash_accessdeniesSecurity note
In shared Hermes gateways, runtime mode (
/ponytail) is process-local. Restrict/ponytailto trusted users with Hermes's slash-command access controls; the gateway rewrite hook delegates to_check_slash_accessbefore rewriting commands.Available commands in hermes after intalling the plugin
/ponytail
/ponytail ultra
/ponytail-review README.md
/ponytail-audit .
/ponytail-debt
/ponytail-help