Who it is forA developer or team lead who wants to see how they use different AI coding assistants across projects.
The problemUsage is split across several tools with different storage formats, so there is no single view of it.
The outcomeA summary table of sessions per source, project, model, and month, built from the normalized JSONL files.
What you need first
- Python 3.9 or newer installed on the machine that holds the chat history
- The AI coding tools installed under your own user account, with local chat history present
- Permission to read and store your own local data, and a secure place to keep the output
- For the fine-tuning case: the Hugging Face datasets library and a tokenizer for your target model
Steps
- Run
python extract.py --all --mergeto write all_conversations.jsonl with every found source. - Write a short Python script using the standard library to read all_conversations.jsonl one line at a time. (inferred, check the README)
- Group records by the source, project_path, and timestamp fields, counting sessions by session_id. (inferred, check the README)
- Print the counts per source and per month, and save them to a CSV file. (inferred, check the README)
Prompt for your agent
Using the repo jatechan/ai-data-extractor, read extracted_data/all_conversations.jsonl from <project folder> and count unique session_id values grouped by source and by month of the timestamp. Output a CSV table with those counts. Verify that the total of session counts equals the number of unique session_id values in the file.
Caveat. Fields vary by source, so some tools will not record model names, project paths, or timestamps, and those rows will be missing from the counts.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for jatechan/ai-data-extractor and "Measure your AI coding usage across tools and projects"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer