NousResearch/hermes-agent-self-evolution
API-backed DSPy + GEPA pipeline for evaluating and refining Hermes Agent skills
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Hermes Agent Self-Evolution is a Python optimizer that works against an existing Hermes Agent checkout. Its workflow reads the current skill, prepares an evaluation dataset, and runs DSPy + GEPA. GEPA uses execution traces to propose targeted text revisions, and the workflow scores candidates against the evaluation set. The acceptance policy puts tests, constraints, and human PR review between candidate selection and adoption; it does not call for direct commits.
The root tree separates optimizer code in evolution/, evaluation data in datasets/, reports in reports/, and tests in tests/, with a top-level generate_report.py. The manifest requires Python 3.10+ and lists DSPy, OpenAI, PyYAML, Click, and Rich. The concrete integration is a Python module CLI that takes a skill and an evaluation source. The API is used for model calls; no MCP transport or server interface is established.
Key Capabilities & Differentiators
The implemented target is Hermes skill files (SKILL.md). The evolution.skills.evolve_skill module accepts --skill, --iterations, and --eval-source. The synthetic source can bootstrap an evaluation without real sessions, while sessiondb can draw on session history from Claude Code, Copilot, and Hermes. Those names identify evaluation sources, not supported inference backends. No specific model families or broader provider compatibility matrix are established.
The acceptance policy requires the full pytest tests/ -q suite to pass, caps skills at 15 KB, prohibits mid-conversation changes for cache compatibility, and calls for preservation of the skill's original purpose and human PR review. The 500-character tool-description limit applies to a planned target. System-prompt edits, tool implementation changes via Darwinian Evolver, and a continuous improvement loop are also planned rather than shipped capabilities. No measured improvement is provided against which to budget an adoption.
Trade-offs & Limitations
Using DSPy + GEPA directly gives teams control over the task representation, scoring, and integration outside Hermes. This project trades some of that flexibility for a skill-oriented CLI, two evaluation-source options, and a Hermes review workflow. Compared with manual editing, it can evaluate multiple revisions consistently, but it also introduces API cost and makes evaluation quality a prerequisite. A weak synthetic set can reward the wrong changes; real sessions can improve relevance but require privacy review before their data enters an API-backed evaluation. Keep a separate acceptance set for changes you plan to merge.
The estimated $2–10 per run is a planning figure, not a guarantee or a throughput benchmark. The manifest declares MIT, but repository-level license metadata is unspecified; confirm the applicable terms before redistribution. Darwinian Evolver is listed separately as an optional external AGPL v3 CLI for the planned code-evolution phase. Evaluate its licensing separately rather than treating it as part of the current skill runtime.
Hardware & Deployment Guide
Use Python 3.10 or newer and install from the source checkout with pip install -e ".[dev]" to include the test dependencies. Set HERMES_AGENT_REPO to the local Hermes Agent checkout. A starting run is python -m evolution.skills.evolve_skill --skill github-code-review --iterations 10 --eval-source synthetic. This exercises the implemented path without requiring access to real session histories.
The calling machine runs Python and coordinates evaluations; model inference goes through API calls, so the workflow needs network access and model API access, not a local training GPU or a provisioned VRAM budget. It is not a fully offline deployment. Pilot representative workloads because elapsed time and spend depend on model choice, evaluation volume, and request scheduling. The manifest declares package version 0.1.0, but no GitHub release is listed, so that version string does not establish a release history.
SKILL.md files; tool descriptions, system prompts, code, and continuous operation remain planned.evolve_skill module exposes --eval-source synthetic and --eval-source sessiondb.dspy>=3.0.0 and openai>=1.0.0; optimization uses API calls rather than local GPU training.Hermes Agent maintainers who want to compare skill revisions against an evaluation set and accept changes through human review.
You need a fully offline or MCP-served optimizer, production-ready tool-code evolution, or reliable gains without investing in evaluation quality.
Quick Start & Installation
# Install git clone https://github.com/NousResearch/hermes-agent-self-evolution.git cd hermes-agent-self-evolution pip install -e ".[dev]" # Point at your hermes-agent repo export HERMES_AGENT_REPO=~/.hermes/hermes-agent # Evolve a skill (synthetic eval data) python -m evolution.skills.evolve_skill \ --skill github-code-review \ --iterations 10 \ --eval-source synthetic # Or use real session history from Claude Code, Copilot, and Hermes python -m evolution.skills.evolve_skill \ --skill github-code-review \ --iterations 10 \ --eval-source sessiondb
Comparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| hermes-agent-self-evolution ★ | 5.8k | +38 | Python | — | API-backed DSPy + GEPA pipeline for evaluating and refining Hermes Agent skills |
| headroom | 81.5k | +469 | Python | Apache-2.0 | Local context compression for LLMs via a Python library, proxy, and MCP server |
| skills | 204.1k | +2.5k | Python | — | A Claude Agent Skills catalog for packaging and reusing task workflows |
| ui-ux-pro-max-skill | 158.5k | +3.6k | Python | MIT | A search-and-rules skill that gives coding agents a UI design system to build fr |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/NousResearch/hermes-agent-self-evolution.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about hermes-agent-self-evolution
How does the optimizer integrate with Hermes Agent and MCP clients?
Do I need a GPU, and how should I budget a run?
What should we check before commercial use or self-managed deployment?
When should we use this instead of DSPy + GEPA directly?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy