mirror of
https://github.com/boshu2/agentops.git
synced 2026-09-14 15:08:13 +08:00
7d65010131
Generated by sync-codex-native-skills.sh with modular layout. References and scripts copied as files instead of inlined. Overrides applied for 9 skills. Parity validated: 49/49.
1.1 KiB
1.1 KiB
Cache Eviction
The knowledge flywheel includes automated cache eviction to prevent unbounded growth:
Passive Read tracking → Confidence decay → Maturity scan → Archive
How it works:
- Passive tracking —
ao maturity --scanrecords when learnings are accessed - Confidence decay — Unused learnings lose confidence at 10%/week
- Composite criteria — Learnings are eviction candidates when ALL conditions met:
- Utility < 0.3 (low MemRL score)
- No citation in 90+ days
- Confidence < 0.2 (decayed from disuse)
- Not established maturity (proven knowledge is protected)
- Archive — Candidates move to
.agents/archive/learnings/(never deleted)
Commands:
ao maturity --evict— dry-run: show eviction candidatesao maturity --evict --archive— execute: archive candidatesao metrics cite-report --days 30— cache health report
Kill switches:
AGENTOPS_EVICTION_DISABLED=1— disable SessionEnd auto-evictionAGENTOPS_PRUNE_AUTO=0— disable SessionStart auto-pruning (default: off)