Class SkillCurator
java.lang.Object
io.agentscope.harness.agent.skill.curator.SkillCurator
Background skill maintenance orchestrator. Mirrors hermes-agent's
agent/curator.py
lifecycle:
- Pure-function
applyAutomaticTransitions: walk every agent-tracked skill, transitionACTIVE → STALE → ARCHIVEDbased on the latest activity timestamp from the sidecar. Pinned + DRAFT skills are skipped. - LLM umbrella pass: produces a markdown report of consolidation candidates;
in
DRY_RUN_ONLYmode (default) it does not callskill_manage, just writes the report. Live consolidation (actually invokingskill_manage) is not implemented yet.
Strict invariants:
- Only touches sidecar entries with
createdBy != null(agent-authored skills). - Pinned skills bypass every auto-transition.
- Never deletes — only archives.
DRAFTstate is owned by the promotion gate, not the curator.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final record -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSkillCurator(AbstractFilesystem filesystem, SkillUsageStore usageStore, WorkspaceSkillRepository mainRepo, SkillCuratorConfig config) SkillCurator(AbstractFilesystem filesystem, SkillUsageStore usageStore, WorkspaceSkillRepository mainRepo, SkillCuratorConfig config, PeriodicGate periodicGate) -
Method Summary
Modifier and TypeMethodDescriptionconfig()booleanisPaused()Run a full curator pass: phase-1 transitions + phase-2 (dry-run) report.Generate a human-readable markdown report listing every agent-created skill grouped by common name prefix.voidsaveState(SkillCuratorState state) voidsetPaused(boolean paused) booleanshouldRunNow(Instant now) Interval + periodic-gate.
-
Field Details
-
STATE_PATH
- See Also:
-
REPORTS_DIR
- See Also:
-
-
Constructor Details
-
SkillCurator
public SkillCurator(AbstractFilesystem filesystem, SkillUsageStore usageStore, WorkspaceSkillRepository mainRepo, SkillCuratorConfig config) -
SkillCurator
public SkillCurator(AbstractFilesystem filesystem, SkillUsageStore usageStore, WorkspaceSkillRepository mainRepo, SkillCuratorConfig config, PeriodicGate periodicGate)
-
-
Method Details
-
config
-
loadState
-
saveState
-
isPaused
public boolean isPaused() -
setPaused
public void setPaused(boolean paused) -
shouldRunNow
Interval + periodic-gate. Returns true iff the curator should fire now: enabled, not paused,last_run_atolder thanintervalHours, and the injectedPeriodicGategrants the claim. First-run behaviour seedslast_run_atwithout firing — a fresh deployment doesn't get LLM'd until at least one interval has elapsed. -
applyAutomaticTransitions
-
runUmbrellaDryRunReport
Generate a human-readable markdown report listing every agent-created skill grouped by common name prefix. This is a stub for the LLM-powered umbrella consolidation pass: the prompt + LLM call require an auxiliary model and are deferred to a future version. InDRY_RUN_ONLYmode this method writes a report toskills/.curator_reports/<ts>/REPORT.md; inDISABLEDmode it returnsnullwithout writing.- Returns:
- path of the report relative to the workspace, or
nullwhen disabled
-
runOnce
Run a full curator pass: phase-1 transitions + phase-2 (dry-run) report.
-