AIAny
AI Coding2025
Icon for item

AI Coding Assistant Training Data Extraction Toolkit

Extracts local chat logs, code context, diffs, and tool outputs from AI coding assistants and exports them as ML-ready JSONL. Auto-discovers common storage locations and handles SQLite/JSONL formats; scan extracted files for secrets before sharing.

Introduction

Most AI coding assistants scatter their conversation history across JSONL blobs, VSCode-like SQLite stores, and tool-specific folders — making comprehensive dataset collection tedious or incomplete. This toolkit flips that problem: it systematically finds installations, parses each storage format, and normalizes full conversations (messages, code context, diffs, tool runs) into a single JSONL output suitable for training or auditing.

What Sets It Apart
  • Broad, practical coverage: scripts target Cursor, Claude Code, Codex, Windsurf, Trae, Gemini CLI, OpenCode and similar tools, so you can extract multi-tool histories without writing custom parsers — which saves weeks of ad hoc scraping work.
  • Preservation of developer context: captures file paths, selected snippets, line ranges, suggested diffs and tool execution outputs, not just plain text prompts — meaning datasets retain actionable code-level context for fine-tuning or evaluation.
  • Simple, file-based output: writes timestamped JSONL lines where each conversation bundles messages and metadata, making downstream filtering, deduplication, and ingestion into ML pipelines straightforward.
  • Privacy-first guidance: the README and tooling emphasize secret scanning and safe storage practices so teams avoid accidentally training on API keys or proprietary code.
Who It's For and Trade-offs

Great fit if you need reproducible, large-scale extraction of local assistant usage for model training, dataset curation, or internal auditing. It’s designed for engineers and data scientists comfortable handling raw dumps (SQLite/JSONL) and applying secret-sanitization before downstream use. Look elsewhere if you need a hosted telemetry product, real-time ingestion, or turnkey anonymization workflows — this repo focuses on discovery and extraction, not on managed hosting or automated PII redaction.

Where It Fits

Use it as a data-collection layer in an ML data pipeline: run local extractions, sanitize and filter the JSONL outputs, then feed into deduplication, annotation, or fine-tuning steps. The project is a pragmatic bridge between scattered local assistant data and ML-ready datasets.

More Items

GitHub
AI Coding2025

Provides searchable UI/UX guidance for AI coding assistants and generates design systems tailored to a product type, covering styles, palettes, typography, layout patterns, and accessibility.

GitHub
AI Agent2025

Lets a supervisor delegate work to AI coding CLIs in parallel or sequence, using isolated terminal sessions. Agents retain their native capabilities and authentication, while tool restriction enforcement varies by provider.

GitHub
AI Agent2025

Uses a language model and Bash to tackle GitHub issues and command-line coding tasks. Its minimal, linear execution flow is designed for straightforward debugging, sandboxing, and benchmarking.