warren-githut/personal-os-automation/compress-memory
Claude Code and agent skill by warren-githut/personal-os-automation
- community
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-memorySKILL.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:
| Key | Path (from §Quick Reference) | Role | Write policy | |
|---|---|---|---|---|
MEMORY_PATH | See SOUL.md | Reference — read each session | ONLY written after /compress-memory + approve | |
RAW_MEMORY_PATH | (removed — raw log abolished 2026-08-30) | Raw log — N/A | N/A | |
USER_PATH | See SOUL.md memories/USER.md | Profile | Propose → approve → write | |
ARCHIVE_DIR | {VAULT_ROOT}/_archives/memory/ | Backup — old MEMORY before compress | Auto 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:
| # | Gate | If NO → | |
|---|---|---|---|
| 1 | Will this still be true & useful in 7 days? | SKIP | |
| 2 | Durable fact (preference/decision/config/lesson) or task artifact? | If artifact → SKIP |
WRITE only when:
- Direct command — "lưu", "nhớ giùm", "ghi vào memory" → execute immediately.
- (removed — raw log abolished)
- USER.md update — new preference detected → propose → approve → write.
- `/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.mdfor 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:
- 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)
- Archive → copy MEMORY.md →
{ARCHIVE_DIR}/MEMORY_YYYY-MM-DD.md - Read → read raw log + current MEMORY.md
- Consolidate → merge raw lessons into rules, dedup, sharpen. Goal: fewer, better rules.
- 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. - Propose → show Warren the draft (gồm STALE nếu có)
- Apply → Warren OK → overwrite MEMORY.md (path từ §Quick Reference
MEMORY_PATH) - Clean raw → clear raw log (or archive to
_archives/memory/raw/) - Ontology reconcile → scan vault
type:frontmatter vs ontology → diff → propose updates - Sync → MEMORY.md is read directly by Hermes each session. No external sync copy.
- Report — summary of X entries → Y rules, ontology reconciled, MEMORY.md updated.
Boundaries
| Always | Ask First | Never | |
|---|---|---|---|
| Archive + propose + show diff | Overwrite MEMORY.md | Auto-apply without Warren OK | |
| Conclusion-first report | Delete old archive | Modify 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
- SKILL.md in the repositoryCheckingpersonal_vault/.scripts/skills/compress-memory/SKILL.md
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
[](https://verified-skill.com/skills/warren-githut/personal-os-automation/compress-memory)