How crosleythomas/mirrorgpt works
MirrorGPT builds a personalized conversational agent from a subject’s data: sources are extracted, transformed into facts, loaded for retrieval, and queried during a chat session. The runtime also offers optional Gather JSON and human-input tools, plus voice input/output and voice cloning. Interview-based teaching is a documented capability but remains unimplemented: its entrypoint raises NotImplementedError and the agent is only a stub. ETL flow is documented in the README; some storage and integration details are therefore shown only where supported.
Main entry points: ChatConversationalWithTools.py Tool-enabled agent · run_mirror.py Chat entrypoint · extract.py Extract sources · transform.py Transform facts
Components 17
Profile Data Preparation
- Extract sources
mirror/data/extract/extract.py - Transform facts
mirror/data/transform/transform.py - Load profile data
mirror/data/load/load.py - Profile datastore
mirror/data
Mirror Conversation
- Chat entrypoint
mirror/entrypoints/run_mirror.py - Agent selector
mirror/mirror_agent/agent.py - Tool-enabled agent
mirror/mirror_agent/agents/ChatConversationalWithTools.py - Conversation parser
mirror/utils/parsers/CustomConvoParser.py - Gather JSON data
mirror/mirror_agent/agents/ChatConversationalWithTools.py
Voice Personalization
- Speech transcription
mirror/voice/utils.py - Speech synthesis
mirror/voice/utils.py - Voice clone setup
mirror/voice/create_voice.py
Interview Teaching
- Teaching entrypoint
mirror/entrypoints/teach_mirror.py - Interview agent stub
mirror/interview_agent/agent.py
Other components
- Human subject
- Human subject
- ElevenLabs
Connections 17
- Human subject → Extract sources: provides data
README.md - Extract sources → Transform facts: extracts text for
README.md - Transform facts → Load profile data: produces facts for
README.md - Load profile data → Profile datastore: loads data into
README.md - Chat entrypoint → Agent selector: loads agent
mirror/entrypoints/run_mirror.py - Agent selector → Tool-enabled agent: selects architecture
mirror/mirror_agent/agent.py - Chat entrypoint → Tool-enabled agent: sends conversation input
mirror/entrypoints/run_mirror.py - Tool-enabled agent → Conversation parser: uses parser
mirror/mirror_agent/agents/ChatConversationalWithTools.py - Tool-enabled agent → Profile datastore: retrieves profile facts
README.md - Tool-enabled agent → Gather JSON data: reads JSON data
mirror/mirror_agent/agents/ChatConversationalWithTools.py - Tool-enabled agent → Human subject: can ask
mirror/mirror_agent/agents/ChatConversationalWithTools.py - Chat entrypoint → Speech transcription: transcribes input
mirror/entrypoints/run_mirror.py - Chat entrypoint → Speech synthesis: synthesizes reply
mirror/entrypoints/run_mirror.py - Speech synthesis → ElevenLabs: requests speech
mirror/voice/utils.py - Voice clone setup → ElevenLabs: uploads sample
mirror/voice/create_voice.py - Human subject → Voice clone setup: provides recording
README.md - Teaching entrypoint → Interview agent stub: intended to start
mirror/entrypoints/teach_mirror.py