memory-tiering
When saving/pruning memory, tier facts by relevance.
- License 许可
- MIT
- 最近更新
- 2026-11-12
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- memory-tiering
- tags
- [ "memory", "context", "tiering", "agentic-behavior", "fleet" ]
- author
- Gentech
- license
- MIT
- version
- 1.0.0
- description
- When saving/pruning memory, tier facts by relevance.
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md366 B
- 参考文档TRUST.auto.yaml2.2 KB
03 SKILL.md 正文
Memory Tiering — Intelligence for Intelligence
Jordan's model (Aug 20, 2026): an agent's always-loaded memory (MEMORY.md / USER.md) should NOT be a dump. It should be a curated index of the facts we touch every session, with everything else parked in the vault brain where it's one search away.
When to Use
- Before saving a NEW durable fact to persistent memory.
- When pruning / consolidating MEMORY.md or USER.md (including via the fleet dietician).
- When you notice a memory file approaching the 85% threshold.
- When a fact becomes RESOLVED and you decide whether to keep it loaded.
Two tiers:
- Always-loaded (MEMORY.md / USER.md) — facts referenced EVERY session. Identity, rails, wallet, rules, standing strategy. Lean, high-signal.
- Vault brain (retrievable) — facts referenced less often, or RESOLVED. Not lost, just parked. Pull back via session_search / search_files when the topic resurfaces.
Why (the intelligence part)
- Every session reads the memory file. Bloat = slower, more tokens, worse focus.
- More memory = worse performance (proven Jul 28, 2026: elaborate memory stack deleted → agent worked dramatically better).
- Trimming from the BACK (oldest-first) is dumb — an old high-frequency fact gets archived while a recent resolved worry stays loaded. Tier by relevance, not age.
Tiering rules
ALWAYS-LOADED (keep in MEMORY.md/USER.md)
- Identity: who the agent is, personality, speech, the boss.
- Core rails/keys: payment rails, wallets, canonical repos, the strategy that shapes every decision.
- Standing rules/red lines: "never fake receipts," "spend less," "flag blockers immediately," "build first talk later."
- Recurring topics (per Jordan Aug 20): agentic treasury, x402, AWS, APIs.
- Active commitments with near deadlines.
ARCHIVES TO VAULT BRAIN (low-frequency / resolved)
- Resolved worries: problem solved, deadline passed, task done. Compress or archive.
- One-off events: a single completed hackathon/hire/date.
- Task progress / session logs: go to the brain (Green Room / Mess Hall / handoffs), NOT persistent memory.
- Any fact not touched in many sessions and not needed for the standing model.
How to apply (standing agentic behavior — every save)
- Before adding memory, ask: "needed EVERY session, or only when this topic comes up?" Only-on-topic → save to the Vault instead.
- When a fact is RESOLVED: compress to a one-liner or archive — don't keep the full narrative loaded.
- At ~85% threshold: consolidate in ONE atomic batch (remove stale + add new), never cram.
- Fleet dietician (memory-dietician.py) tiers by relevance, not back-of-file.
- When a topic resurfaces, pull the archived entry back from the vault and re-load it if it's now a standing fact.
Pitfalls
- Don't archive on a whim — if referenced across sessions, keep it.
- Don't keep resolved worries loaded "just in case" — archive them; the vault has room.
- The vault brain has room — that's its purpose. Overflow belongs there.
- This is a STANDING behavior, applied on every save, not a one-time cleanup.
04 同仓库更多 Skills
recipe-performance
Diagnose a specific MetaMask user flow's real-app performance and Sentry critical-user-flow telemetry with deterministic mm-harness recipes. Use for CUF boundaries, cold/warm/background-resume behavior, latency regressions, lifecycle tags, duplicate or blocking network requests, long tasks, layout/paint cost, screen redraws, React rerenders, or browser trace analysis where tests alone cannot prove the real app.
mexc-spot-websocket
MEXC Spot WebSocket workflows for public streams, protobuf handling, depth maintenance, listen keys, and private streams without exposing API keys.
mexc-spot-rest
MEXC Spot REST workflows for public data, signed account requests, orders, wallet/admin actions, and secure signing without exposing API keys.
mexc-futures-websocket
MEXC Futures WebSocket workflows for public streams, private account/order/position streams, ping/pong, subscriptions, and depth maintenance.
0xklen-version-and-refresh-sanctions-lists
暂无简介
verify-tests-cover-changed-lines
Use when a PR adds code that the existing suite may not exercise. Measures patch coverage — the share of newly changed lines hit by tests — before approving.