mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
feat: introduce skill management tool for agent-created skills and skills migration to ~/.hermes
- Added a new `skill_manager_tool` to enable agents to create, update, and delete their own skills, enhancing procedural memory capabilities. - Updated the skills directory structure to support user-created skills in `~/.hermes/skills/`, allowing for better organization and management. - Enhanced the CLI and documentation to reflect the new skill management functionalities, including detailed instructions on creating and modifying skills. - Implemented a manifest-based syncing mechanism for bundled skills to ensure user modifications are preserved during updates.
This commit is contained in:
parent
d070b8698d
commit
4d5f29c74c
18 changed files with 1007 additions and 204 deletions
|
|
@ -240,6 +240,25 @@ if [ -n "$SHELL_CONFIG" ]; then
|
|||
fi
|
||||
fi
|
||||
|
||||
# ============================================================================
|
||||
# Seed bundled skills into ~/.hermes/skills/
|
||||
# ============================================================================
|
||||
|
||||
HERMES_SKILLS_DIR="${HERMES_HOME:-$HOME/.hermes}/skills"
|
||||
mkdir -p "$HERMES_SKILLS_DIR"
|
||||
|
||||
echo ""
|
||||
echo "Syncing bundled skills to ~/.hermes/skills/ ..."
|
||||
if "$SCRIPT_DIR/venv/bin/python" "$SCRIPT_DIR/tools/skills_sync.py" 2>/dev/null; then
|
||||
echo -e "${GREEN}✓${NC} Skills synced"
|
||||
else
|
||||
# Fallback: copy if sync script fails (missing deps, etc.)
|
||||
if [ -d "$SCRIPT_DIR/skills" ]; then
|
||||
cp -rn "$SCRIPT_DIR/skills/"* "$HERMES_SKILLS_DIR/" 2>/dev/null || true
|
||||
echo -e "${GREEN}✓${NC} Skills copied"
|
||||
fi
|
||||
fi
|
||||
|
||||
# ============================================================================
|
||||
# Done
|
||||
# ============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue