hermes-agent/self_evolution/paths.py
玉冰 3cd384dc43 feat: add self-evolution plugin — agent self-optimization system
Add a comprehensive self-evolution system that enables Hermes Agent
to continuously improve through automated analysis and optimization:

Core components:
- reflection_engine: Nightly session analysis (1:00 AM)
- evolution_proposer: Generate improvement proposals from insights
- quality_scorer: Multi-dimensional session quality evaluation
- strategy_injector: Inject learned strategies into new sessions
- strategy_compressor: Strategy optimization and deduplication
- git_analyzer: Code change pattern analysis
- rule_engine: Pattern-based rule generation
- feishu_notifier: Feishu card notifications for evolution events

Storage:
- db.py: SQLite telemetry storage
- strategy_store: Persistent strategy storage
- models.py: Data models

Plugin integration:
- plugin.yaml, hooks.py, __init__.py for plugin system
- cron_jobs.py for scheduled tasks

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-25 00:40:13 +08:00

17 lines
531 B
Python

"""
Self Evolution Plugin — Centralized Path Definitions
=====================================================
Single source of truth for all filesystem paths used by the plugin.
"""
from pathlib import Path
HERMES_HOME = Path.home() / ".hermes"
DATA_DIR = HERMES_HOME / "self_evolution"
DB_PATH = DATA_DIR / "evolution.db"
STRATEGIES_FILE = DATA_DIR / "strategies.json"
ARCHIVE_DIR = DATA_DIR / "archive"
SKILLS_DIR = HERMES_HOME / "skills" / "learned"
MEMORIES_DIR = HERMES_HOME / "memories"
CRON_DIR = HERMES_HOME / "cron"