Phase 6: Curator — Background Skill Maintenance - #141
Merged
Conversation
Port of Hermes's agent/curator.py. Periodically reviews and maintains agent-created skills in .dirge/skills/. Features preserved from Hermes: - Automatic time-based transitions (no LLM): stale after 30d, archived after 90d of inactivity - Skill archiving via rename to .archive/ (recoverable, never delete) - Persistent scheduler state in .curator_state (JSON) - Interval gate: won't run more than once every 7 days - First-run deferral: seeds state without running - should_run_now() check for callers to gate expensive review forks - record_run() for manual curator invocations Strict invariants: - Only touches agent-created skills - Never auto-deletes — only archives - Pinned skills bypass all auto-transitions (future phase) 9 tests: state persistence, interval gating, first-run deferral, archive moves skill, empty/missing dirs handled, record runs. All 1237 tests pass.
allen-munsch
pushed a commit
to allen-munsch/dirge
that referenced
this pull request
Jun 3, 2026
Phase 6: Curator — Background Skill Maintenance
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.
Port of Hermes's agent/curator.py. Periodically reviews and maintains agent-created skills.
Features:
9 tests.