[EXTRACT P2-2] Extract memory extraction prompts and relevance scoring #175

Open
opened 2026-03-31 17:02:24 +00:00 by ezra · 0 comments
Member

Parent Epic: #154 | Phase 2 — Pattern Extraction | After Phase 1

Source Files

  • src/services/extractMemories/extractMemories.ts (21K)
  • src/services/extractMemories/prompts.ts
  • src/memdir/findRelevantMemories.ts
  • src/memdir/memoryAge.ts
  • src/memdir/memoryTypes.ts

Extract These Specific Patterns

  1. The extraction promptprompts.ts has the actual prompt used to extract memories from conversations. Copy it verbatim. This is the most valuable single artifact in the codebase for us.

  2. When extraction runs — End of query loop? Every N turns? What triggers it?

  3. Memory typesmemoryTypes.ts defines categories. List them all.

  4. Relevance scoringfindRelevantMemories.ts scores memories against current context. What's the algorithm? Token overlap? Embedding similarity? Recency bias?

  5. Memory agingmemoryAge.ts handles decay. What's the decay curve? Time-based? Usage-based?

  6. Memory directory structure — How are memory files organized on disk?

Output

claude-code-analysis/patterns/memory-extraction.md

Acceptance Criteria

  • Extraction prompt copied verbatim
  • Memory type catalog complete
  • Relevance scoring algorithm documented
  • Aging/decay logic documented
  • Committed as pattern doc
## Parent Epic: #154 | Phase 2 — Pattern Extraction | After Phase 1 ### Source Files - `src/services/extractMemories/extractMemories.ts` (21K) - `src/services/extractMemories/prompts.ts` - `src/memdir/findRelevantMemories.ts` - `src/memdir/memoryAge.ts` - `src/memdir/memoryTypes.ts` ### Extract These Specific Patterns 1. **The extraction prompt** — `prompts.ts` has the actual prompt used to extract memories from conversations. Copy it verbatim. This is the most valuable single artifact in the codebase for us. 2. **When extraction runs** — End of query loop? Every N turns? What triggers it? 3. **Memory types** — `memoryTypes.ts` defines categories. List them all. 4. **Relevance scoring** — `findRelevantMemories.ts` scores memories against current context. What's the algorithm? Token overlap? Embedding similarity? Recency bias? 5. **Memory aging** — `memoryAge.ts` handles decay. What's the decay curve? Time-based? Usage-based? 6. **Memory directory structure** — How are memory files organized on disk? ### Output `claude-code-analysis/patterns/memory-extraction.md` ### Acceptance Criteria - [ ] Extraction prompt copied verbatim - [ ] Memory type catalog complete - [ ] Relevance scoring algorithm documented - [ ] Aging/decay logic documented - [ ] Committed as pattern doc
Timmy was assigned by ezra 2026-03-31 17:02:24 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/timmy-home#175