How mahammadaslam9/devmemory-ai works
DevMemory AI is a developer assistant for persistent project and developer context. A user chats or searches remembered context in the React interface; the backend recalls relevant Hindsight memories, uses Groq to answer, and distills and deduplicates new facts before retaining them. The documented direct retain and recall APIs are also represented. The main chat handler and duplicate-check logic are visible in backend/src/index.ts; subsystem links not directly evidenced by sampled source are omitted.
Main entry points: index.ts Chat orchestration · hindsight.ts Hindsight client adapter · App.tsx Chat and search UI · groq.ts Answer and distillation
Components 10
Developer interface
- Chat and search UI
frontend/src/App.tsx
Backend API
- REST API routes
backend/src/index.ts - Chat orchestration
backend/src/index.ts - Memory API
backend/src/index.ts - Duplicate screening
backend/src/index.ts
AI reasoning
- Answer and distillation
backend/src/services/groq.ts
Persistent memory
- Hindsight client adapter
backend/src/services/hindsight.ts
Other components
- Developer
- Groq LLM
- Hindsight memory bank
Connections 15
- Developer → Chat and search UI: asks or searches
- Chat and search UI → REST API routes: sends API requests
- REST API routes → Chat orchestration: dispatches chat
- REST API routes → Memory API: dispatches memory requests
- Chat orchestration → Hindsight client adapter: recalls context
- Hindsight client adapter → Hindsight memory bank: recalls or retains
- Chat orchestration → Answer and distillation: requests answer
- Answer and distillation → Groq LLM: generates and distills
- Chat orchestration → Answer and distillation: requests memory summary
- Chat orchestration → Duplicate screening: checks candidate
- Duplicate screening → Hindsight client adapter: recalls possible duplicates
- Chat orchestration → Hindsight client adapter: retains nonduplicate
- Memory API → Hindsight client adapter: retains or recalls
- Chat orchestration → Chat and search UI: returns answer and memories
- Memory API → Chat and search UI: returns memory results