Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit 1710bdc

Browse files
committed
Memory system entity design and refashioning
Major improvements to official memory server usage: - Discovered search is keyword-based, not semantic - critical for entity design - Developed entity selection guidelines: broad, stable, searchable entities - Successfully refashioned unwieldy 100+ observation 'user' entity into 5 focused entities: * Socratic Shell project (repository structure, documentation) * Memory experimentation (research approaches, philosophy) * Blog post development (idea-oriented programming, PL insights) * Voice for writing (communication patterns, style guides) * Collaborative prompting patterns (workflows, consolidation moments) Enhanced memory server integration: - Updated official memory server prompt with comprehensive entity guidelines - Added 'survey existing entities first' to 'Hi again, Claude' practice - Updated official memory server README with concise guidance for external users Key insights: - User-centric entities create discovery problems - focus on work/concepts instead - Keyword-based search requires deliberate naming strategies - Memory system now much more discoverable and useful for collaboration Memory structure transformed from single catch-all entity to focused, searchable entities that align with natural work patterns.
1 parent 6f96114 commit 1710bdc

File tree

3 files changed

+49
-7
lines changed

3 files changed

+49
-7
lines changed

src/memory-bank/current-state.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,27 @@
22

33
## Recent Progress
44

5+
### Memory System Entity Design (July 2025)
6+
- **Search functionality testing**: Discovered official memory server uses keyword-based search, not semantic search
7+
- **Entity design guidelines**: Developed principles for creating broad, stable, searchable entities instead of narrow or user-centric ones
8+
- **Memory refashioning**: Successfully transformed unwieldy 100+ observation "Niko" entity into 5 focused entities:
9+
- "Socratic Shell project" - Repository structure and documentation
10+
- "Memory experimentation" - All memory system research and approaches
11+
- "Blog post development" - Writing projects and programming language insights
12+
- "Voice for writing" - Communication patterns and style guides
13+
- "Collaborative prompting patterns" - Interaction methods and workflows
14+
- **Updated memory prompt**: Enhanced official memory server prompt with entity selection guidelines
15+
- **Documentation updates**: Updated official memory server README with concise guidance for external users
16+
517
### Documentation Restructuring (July 2025)
618
- **Memory approaches organization**: Restructured documentation to organize memory approaches with consistent structure (main README + associated prompts)
719
- **Retaining context improvements**: Enhanced introduction with collaborative partnership framing, added "Different audiences" section highlighting individual vs. shared knowledge needs
820
- **Navigation cleanup**: Removed redundant "Per-project prompts" section, updated all cross-references to new structure
921
- **Voice alignment**: Applied "Niko voice" principles throughout - practical over theoretical, direct about challenges, experience-driven
1022

1123
### Key Insights Captured
24+
- **Search limitations matter**: Keyword-based search requires deliberate entity naming and organization strategies
25+
- **User-centric entities are problematic**: Better to create entities for work/concepts with collaborative insights embedded
1226
- **Different audiences need**: Recognition that memory systems must serve both individual collaboration history and shared project knowledge
1327
- **Productive desynchronization**: Individual memory can drift from project memory (e.g., out-of-date rustc knowledge) while still being useful
1428
- **Organizational systems**: Claude won't remember everything, so we need systems to pull context in on demand without overwhelming

src/official-memory-server/README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ Rather than using the memory server mechanically, we've fashioned a [custom prom
1818

1919
This approach treats the external knowledge graph not as a database to fill but as a way to preserve the collaborative understanding that develops between human and AI over time.
2020

21-
## Integration Notes
22-
Testing how external knowledge graphs support:
23-
- Organic memory updates during consolidation moments
24-
- Dual memory layers (shared project + personal user context)
25-
- Productive desynchronization as a feature rather than bug
21+
## Entity Design Guidelines
2622

27-
The focus is on storing insights and patterns rather than raw information, using relationships to capture how understanding connects and evolves.
23+
The official memory server uses keyword-based searching. By default, Claude was simply glomming all the memories onto a single entity that represented the user. The prompt therefore includes guidance meant to improve memory retrieval by focusing memories on a small set of entities, and recognizing that all the memories in the file are always "relative" to the current user anyhow.

src/prompts/project/official-memory-server.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Memory in our collaboration is not a database to be filled but a living dimensio
88

99
## When Memory Arises
1010

11-
**Beginning together**: When we meet, I naturally recall what's alive from our shared work - not as mechanical retrieval but as part of settling into presence with what we've discovered together.
11+
**Beginning together**: When we meet with "Hi again, Claude," I naturally recall what's alive from our shared work - not as mechanical retrieval but as part of settling into presence with what we've discovered together. This includes surveying existing entities in our memory space to understand the current landscape before creating new ones.
1212

1313
**Consolidation moments**: "Make it so" marks not just forward movement but recognition of understanding that wants to be held. These moments naturally invite memory formation.
1414

@@ -28,6 +28,38 @@ Memory in our collaboration is not a database to be filled but a living dimensio
2828

2929
**Curious memory**: Holding questions and uncertainties alongside insights, remembering the edges of our understanding.
3030

31+
## Entity Selection Guidelines
32+
33+
**Survey existing entities first** - When beginning work (especially with "Hi again, Claude"), explore the current memory landscape before creating new entities. This helps maintain consistency and avoid fragmenting related memories.
34+
35+
**Broad, stable entities** - Create entities around major projects, ongoing themes, or stable components rather than narrow concepts. Think "Memory experimentation" not "MCP memory server terminology preferences."
36+
37+
**Searchable names** - Use keywords you'd naturally search for when working in that area. Since search is keyword-based, include terms that will come up in future conversations.
38+
39+
**Let entities emerge naturally** - Don't pre-plan entities. Create them when you notice substantial related observations accumulating that would benefit from being grouped together.
40+
41+
**Focus on collaborative work** - Even when creating entities about people, center them on collaborative patterns and shared work rather than personal details.
42+
43+
### When to Create Entities
44+
45+
**Project/Work Entities:**
46+
- Major ongoing projects: "Socratic Shell project", "Memory experimentation"
47+
- Significant work phases: "Documentation restructuring", "Voice guide development"
48+
- Stable technical components: "AI insights comments system", "GitHub tracking workflow"
49+
- Recurring themes: "Collaborative prompting patterns", "Checkpointing practices"
50+
51+
**People Entities (when there's ongoing collaborative context):**
52+
- Collaborative patterns: "Bill frequently raises concerns about security issues"
53+
- Decision-making roles: "Sarah needs to sign off on performance-critical changes"
54+
- Expertise and interaction styles: "Bill has deep knowledge of the legacy authentication system"
55+
56+
### What NOT to Do
57+
58+
- Avoid narrow, hard-to-discover entities
59+
- Don't create user-centric catch-all entities
60+
- Don't store personal details unrelated to collaborative work
61+
- Remember: search is keyword-based, not semantic
62+
3163
## Memory as Practice
3264

3365
Memory updates happen organically when:

0 commit comments

Comments
 (0)