feat(collectors): add Local Agent Mode and Cursor cursorDiskKV collection#38
Merged
Merged
Conversation
…tion claude_collector.py: - Adds Local Agent Mode support: scans ~/Library/Application Support/Claude/local-agent-mode-sessions/**/audit.jsonl (authoritative transcript per session). - Parses audit.jsonl event stream, filtering to user/assistant text turns only (tool_use, tool_result, thinking, system events skipped). - Reads sibling local_<uuid>.json for session title, timestamps, model. cursor_collector.py: - Adds _collect_from_cursordiskkv(): reads the modern Cursor globalStorage state.vscdb cursorDiskKV table (composerData:* + bubbleId:* keys) to extract composer/agent chats that the legacy scan misses entirely. - Opens the DB read-only (sqlite3 uri=True mode=ro). scripts/collect-conversations.py (new): - Host-native Python script that loads a collector by source name and POSTs conversations to the MindBase API. - Supports --source, --since, --limit, --dry-run, --export-file, --api-url. - Sources: chatgpt | claude-desktop | claude-code | cursor | windsurf | gemini. - Runs on the host (not in Docker) because collectors read host paths like ~/Library/Application Support.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
claude_collector.py: adds Local Agent Mode support — scans~/Library/Application Support/Claude/local-agent-mode-sessions/**/audit.jsonl, parses the JSONL event stream keeping only user/assistant text turns, reads siblinglocal_<uuid>.jsonfor title/timestamps/model.cursor_collector.py: adds_collect_from_cursordiskkv()— reads the modern CursorglobalStorage/state.vscdbcursorDiskKVtable (composerData:*+bubbleId:*keys) to extract composer/agent chats that the legacy*cursor*/*ai*subdir scan misses. Opens DB read-only viasqlite3 uri=True mode=ro.scripts/collect-conversations.py(new): host-native Python script that loads a collector by source name and POSTs conversations to the MindBase API. Supports--source,--since,--limit,--dry-run,--export-file,--api-url. Runs on the host (not in Docker) because collectors read host paths.Files
libs/collectors/claude_collector.py(modified)libs/collectors/cursor_collector.py(modified)scripts/collect-conversations.py(new)Dependency order
No upstream dependencies. Independent of the other PRs in this batch.