warren-githut/personal-os-automation/compress-memory

Claude Code and agent skill by warren-githut/personal-os-automation

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Memory distillation — archive MEMORY.md, read raw log, consolidate lessons, propose edits, reconcile ontology. Paths from SOUL.md §Quick Reference. Manual trigger by Warren.

Install

npx vskill@latest install warren-githut/personal-os-automation/compress-memory

SKILL.md

The same SKILL.md was published earlier as warren-githut/personal-os-automation/compress-memory.

/compress-memory — Memory Distillation Protocol (Profile-Agnostic)

Purpose: Bridge between raw lesson log and the reference MEMORY.md file.
Paths: All file paths are defined in SOUL.md §Quick Reference (MEMORY_PATH, VAULT_ROOT, etc.).
Warren runs this manually. Hermes does NOT auto-run it.

Memory file map

Paths from SOUL.md §Quick Reference. Replace placeholders below:

KeyPath (from §Quick Reference)RoleWrite policy
MEMORY_PATHSee SOUL.mdReference — read each sessionONLY written after /compress-memory + approve
RAW_MEMORY_PATH(removed — raw log abolished 2026-08-30)Raw log — N/AN/A
USER_PATHSee SOUL.md memories/USER.mdProfilePropose → approve → write
ARCHIVE_DIR{VAULT_ROOT}/_archives/memory/Backup — old MEMORY before compressAuto during step 1

SSOT: MEMORY_PATH is read directly each session — no external sync copy.


Write governance (hard rule)

Hermes does NOT auto-write MEMORY.md or USER.md. Every proposed write passes 2 gates:

#GateIf NO →
1Will this still be true & useful in 7 days?SKIP
2Durable fact (preference/decision/config/lesson) or task artifact?If artifact → SKIP

WRITE only when:

  1. Direct command — "lưu", "nhớ giùm", "ghi vào memory" → execute immediately.
  2. (removed — raw log abolished)
  3. USER.md update — new preference detected → propose → approve → write.
  4. `/compress-memory` — distills raw → proposes MEMORY.md edits → approve → WRITE.
USER.md upkeep (event-triggered, NOT weekly cron)
  • SSOT: vault USER.md (canonical). Mirror at profile's memories/USER.md for built-in layer.
  • Khi update: chỉ khi có preference/identity MỚI (sự kiện, không lịch).
  • Tại `/compress-memory`: step 3 PHẢI scan raw/new prefs cho profile-level changes → nếu có, propose USER.md update.
  • Không đặt cron update — nội dung ít biến động.
Built-in memory & skill consent gate
  • Built-in `memory` tool = propose-only. Hermes KHÔNG auto-write. Flow: phát hiện durable fact → ADVISE → Bố duyệt → mới ghi.
  • `/compress-memory` output → vault ONLY. Chỉ ghi MEMORY.md (SSOT). KHÔNG sync/ghi đè built-in MEMORY.md.
  • Skills: vẫn do Bố duyệt (Skill Archive Gate).
  • Hermes never self-approves.
Vault file style (Warren conventions)
  • Concise + bullets: max 3–5 bullets per topic, no long prose. Chat style = vault style.
  • Tech-hide 🚨: Warren is non-IT. JSON / Python / code / config / schema in vault .md MUST be hidden by default (HTML comment <!-- --> or non-rendered block).

Raw log format ({profile}_memory_raw.md)

Single file, prepend newest entry at top:

## 2026-06-28
- [Preferences] Warren muốn conclusion-first
- [Corrections] Lần X: suggest sai Y → học được Z
## 2026-06-27
- [Patterns] Warren hay quên check X → Hermes chủ động
- [Lessons Learned] CR >30% khi upsell → cần auto-calc
  • Section tags: [Preferences] / [Corrections] / [Patterns] / [Lessons Learned]
  • Each entry 1–2 lines, Tiếng Việt (có dấu)
  • Prepend newest on top; never overwrite/edit old entries

Proposal on Git Commit

When Warren git commits, Hermes checks for new lessons:

  • What worked? → propose Patterns or Lessons Learned
  • What failed? → propose Corrections or Lessons Learned
  • New Warren preference? → propose Preferences (to raw) or USER.md

Protocol (9 steps)

  1. Archive → copy MEMORY.md → {ARCHIVE_DIR}/MEMORY_YYYY-MM-DD.md
  2. Read → read raw log + current MEMORY.md
  3. Consolidate → merge raw lessons into rules, dedup, sharpen. Goal: fewer, better rules.
  4. Stale-Scan → sau Consolidate, quét MEMORY.md từng entry: entry nào không có reference thực tế (search_files vault) VÀ last_updated >30 ngày → đưa vào mục "🔶 STALE" trong Propose. Chỉ flag, KHÔNG tự xóa.
  5. Propose → show Warren the draft (gồm STALE nếu có)
  6. Apply → Warren OK → overwrite MEMORY.md (path từ §Quick Reference MEMORY_PATH)
  7. Clean raw → clear raw log (or archive to _archives/memory/raw/)
  8. Ontology reconcile → scan vault type: frontmatter vs ontology → diff → propose updates
  9. Sync → MEMORY.md is read directly by Hermes each session. No external sync copy.
  10. Report — summary of X entries → Y rules, ontology reconciled, MEMORY.md updated.

Boundaries

AlwaysAsk FirstNever
Archive + propose + show diffOverwrite MEMORY.mdAuto-apply without Warren OK
Conclusion-first reportDelete old archiveModify production data
Cite source of each rule
Flag stale entries (step 4)Auto-delete stale WITHOUT Warren OK

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/warren-githut/personal-os-automation/compress-memory/badge)](https://verified-skill.com/skills/warren-githut/personal-os-automation/compress-memory)

Something wrong with this skill or its page? Tell us.