CogniAgent is an open-source intelligent assistant system built on the LangChain framework that integrates principles from cognitive science, behavioral science, and learning science—particularly the Fogg Behavior Model (B=MAP)—to provide personalized daily planning and learning support.
CogniAgent是一个基于LangChain框架的开源智能助手系统,整合了认知科学、行为科学和学习科学原则,特别是福格行为模型(B=MAP),为用户提供个性化的日常规划和学习支持。
The system serves as a coordinator that connects to users' wearable device data, learning tools, and schedules, helping them achieve optimal efficiency and mindset amidst the uncertainties of real life.
系统作为协调者,连接用户的智能穿戴设备数据、学习工具和日程安排,帮助用户在现实生活的不确定性中实现最佳效率和心态。
-
Emotional Value: Reduces cognitive load of productivity management and schedule planning, decreases decision fatigue, and improves mental health
-
Efficiency Enhancement: Optimizes allocation of cognitive resources based on reliable scientific principles, scheduling appropriate tasks at appropriate times
-
Chaos Management: Handles unpredictable variables and contexts in real life, providing adaptive solutions
-
Tool Integration: Collaborates with existing specialized tools rather than replacing them
-
情绪价值:减轻生产力管理和日程规划的认知负担,降低决策疲劳,提升心理健康
-
效率提升:基于可靠的科学原则优化认知资源分配,在适当时机安排适当任务
-
混沌应对:处理现实生活中不可预测的变量和情境,提供适应性解决方案
-
工具整合:与现有专业工具协同工作,而非替代它们
┌─────────────────────────────────────────┐
│ CogniAgent Core │
│ │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │LangChain│ │ LLM │ │Context │ │
│ │Framework│ │Interface│ │Manager │ │
│ └─────────┘ └─────────┘ └─────────┘ │
└───────────────────┬─────────────────────┘
│
┌───────────────────┼─────────────────────┐
│ │ │
│ ┌─────────────┐ │ ┌─────────────┐ │
│ │Data │ │ │Recomendation│ │
│ │Integration │◄─┼─►│Engine │ │
│ │Layer │ │ │ │ │
│ └─────────────┘ │ └─────────────┘ │
│ ▲ │ ▲ │
└─────────┼─────────┼─────────┼───────────┘
│ │ │
┌─────────┼─────────┼─────────┼───────────┐
│ │ │ │ │
│ ┌──────▼────┐ ┌──▼───┐ ┌───▼─────┐ │
│ │Wearable │ │User │ │Learning │ │
│ │Device API │ │Input │ │Tools API│ │
│ └───────────┘ └──────┘ └─────────┘ │
│ │
└─────────────────────────────────────────┘
-
CogniAgent Core: System core based on LangChain and Large Language Models
-
Data Integration Layer: Collects and integrates data from various sources
-
Recommendation Engine: Generates personalized recommendations
-
External Interfaces: Connects to wearable devices, learning tools, and user input
-
CogniAgent核心:基于LangChain和大语言模型的系统核心
-
数据集成层:收集和整合来自各种来源的数据
-
推荐引擎:生成个性化建议
-
外部接口:连接智能穿戴设备、学习工具和用户输入
User Input/Device Data → Data Integration → State Assessment → Plan Generation → Behavioral Science Optimization → Dialogue Presentation → User Feedback
↑ |
└──────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
用户输入/设备数据 → 数据集成 → 状态评估 → 计划生成 → 行为科学优化 → 对话呈现 → 用户反馈
↑ |
└──────────────────────────────────────────────────────────────────────┘
CogniAgent integrates with:
CogniAgent可以集成以下系统:
-
Wearable Devices: Sleep data, activity data, stress indicators
-
Learning Tools: Anki, SuperMemo
-
Productivity Tools: Google Calendar, Microsoft Outlook, Todoist, Notion
-
智能穿戴设备:睡眠数据、活动数据、压力指标
-
学习工具:Anki、SuperMemo
-
生产力工具:Google日历、Microsoft Outlook、Todoist、Notion
System: "Good morning! I've received today's sleep data. Your deep sleep duration was 6 hours and 15 minutes, 10% above your average. Today your cognitive state is suitable for creative work. What goals would you like to accomplish today?"
User: "I need to prepare for tomorrow's presentation and review my economics course material."
System: "Understood, we have two main goals: prepare the presentation and review economics. I see you have 25 economics cards due for review in Anki. Could you tell me the priority and time constraints for these tasks?"
User: "The presentation is more important and must be completed today. The economics review is for next week's exam, but I'd like to complete at least part of it today."
System: "Based on your cognitive state and priorities, I recommend the following schedule:
1. 9-11 AM: Use your peak creative period to prepare the presentation
2. 12-1 PM: Rest and engage in 15 minutes of light activity (helps with afternoon cognitive recovery)
3. 1-2 PM: Complete the 15 highest priority economics cards in Anki
4. 3-4 PM: Finalize the presentation
How does this sound?"
User: "Sounds good, but I have a meeting at 3 PM, so we need to adjust."
System: "I understand. Considering your 3 PM meeting, we can adjust as follows:
1. 9-11 AM: Prepare the presentation (unchanged)
2. 12-1 PM: Rest and light activity (unchanged)
3. 1-2:30 PM: Complete more economics card reviews
4. 4-5 PM: Finalize the presentation
Does this work for you?"
User: "Perfect, let's go with that."
系统:"早上好!我已收到今天的睡眠数据。你昨晚的深度睡眠时间为6小时15分钟,比平均水平高10%。今天你的认知状态适合进行创造性工作。你今天有什么目标想要完成?"
用户:"我需要准备明天的演讲,还有复习经济学课程的内容。"
系统:"好的,我们有两个主要目标:准备演讲和复习经济学。据我了解,你的Anki中有25张经济学卡片待复习。你能告诉我这两项任务的优先级和时间限制吗?"
用户:"演讲更重要,必须今天完成。经济学复习是为下周的考试准备,但我想今天至少完成一部分。"
系统:"基于你的认知状态和优先级,我建议如下安排:
1. 上午9点-11点:利用你的最佳创造力时段准备演讲
2. 12点-1点:休息并进行15分钟轻度活动(有助于下午认知恢复)
3. 1点-2点:完成Anki中优先级最高的15张经济学卡片
4. 3点-4点:完成演讲的收尾工作
这样安排对你来说如何?"
用户:"听起来不错,但我下午3点有个会议,需要调整。"
系统:"明白了,考虑到3点的会议,我们可以这样调整:
1. 上午9点-11点:准备演讲(保持不变)
2. 12点-1点:休息和轻度活动(保持不变)
3. 1点-2:30:完成更多的经济学卡片复习
4. 4点-5点:完成演讲收尾工作
这样安排可行吗?"
用户:"完美,就这么定了。"
-
Design and implement core data models
-
Develop basic wearable device data connectors
-
Implement simple dialogue management process
-
Create minimum viable state assessment module
-
设计并实现核心数据模型
-
开发基本的穿戴设备数据连接器(支持至少2种主流设备)
-
实现简单的对话管理流程
-
创建最小可行的状态评估模块
-
Integrate learning tool APIs (Anki, SuperMemo)
-
Develop complete behavioral science engine
-
Enhance cognitive state assessment algorithms
-
Implement basic planning generation functionality
-
集成学习工具API(Anki、SuperMemo)
-
开发完整的行为科学引擎
-
增强认知状态评估算法
-
实现基础的计划生成功能
-
Optimize dialogue flow and user experience
-
Improve adaptive planning adjustment capabilities
-
Add calendar and task management tool integrations
-
Implement user feedback collection and analysis system
-
优化对话流程和用户体验
-
完善计划适应性调整能力
-
增加日历和任务管理工具集成
-
实现用户反馈收集和分析系统
-
Closed testing and issue resolution
-
Performance optimization
-
Security and privacy enhancements
-
Prepare public beta version
-
封闭测试与问题修复
-
性能优化
-
安全和隐私增强
-
准备公开测试版本
-
Technical Tests: Unit tests for core algorithms, integration tests for APIs, performance and security testing
-
User Experience Tests: Internal testing group, task completion tests, A/B testing of dialogue flows
-
Evaluation Metrics: User satisfaction, task completion rate, cognitive load reduction, learning efficiency, adaptability
-
技术测试:核心算法的单元测试、API的集成测试、性能和安全测试
-
用户体验测试:内部测试组、任务完成测试、对话流程的A/B测试
-
评估指标:用户满意度、任务完成率、认知负荷减轻、学习效率、适应性
-
Data Privacy: Local processing priority, transparent data usage explanations, minimal data collection
-
Ethical Guidelines: Avoiding overdependence, preventing algorithmic bias, prioritizing mental health, transparent decision-making
-
数据隐私:本地处理优先、透明的数据使用说明、最小数据收集
-
伦理准则:避免过度依赖、防止算法偏见、心理健康优先、透明决策
CogniAgent - Optimizing your cognitive resources through science-based recommendations
CogniAgent - 通过基于科学的建议优化您的认知资源