docs: add CLAUDE.md memory + snippet reuse policy #6

Merged
jknapp merged 2 commits from docs/memory-snippet-reuse-policy into main 2026-06-18 15:45:32 +00:00
Owner

Adds a project CLAUDE.md documenting two agent workflows for this repo:

  • Memory on demand — query the shared-memory MCP (memory_search/memory_get) only when detail is needed, rather than bulk-loading (saves context). The auto-loaded MEMORY.md index is the first stop.
  • Snippet reuse — before recreating known boilerplate/templates, browse snippet_list (cheap, description-only) and fetch by exact name with snippet_get. Save new reusable artifacts via snippet_put with a stable name + a 'when to use' description so they're discoverable.

Mirrors the user-scope consult-memory-before-work shared-memory snippet (now updated to v2 with the snippet-reuse section).

🤖 Generated with Claude Code

Adds a project `CLAUDE.md` documenting two agent workflows for this repo: - **Memory on demand** — query the shared-memory MCP (`memory_search`/`memory_get`) only when detail is needed, rather than bulk-loading (saves context). The auto-loaded `MEMORY.md` index is the first stop. - **Snippet reuse** — before recreating known boilerplate/templates, browse `snippet_list` (cheap, description-only) and fetch by exact name with `snippet_get`. Save new reusable artifacts via `snippet_put` with a stable name + a 'when to use' description so they're discoverable. Mirrors the user-scope `consult-memory-before-work` shared-memory snippet (now updated to v2 with the snippet-reuse section). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
jknapp added 1 commit 2026-06-18 15:42:45 +00:00
Document the on-demand memory workflow and snippet (boilerplate/template)
reuse workflow for agents working in this repo: query shared-memory only
when detail is needed (don't bulk-load), and browse snippet_list before
recreating known boilerplate, fetching by exact name with snippet_get.

Mirrors the user-scope `consult-memory-before-work` shared-memory snippet.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
jknapp added 1 commit 2026-06-18 15:42:56 +00:00
jknapp merged commit 4c1cff160d into main 2026-06-18 15:45:32 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cybercove-labs/shared-memory#6