Chat History Analyzer
/install chat-history-analyzer
Chat History Analyzer | OpenClaw Skill
Description
Extracts and analyzes Cursor IDE chat history to identify key discoveries, obstacles, and solutions, saving findings to the journal.
Chat History Analyzer | OpenClaw Skill
Extracts chat history from Cursor IDE's local SQLite databases, analyzes the last hour of conversations for key discoveries, obstacles, and solutions, and saves structured findings to the OpenClaw journal directory.
Usage
- As a scheduled cron job to continuously track insights from chat history
- Manually to analyze recent chat activity
- To identify recurring patterns, problems, or solutions in your workflow
# Combined log and chat history analysis (for cron jobs)
python3 /Users/ghost/.openclaw/workspace/skills/chat-history-analyzer/scripts/analyze_logs.py
# Analyze last hour of chat history only
python3 /Users/ghost/.openclaw/workspace/skills/chat-history-analyzer/scripts/chat_history_analyzer.py
# Analyze last 2 hours
python3 /Users/ghost/.openclaw/workspace/skills/chat-history-analyzer/scripts/chat_history_analyzer.py --hours 2
# Output JSON format
python3 /Users/ghost/.openclaw/workspace/skills/chat-history-analyzer/scripts/analyze_logs.py --json
What this skill does
- Extracts chat history from Cursor's SQLite databases (global and workspace-specific)
- Analyzes the last hour of messages for patterns indicating discoveries, obstacles, and solutions
- Saves structured findings to
/Users/ghost/.openclaw/journal/as markdown files - Runs automatically via cron job every hour
Integration as a Cron Job
This skill is designed to run hourly via OpenClaw cron. The analyze_logs.py script combines both log analysis and chat history analysis.
Example Cron Job Configuration:
{
"payload": {
"kind": "agentTurn",
"message": "Run analyze_logs.py script to analyze the last hour of logs and Cursor chat history, saving findings to journal.",
"model": "openrouter/google/gemini-2.5-flash",
"thinking": "low",
"timeoutSeconds": 180
},
"schedule": {
"kind": "cron",
"cron": "0 * * * *"
},
"delivery": {
"mode": "announce"
},
"sessionTarget": "isolated",
"name": "Chat History & Log Analysis"
}
Or run directly via shell script:
# Add to crontab (crontab -e)
# Run every hour at minute 0
0 * * * * /Users/ghost/.openclaw/workspace/skills/chat-history-analyzer/scripts/analyze_logs.py --json >> /Users/ghost/.openclaw/logs/analyze_logs.log 2>&1
Output Format
Findings are saved to /Users/ghost/.openclaw/journal/chat_analysis_YYYY-MM-DD_HHMMSS.md with sections for:
- Key Discoveries: Successful findings, realizations, and implementations
- Obstacles Encountered: Errors, failures, and blockers
- Solutions Found: Fixes, workarounds, and resolutions
Requirements
- Cursor IDE installed with chat history stored locally
- SQLite3 available (usually pre-installed on macOS)
- OpenClaw journal directory writable
How it works
- Connects to Cursor's SQLite databases at
~/Library/Application Support/Cursor/User/globalStorage/state.vscdband workspace-specific databases - Extracts messages from the last N hours (default: 1 hour)
- Analyzes message content using pattern matching for discoveries, obstacles, and solutions
- Saves structured markdown report to the journal directory
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install chat-history-analyzer - 安装完成后,直接呼叫该 Skill 的名称或使用
/chat-history-analyzer触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Chat History Analyzer 是什么?
Extracts and analyzes Cursor IDE chat history to identify key discoveries, obstacles, and solutions, saving findings to the journal. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 508 次。
如何安装 Chat History Analyzer?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install chat-history-analyzer」即可一键安装,无需额外配置。
Chat History Analyzer 是免费的吗?
是的,Chat History Analyzer 完全免费(开源免费),可自由下载、安装和使用。
Chat History Analyzer 支持哪些平台?
Chat History Analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Chat History Analyzer?
由 austindixson(@austindixson)开发并维护,当前版本 v1.0.5。