# Repository Briefing: NousResearch/hermes-agent-self-evolution
> Source: https://repoforai.com/repo/NousResearch/hermes-agent-self-evolution (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/NousResearch/hermes-agent-self-evolution
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Python
- **License**: See repository
- **Engineering Health**: C (44/100 · Maintenance 12/35 · Adoption 20/25 · Releases 6/20 · License 6/20)
- **Review Snapshot**: 2026-12-04
- **Deployment / Stack Signals**: CLI, API
- **Momentum**: 5,825 ★ total (+3 24h / +38 7d) · 721 forks
- **When to Use**: Best for: Hermes Agent maintainers who want to compare skill revisions against an evaluation set and accept changes through human review. Skip if: You need a fully offline or MCP-served optimizer, production-ready tool-code evolution, or reliable gains without investing in evaluation quality.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Search: GEPA uses execution traces to propose targeted revisions and evaluates candidates through model API calls.
- Implemented scope: Phase 1 targets Hermes `SKILL.md` files; tool descriptions, system prompts, code, and continuous operation remain planned.
- Evaluation inputs: The `evolve_skill` module exposes `--eval-source synthetic` and `--eval-source sessiondb`.
- Acceptance policy: The workflow specifies a full test pass, a 15 KB skill limit, no mid-conversation updates, preservation of intent, and human PR review.
- Runtime: Python 3.10+ with `dspy>=3.0.0` and `openai>=1.0.0`; optimization uses API calls rather than local GPU training.
- Integration boundary: The concrete entry point is a Python CLI against a local Hermes Agent checkout; API-backed inference does not imply an MCP server.
```

## Quick Start / Clone
```bash
# 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
```
