feat(hermes): skill curator, trajectory compression, and composable toolsets - #239
Merged
Conversation
…oolsets Three adoptions from Nous Research's Hermes Agent (the self-improving agent), mapped against hawk's existing skills/memory/compaction stack. Skill curator (internal/intelligence/skillcurator): - Per-skill usage tracking persisted to a curator state file. - Inactivity-triggered review that auto-transitions agent-created skills to Archived when cold, under Hermes' hard invariants: only agent-created skills are touched, nothing is ever deleted (archive moves to a recoverable .archive/), pinned skills bypass auto-transitions, and the review is best-effort and interval-gated. - Wired into the Skill tool (HAWK_SKILL_CURATOR=1) so invocations feed usage. Trajectory compression (internal/engine/trajectory): - Hermes' trajectory_compressor: protect the first and last N turns verbatim (including their tool calls), compress only the middle into a single human summary message, keep surviving tool calls intact for training/eval signal. Composable toolsets (internal/toolset + Toolset tool): - Named, composable tool groups (research, dev, ops, full_stack) with transitive resolution (cycle-safe) and de-duplicated sorted output. - Toolset tool (list | resolve) registered in chat_tools.go + safety. Verification: new suites green (skillcurator 7, trajectory 4, toolset 6, Toolset tool 4); tool/engine/safety/cmd suites pass; golangci-lint 0 issues; gofmt clean; go build ./... clean.
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.
Summary
Three adoptions from Nous Research's Hermes Agent (the self-improving agent), mapped against hawk's existing skills/memory/compaction stack.
1. Skill curator —
internal/intelligence/skillcurator.archive/), pinned skills bypass auto-transitions, best-effort + interval-gated.Skilltool (HAWK_SKILL_CURATOR=1) so invocations feed usage.2. Trajectory compression —
internal/engine/trajectorytrajectory_compressor: protect the first + last N turns verbatim (including tool calls), compress only the middle into a single human summary message, keep surviving tool calls intact for training/eval signal.3. Composable toolsets —
internal/toolset+Toolsettoolresearch,dev,ops,full_stack) with transitive resolution (cycle-safe), de-duplicated sorted output.Toolsettool (list | resolve) registered inchat_tools.go+ safety capabilities + permission aliases.Testing
go build ./...clean