| name | personal-analytics |
| description | Analyze conversation patterns, track productivity, and surface self-knowledge insights. Use when user wants to understand their own patterns (when they chat, what topics they discuss, productivity trends, sentiment over time). Provides weekly/monthly reports, topic recommendations, and time-based insights. Privacy-first design with all analysis local. |
Personal Analytics
Know thyself. Work smarter. Discover patterns you didn't know existed.
Personal Analytics analyzes your conversation patterns to surface actionable insights about your work style, interests, and productivityโall while keeping your data completely private and local.
Core Capabilities
- Session Analysis - When you chat, for how long, productivity patterns
- Topic Tracking - What subjects come up repeatedly, trending interests
- Sentiment Patterns - Mood tracking over time, stress indicators
- Productivity Insights - When you're most effective, optimal work times
- Weekly/Monthly Reports - Beautiful summaries of your patterns
- Topic Recommendations - Auto-suggest topics for proactive-research monitoring
Privacy First
๐ All analysis happens locally. Nothing leaves your machine.
- Raw conversations never stored
- Only aggregated statistics saved
- Opt-in design (must enable)
- Data deletion anytime
- No external APIs for analysis
- Gitignored data files
Quick Start
cp config.example.json config.json
python3 scripts/enable.py
python3 scripts/analyze.py
python3 scripts/report.py weekly
python3 scripts/recommend.py
What Gets Tracked
Session Metadata
- Timestamp (start/end)
- Duration
- Message count
- Primary topics discussed
- Sentiment (positive/neutral/negative/mixed)
- Productivity markers (tasks completed, decisions made)
Aggregated Stats
- Hourly activity heatmap
- Topic frequency over time
- Average session duration
- Productivity by time of day
- Sentiment trends
What's NOT Tracked
- โ Raw message content
- โ Personal information
- โ Sensitive data (passwords, keys, etc.)
- โ Specific conversations
Configuration
config.json
{
"enabled": true,
"tracking": {
"sessions": true,
"topics": true,
"sentiment": true,
"productivity": true
},
"privacy": {
"min_aggregation_window_hours": 24,
"auto_delete_after_days": 90,
"exclude_patterns": ["password", "secret", "token", "key"]
},
"insights": {
"productivity_markers":
Scripts
analyze.py
Analyze conversation patterns:
python3 scripts/analyze.py
python3 scripts/analyze.py --since "2026-01-01" --until "2026-01-31"
python3 scripts/analyze.py --insights
python3 scripts/analyze.py --verbose
Output:
๐ Personal Analytics Analysis
Period: Jan 1 - Jan 28, 2026 (28 days)
Session Summary:
Total sessions: 145
Total time: 18h 32m
Avg session: 7m 40s
Most active: Tuesday 10:00-11:00
Topics (Top 10):
1. Python (32 sessions)
2. FM26 (28 sessions)
3. Dirac Live (15 sessions)
4. ETH/crypto (12 sessions)
5. Docker (11 sessions)
...
Productivity:
High productivity: 09:00-12:00, 14:00-16:00
Low productivity: Late night (after 22:00)
Peak day: Wednesday
Sentiment:
Positive: 62%
Neutral: 28%
Negative: 8%
Mixed: 2%
report.py
Generate beautiful reports:
python3 scripts/report.py weekly
python3 scripts/report.py monthly
python3 scripts/report.py custom --since "2026-01-01" --until "2026-01-31"
python3 scripts/report.py weekly --output report.md
python3 scripts/report.py weekly --send
Report Format:
# ๐ Weekly Analytics Report
**Jan 22 - Jan 28, 2026**
## ๐ฏ Highlights
- **Most productive day:** Wednesday (4 tasks completed)
- **Peak hours:** 09:00-11:00 (3h 45m focused work)
- **Emerging topic:** Rust (mentioned 12 times, +200% from last week)
- **Mood trend:** โ๏ธ Improving (78% positive, up from 65%)
## โฐ Time Patterns
### Activity Heatmap
Mon โโโโโโโโโโโโโโโโโโโโโโโโ 4h
Tue โโโโโโโโโโโโโโโโโโโโโโโโ 6h 30m
Wed โโโโโโโโโโโโโโโโโโโโโโโโ 8h 15m โ Peak
Thu โโโโโโโโโโโโโโโโโโโโโโโโ 5h
Fri โโโโโโโโโโโโโโโโโโโโโโโโ 3h 45m
Sat โโโโโโโโโโโโโโโโโโโโโโโโ 1h 30m
Sun โโโโโโโโโโโโโโโโโโโโโโโโ 45m
### Hourly Distribution
06-09: โโโโโโโโโโ (12%)
09-12: โโโโโโโโโโ (38%) โ Peak productivity
12-14: โโโโโโโโโโ (15%)
14-17: โโโโโโโโโโ (24%)
17-22: โโโโโโโโโโ (11%)
## ๐ Topic Insights
### Top Topics This Week
1. **Python Development** (32 sessions)
- Focus: FastAPI, async, testing
- Trend: Steady
- Suggestion: Monitor "Python 3.13 features"
2. **FM26** (28 sessions)
- Focus: Tactics, transfers, editor
- Trend: โ๏ธ +15%
- Suggestion: Already monitoring "FM26 patches" โ
3. **Audio Engineering** (15 sessions)
- Focus: Dirac Live, room correction, bass management
- Trend: ๐ New topic
- Suggestion: Monitor "Dirac Live updates"
### Emerging Topics
- **Rust** (12 mentions, first appearance)
- **Kubernetes** (8 mentions, +300%)
- **Machine Learning** (6 mentions)
## ๐ก Productivity Insights
### Task Completion
- Total tasks: 23 completed
- Success rate: 87%
- Best day: Wednesday (6 tasks)
- Best time: Morning (09:00-12:00)
### Focus Sessions
- Long sessions (>30m): 8
- Average focus time: 18m
- Longest session: 1h 42m (Wed 10:15)
### Problem-Solving Speed
- Quick wins (<15m): 14 problems
- Complex issues (>1h): 3 problems
- Average: 24m per problem
## ๐ Sentiment & Well-being
### Overall Mood
๐ Positive โโโโโโโโโโโโโโโโโโ 78% (โ๏ธ +13%)
๐ Neutral โโโโโโโโโโโโโโโโโโ 18%
๐ Negative โโโโโโโโโโโโโโโโโโ 4%
### Stress Indicators
- High stress: 3 sessions (down from 7)
- Urgent keywords: 5 (down from 12)
- Late-night work: 2 sessions (down from 8)
**Insight:** Stress levels decreasing. Good work-life balance this week! ๐
## ๐ฏ Recommendations
### For Proactive Research
Based on your interests this week, consider monitoring:
1. **Rust language updates** (mentioned 12x, new interest)
2. **Dirac Live releases** (mentioned 15x, active problem-solving)
3. **Kubernetes security** (mentioned 8x, DevOps focus)
### Productivity Tips
- **Schedule deep work 09:00-11:00** (your peak productivity)
- **Batch meetings after lunch** (14:00-16:00 is secondary peak)
- **Avoid late-night sessions** (22% slower problem-solving)
### Topics to Explore
Based on your current interests, you might enjoy:
- Async Rust patterns (combines Rust + async focus)
- Kubernetes observability (combines K8s + monitoring)
- Audio DSP with Python (combines audio + Python)
---
_Generated by Personal Analytics โข Privacy-first, locally processed_
recommend.py
Get topic recommendations for proactive-research:
python3 scripts/recommend.py
python3 scripts/recommend.py --explain
python3 scripts/recommend.py --auto-add
python3 scripts/recommend.py --threshold 5
Output:
๐ก Topic Recommendations for Proactive Research
Based on your conversation patterns:
1. Rust Language Updates
Mentioned: 12 times this week (new topic)
Reason: Emerging interest, high engagement
Suggested query: "Rust language updates releases"
Suggested frequency: weekly
2. Dirac Live Updates
Mentioned: 15 times this week
Reason: Active problem-solving, technical depth
Suggested query: "Dirac Live update release"
Suggested frequency: daily
3. FM26 Patches
Mentioned: 28 times this week
Reason: Consistent interest over time
NOTE: Already monitoring! โ
Would you like to add these topics to proactive-research? [y/N]
session_tracker.py
Track individual sessions (called by Moltbot):
python3 scripts/session_tracker.py start --channel telegram
python3 scripts/session_tracker.py end --session-id <id>
python3 scripts/session_tracker.py message --session-id <id> \
--topics "Python,Docker" \
--sentiment positive
This script is designed to be called by Moltbot hooks, not manually.
enable.py / disable.py
Manage tracking:
python3 scripts/enable.py
python3 scripts/disable.py
python3 scripts/status.py
Integration with Moltbot
Personal Analytics can integrate with Moltbot session lifecycle:
Hook Points
- Session Start - Log timestamp, channel
- Session End - Calculate duration, save stats
- Message Received - Extract topics (lightweight), detect sentiment
Recommended Setup
Add to Moltbot SOUL.md:
## Personal Analytics Integration
After each session ends, if personal-analytics is enabled:
1. Extract primary topics discussed (max 5)
2. Determine overall sentiment
3. Detect productivity markers (tasks completed)
4. Log to personal-analytics via session_tracker.py
Data Storage
.analytics_data.json
Aggregated statistics only:
{
"sessions": [
{
"id": "session_uuid",
"start": "2026-01-28T10:00:00Z",
"end": "2026-01-28T10:15:00Z",
"duration_seconds": 900,
"channel": "telegram",
"topics": ["Python", "Docker"],
"sentiment": "positive",
"productivity_score": 0.8,
"tasks_completed": 1
}
],
"topic_stats": {
"Python": {
"total_mentions": 145,
...
...
.topic_cache.json
Topic extraction cache (temporary):
{
"hash_12345": ["Python", "FastAPI", "testing"],
"hash_67890": ["FM26", "tactics"]
}
Auto-deleted after 7 days.
Insights & Patterns
Time-Based Insights
Productivity by Hour:
- Analyzes task completion rate by hour
- Identifies peak productivity windows
- Suggests optimal work scheduling
Day of Week Patterns:
- Activity levels per day
- Best days for deep work
- Meeting-heavy vs focus-heavy days
Topic Insights
Topic Clustering:
- Groups related topics
- Identifies emerging interests
- Detects topic trends (rising, falling, stable)
Depth Analysis:
- Surface-level mentions vs deep dives
- Problem-solving topics vs casual chat
- Technical vs non-technical ratio
Sentiment Insights
Mood Tracking:
- Overall sentiment trends
- Correlation with time of day
- Stress indicator detection
Well-being Metrics:
- Late-night work frequency
- Urgent/stress keywords
- Work-life balance indicators
Privacy Controls
Exclusion Patterns
Automatically exclude sensitive data:
{
"privacy": {
"exclude_patterns": [
"password", "token", "key", "secret",
"credit card", "ssn", "api key"
]
}
}
Data Retention
Auto-delete old data:
{
"privacy": {
"auto_delete_after_days": 90,
"keep_aggregated_stats": true
}
}
Manual Deletion
python3 scripts/delete_data.py --all
python3 scripts/delete_data.py --since "2026-01-01" --until "2026-01-31"
python3 scripts/delete_data.py --topics "topic1,topic2"
Advanced Features
Custom Productivity Markers
Define what "productivity" means for you:
{
"insights": {
"productivity_markers": [
"completed", "shipped", "merged", "deployed",
"fixed", "resolved", "closed", "published"
]
}
}
Topic Suggestions for Proactive Research
Automatically suggest topics based on:
- Frequency threshold (mentioned N+ times)
- Trend detection (rising interest)
- Problem-solving patterns (technical depth)
- Temporal patterns (regular discussions)
Report Customization
{
"reports": {
"include_sections": [
"time_patterns",
"topic_insights",
"productivity",
"sentiment",
"recommendations"
],
"exclude_topics": ["personal", "family"],
"min_session_count": 5
}
}
Use Cases
๐ฏ Optimize Work Schedule
Discover your peak productivity hours and schedule deep work accordingly.
๐ Track Learning Journey
See which topics you're exploring, how deeply, and identify knowledge gaps.
๐ง Monitor Well-being
Track stress indicators, late-night work, and mood trends.
๐ Discover Patterns
Surface interests you didn't realize were important.
๐ค Improve Collaboration
Understand when you're most responsive and schedule meetings accordingly.
๐ก Generate Content Ideas
Your most-discussed topics are content goldmines.
Best Practices
- Run weekly reports - Set up auto-generated reports every Sunday
- Review recommendations - Check topic suggestions monthly
- Adjust privacy settings - Start conservative, adjust as comfortable
- Use with proactive-research - Turn insights into automated monitoring
- Don't over-optimize - Insights are guides, not rules
Troubleshooting
No data collected:
- Verify tracking is enabled:
python3 scripts/status.py
- Check Moltbot integration is active
- Run manual analysis:
python3 scripts/analyze.py --verbose
Inaccurate sentiment:
- Sentiment detection is heuristic-based
- Adjust if needed in future versions
Missing topics:
- Topic extraction uses keyword matching
- Lower threshold in config if too restrictive
Privacy concerns:
- Review
.analytics_data.json - only aggregated stats
- Delete data anytime:
python3 scripts/delete_data.py --all
- Disable tracking:
python3 scripts/disable.py
Credits
Built for ClawdHub. Privacy-first design inspired by Quantified Self movement.