How shivamsharko/aftermind works
Aftermind is an iOS personal-context notetaker: users record conversations, turn transcripts into typed, evidence-backed memories, then review, explore, and ask grounded questions about those memories. Capture orchestrates recording, transcription, extraction, and local persistence; chat retrieves structured items before generating cited answers. The graph also includes demo seeding, semantic scoring, reminders, and settings. README statements and indexed references support the main links; unsampled implementation details are not expanded beyond documented capabilities.
Main entry points: CaptureView.swift Capture screen · RootView.swift Tab navigation · DemoSeedService.swift Demo seeding · DatabaseModels.swift Local memory store
Components 26
Capture and extraction
- Capture screen
Aftermind/Views/CaptureView.swift - Audio recording
Aftermind/Services/RecordingService.swift - Transcription
Aftermind/Services/TranscriptionService.swift - Memory extraction
Aftermind/Services/ContextExtractionService.swift
Memory and discovery
- Context schema
Aftermind/Models/DatabaseModels.swift - Local memory store
Aftermind/Models/DatabaseModels.swift - Memory library
Aftermind/Views/MemoryListView.swift - Memory details
Aftermind/Views/MemoryItemDetailView.swift - Relationship explorer
Aftermind/Views/ExploreView.swift - Demo seeding
Aftermind/Services/DemoSeedService.swift
Grounded chat
- Chat screen
Aftermind/Views/ChatView.swift - Chat history
Aftermind/Services/ChatHistoryService.swift - Memory retrieval
Aftermind/Services/ChatRetrievalService.swift - Semantic embeddings
Aftermind/Services/EmbeddingService.swift - Answer generation
Aftermind/Services/ChatAnswerService.swift
App and platform services
- App startup
Aftermind/App/AftermindApp.swift - Tab navigation
Aftermind/Views/RootView.swift - Groq LLM client
Aftermind/Services/LLMClient.swift - App configuration
Aftermind/Support/AppConfig.swift - Keychain storage
Aftermind/Services/KeychainHelper.swift - Local reminders
Aftermind/Services/NotificationService.swift - Reminder actions
Aftermind/Services/ReminderBridge.swift - Date parsing
Aftermind/Support/DateParsing.swift
Other components
- User
- Groq API
- iOS notifications
Connections 34
- User → Tab navigation: opens app
Aftermind/Views/RootView.swift - App startup → Tab navigation: launches
Aftermind/App/AftermindApp.swift - Tab navigation → Capture screen: shows tab
Aftermind/Views/RootView.swift - Tab navigation → Memory library: shows tab
Aftermind/Views/RootView.swift - Tab navigation → Chat screen: shows tab
Aftermind/Views/RootView.swift - Tab navigation → Relationship explorer: shows tab
Aftermind/Views/RootView.swift - User → Capture screen: starts capture
README.md - Capture screen → Audio recording: controls recording
Aftermind/Views/CaptureView.swift - Capture screen → Transcription: submits audio
README.md - Transcription → Groq API: transcribes audio
README.md - Capture screen → Memory extraction: requests structuring
README.md - Memory extraction → Groq LLM client: extracts memories
Aftermind/Services/ContextExtractionService.swift - Groq LLM client → Groq API: calls API
Aftermind/Services/LLMClient.swift - Capture screen → Local memory store: saves session
README.md - Memory extraction → Context schema: creates typed items
README.md - Memory library → Local memory store: reads and deletes
Aftermind/Views/MemoryListView.swift - Memory library → Demo seeding: loads demo data
Aftermind/Views/MemoryListView.swift - Demo seeding → Local memory store: inserts demo memories
Aftermind/Services/DemoSeedService.swift - Demo seeding → Semantic embeddings: embeds demo items
Aftermind/Services/DemoSeedService.swift - Demo seeding → Local reminders: schedules reminders
Aftermind/Services/DemoSeedService.swift - Memory library → Memory details: opens item
Aftermind/Views/MemoryListView.swift - Memory details → Reminder actions: offers reminder actions
Aftermind/Views/MemoryItemDetailView.swift - Relationship explorer → Local memory store: groups stored items
Aftermind/Views/ExploreView.swift - Chat screen → Chat history: maintains conversation
Aftermind/Views/ChatView.swift - Chat screen → Memory retrieval: requests matches
Aftermind/Views/ChatView.swift - Memory retrieval → Local memory store: fetches memories
README.md - Memory retrieval → Semantic embeddings: scores similarity
Aftermind/Services/ChatRetrievalService.swift - Memory retrieval → Answer generation: provides context
README.md - Answer generation → Groq LLM client: requests grounded answer
Aftermind/Services/ChatAnswerService.swift - Answer generation → Chat screen: returns cited answer
README.md - App configuration → Keychain storage: loads API key
Aftermind/Support/AppConfig.swift - App configuration → Local reminders: requests permission
Aftermind/Support/AppConfig.swift - Local reminders → iOS notifications: schedules alerts
Aftermind/Services/NotificationService.swift - Demo seeding → Date parsing: resolves due dates
Aftermind/Services/DemoSeedService.swift