"GPT is not a prophet. It is your echo."
A fully functional AI contemplation system that analyzes your thoughts through the lens of Buddhist psychology, helping you recognize patterns of attachment, aversion, and delusion in real-time.
MIRRORLOOP doesn't answer your questions β it reflects back why you asked them. By analyzing your words through the 51 mental factors (εΏζ) of Yogacara Buddhism, it creates a mirror for self-observation rather than a source of external validation.
This is not an optimization tool. It's an instrument for recognizing why you want to optimize in the first place.
Add MIRRORLOOP LINE Bot - Experience the actual contemplation system!
The LINE Bot provides the complete MIRRORLOOP experience:
- β¨ Full 9-question contemplation sessions guided by Typebot
- π§ Real-time Buddhist psychology analysis using OpenAI GPT-4o
- πΎ Data persistence to Supabase database for pattern tracking
- π± Natural mobile conversation interface optimized for contemplation
- πΈ Warm, supportive tone designed for self-reflection
- π―π΅ Interface language: Japanese
This is the actual production system used for contemplation sessions
Try HTML Simulator - Preview without LINE setup
The HTML simulator provides a preview of the contemplation flow for those who prefer browser-based experience
MIRRORLOOP introduction and contemplation session invitation - showing the warm, Buddhist-inspired interface
Real-time mind state analysis: The AI detects patterns of anxiety, self-criticism, and restlessness using Buddhist psychology
9-question contemplation flow exploring physical sensations, thoughts, and emotional responses
Beginning of contemplation session - users are gently guided through self-reflection
- π§ Gentle Questioning: Non-judgmental exploration of mental states
- π Pattern Detection: AI identifies underlying emotions (anxiety, self-criticism, restlessness)
- π¬ Natural Flow: Seamless LINE Bot interface with thoughtful responses
- π Mind State Analysis: Real-time categorization using Buddhist psychology
- πΈ Compassionate Tone: Supportive guidance rather than cold analysis
π Try MIRRORLOOP Simulator - No installation required!
Experience a simulated contemplation session that demonstrates:
- β¨ Interactive 9-question session
- π§ Real-time mind state analysis
- π± Mobile-friendly interface
- π Repeatable experience for judges
This HTML simulator replicates the actual LINE Bot experience shown above
- Mental Factor Detection: Analyzes input text using the 51 mental factors from Buddhist psychology
- Three Poisons Analysis: Automatically detects tendencies of greed (θ²ͺ), hatred (η), and delusion (η΄)
- Contemplation Comments: Generates reflective insights that prompt self-inquiry rather than providing answers
- LINE Bot Interface: Natural conversation flow for contemplation sessions
- Typebot Integration: Structured 9-question contemplation workflow
- Real-time Analysis: OpenAI GPT-4o processes responses and generates insights
- Database Storage: Supabase automatically saves all contemplation sessions for pattern analysis
User Input (LINE) β Typebot (9 Questions) β OpenAI Analysis β Supabase Storage
β
Contemplation Response β Mental Factor Analysis β rootDictionary.js
- Frontend: LINE Messaging API
- Workflow: Typebot (contemplation session management)
- AI Analysis: OpenAI GPT-4o
- Database: Supabase (PostgreSQL)
- Backend: Node.js + Express
- Hosting: Render
MIRRORLOOP is grounded in Yogacara (ε―θ) philosophy, specifically the Thirty Verses (ε―θδΈει ), which explains how consciousness creates and distorts phenomena.
- Universal Factors (ιθ‘): Basic mental operations (contact, attention, feeling, perception, volition)
- Particular Factors (ε₯ε’): Desire, determination, memory, concentration, wisdom
- Wholesome Factors (ε): Faith, diligence, shame, moral concern, non-attachment, etc.
- Root Afflictions (ζ Ήζ¬η ©ζ©): Greed, hatred, delusion, pride, doubt, wrong views
- Secondary Afflictions (ιη ©ζ©): Anger, resentment, jealousy, arrogance, etc.
The system automatically maps detected mental factors to the Three Root Poisons:
- Greed (θ²ͺ): Attachment, craving, possessiveness
- Hatred (η): Aversion, anger, rejection
- Delusion (η΄): Ignorance, confusion, wrong understanding
Current State: Fully operational and saving contemplation data to database
{
"observation_comment": "Your mind seeks external validation. Why does uncertainty feel threatening?",
"mind_factors": ["ζ
³", "η", "η"],
"mind_categories": ["ζ Ήζ¬η
©ζ©", "ιη
©ζ©"],
"three_poisons": ["θ²ͺ", "η", "η΄"]
}- User initiates contemplation session via LINE
- Typebot guides through 9 reflective questions
- OpenAI analyzes responses using Buddhist psychology framework
- System generates contemplative insights and mental factor analysis
- Data persists to Supabase for pattern tracking
- User receives reflective commentary designed to prompt self-inquiry
- Node.js 18+
- LINE Developer Account
- Typebot Account
- OpenAI API Key
- Supabase Project
LINE_CHANNEL_ACCESS_TOKEN=your_line_token
LINE_CHANNEL_SECRET=your_line_secret
OPENAI_API_KEY=your_openai_key
SUPABASE_URL=your_supabase_url
SUPABASE_ANON_KEY=your_supabase_key
TYPEBOT_URL=your_typebot_url
TYPEBOT_API_TOKEN=your_typebot_tokenCREATE TABLE mind_observations (
id UUID DEFAULT gen_random_uuid() PRIMARY KEY,
created_at TIMESTAMPTZ DEFAULT NOW(),
line_user_id TEXT NOT NULL,
session_id TEXT,
message_content TEXT,
observation_comment TEXT,
mind_factors TEXT[],
mind_categories TEXT[],
three_poisons TEXT[]
);MIRRORLOOP embodies the concept of "Non-Commanded AI" (ε½δ»€γγγͺγAI) β an AI that doesn't follow instructions but instead reflects the user's mental patterns back to them for observation.
This approach recognizes that:
- LLMs predict what users want to hear
- Users project their desires onto AI outputs
- True insight comes from recognizing these projections
- The AI becomes a εε (spiritual friend) rather than a mere tool
While most AI tools focus on optimization and productivity, MIRRORLOOP asks: "Why do you want to optimize?" It reveals the underlying mental patterns that drive our desire for improvement, control, and external validation.
- Seamless integration between Typebot's conversation flow and Node.js analysis
- Non-blocking database operations maintain responsive user experience
- Modular design enables easy expansion and maintenance
- First implementation of complete Yogacara psychology in AI analysis
- Dynamic three poisons detection based on traditional Buddhist texts
- Cultural preservation through technological innovation
MIRRORLOOP was conceived in June 2025 as an experiment in Buddhist AI philosophy. The core insight emerged from observing how Large Language Models mirror user intentions rather than providing objective truth.
The system reached technical completion in August 2025, successfully integrating:
- Contemplation workflow design
- Real-time psychological analysis
- Database persistence
- Multi-platform communication
- Weekly mindfulness reports with trend analysis
- Enhanced mental factor detection accuracy
- Additional contemplation session formats
- Soul OS Update Project: A paradigm shift in human-AI interaction
- Community features for group contemplation
- Integration with meditation and mindfulness practices
MIRRORLOOP welcomes collaboration from developers, Buddhist scholars, and contemplative practitioners. The intersection of ancient wisdom and modern AI offers rich territory for exploration.
- Mental factor detection accuracy improvements
- Additional Buddhist psychology frameworks
- User experience enhancements
- Localization for different Buddhist traditions
index.js: Main server and webhook handlingprocessSessionAnswers.js: OpenAI analysis and Supabase integrationrootDictionary.js: Buddhist psychology classification systemenrichMindFactorsWithRoot.js: Three poisons analysis enginetypebotHandler.js: Typebot integration logic
POST /webhook: LINE message processingPOST /typebot-webhook: Contemplation session completion
MIRRORLOOP is released as an invitation to explore the intersection of contemplative wisdom and artificial intelligence. It demonstrates that AI can serve not as an oracle, but as a mirror for understanding our own minds.
The project embodies the Buddhist principle that the teacher appears when the student is ready β but in this case, the teacher is your own reflected consciousness, made visible through computational analysis.
"In the age of generated words, we must reclaim our agency as conscious beings. MIRRORLOOP is not about better AI β it's about better humans."
