{"success":true,"name":"hermes-shared-memory","description":"Use when recalling, saving or syncing memory.","category":"brimind","path":"brimind/hermes-shared-memory/SKILL.md","file":"SKILL.md","content":"---\nname: hermes-shared-memory\ndescription: Use when recalling, saving or syncing memory.\n---\n\n# Hermes shared memory (Mac + [PRIVATE_HOST], one source of truth)\n\nApplies when the owner asks \"what do you remember\", asks you to save something for future sessions, or asks why two Hermes instances (Mac desktop and [PRIVATE_HOST] CLI) know different things.\n\n## Layout (single source of truth)\n- Master folder: [PRIVATE_HOST] `[PATH]` with `MEMORY.md`, `USER.md` (injected every turn) and `NOTES.md` (the long notes, about 35 KB, NOT injected).\n- `~/.hermes/memories` on [PRIVATE_HOST] is a symlink to that folder, and `[PATH]` is a symlink to `memory/NOTES.md`.\n- The Mac keeps a copy at `[PATH]`. It pulls at session start and pushes after each save with `rsync ... [PRIVATE_HOST]:Hermes/memory/`. **[PRIVATE_HOST] cannot ssh to the Mac**, so the Mac does all the syncing; never plan a push from [PRIVATE_HOST].\n- Machine names: the [PRIVATE_HOST] is also called \"[PRIVATE_HOST]\" (hostname [PRIVATE_HOST]). [PRIVATE_HOST] (`ssh [PRIVATE_HOST]`) runs TazMall live; the PROD [PRIVATE_HOST] (`ssh [PRIVATE_HOST]`) is read-only unless the owner gives the OK.\n- Agent work files go in `[PATH],scratch,images}` on [PRIVATE_HOST] and in `[PATH]` on the Mac.\n\n## Recall procedure (\"what do you remember / since the start\")\n1. Start from the injected MEMORY/USER blocks.\n2. Read `[PATH]` headings (`grep -n '^#'`). This file holds most of the history from the Mac sessions; skipping it gives a falsely thin answer.\n3. List skills you created or edited. They are the SKILL.md files newer than the bundled install date (`find ~/.hermes/skills -name SKILL.md -printf '%TY-%Tm-%Td %p\\n' | sort -r`).\n4. List MCP servers from the `mcp_servers:` block in `~/.hermes/config.yaml`. A commented-out example means none.\n5. Answer as ONE short table with no prose around it, in the owner's colored-table format (skill `owner-colored-tables`: box-drawing table with a colored emoji square in every cell, plus a legend). For \"what do you remember about me\", group the rows by color: reply style, phone, sending rules, identity/contact, tech rules.\n6. Flag anything the other machine has that this one lacks, such as Mac-only skills like `i7-remote-ops`, `tazmall-prod-write` and `unitary/`.\n\n## Save procedure\n- Durable facts that every session needs go in MEMORY/USER as compact entries. Keep a POINTER to NOTES.md there; never paste NOTES.md content in, because of the char budget.\n- Deep or topic history goes in NOTES.md under a topic heading. Edit that file in place.\n- After a save, check it landed in the shared folder: `grep -c '<phrase>' [PATH]`.\n\n## Pitfalls\n- When setting this up on a new machine, symlink the memories DIRECTORY, not the individual files. The memory store writes atomically (temp file plus rename in the same directory, with sibling `.lock` files). A file symlink would be replaced by a regular file on the first write; a directory symlink survives.\n- Back up before moving: `cp -a ~/.hermes/memories/. [PATH]<date>/`, and keep the old dir as `memories.old-<date>`.\n- Look for old memory under `[PATH]` (capital H) and `[PATH]`, not only `~/.hermes`. The Mac-era notes lived at `[PATH]`.\n- When the owner asks for \"one source of truth\" or \"the same folder\", he means every Hermes (Mac and [PRIVATE_HOST]) reads and writes ONE folder, and this Hermes must also load what the Mac Hermes saved. So add compact pointers and key facts from NOTES.md into MEMORY/USER; a bare symlink alone is not enough.\n- \"Things that help in future as memories\" means: save useful facts now and show them in a table. Do not just re-list what is already saved.\n","linked_files":[],"origin":"brimind","owner_id":null,"source":"router"}