Skip to content
Code Insights
v4.6.1Local-FirstOpen SourceClaude Code · Cursor · Copilot · Codex

Your AI sessions are a knowledge base you never built

One command turns your Claude Code, Cursor, and Copilot sessions into searchable insights — decisions, learnings, prompt quality scores, and cross-session patterns. All local, nothing leaves your machine.

$npx @code-insights/cli

Discover your AI coding style

Your decisions, patterns, and prompt quality roll up into an AI Fluency Score — a shareable snapshot of how you work with AI tools. Download it, share it, track it over time.

AI Fluency Score card — score circle, coding fingerprint bars, tool badges, and top effective patterns

1200×630 PNG — optimized for sharing on social media, Slack, and GitHub discussions.

What Code Insights finds in your sessions

Every session is analyzed into structured, searchable knowledge — not just chat logs.

Prompt Quality
Dimension scores
Context Provision
58
Request Specificity
81
Scope Management
74
Information Timing
49
Correction Quality
88
Findings
late-constraintdeficit

API key format constraint was mentioned on turn 14. Include format requirements upfront to avoid rework.

missing-contextdeficit

File paths were omitted from the initial request, requiring multiple follow-up clarifications.

precise-requeststrength

Implementation scope was well-bounded — clear separation between research and implementation phases.

Your AI sessions deserve better

Every day, developers run dozens of AI-assisted sessions. The insights from those conversations disappear the moment you close the terminal.

Without Code Insights
  • Sessions vanish after closing the terminal
  • No idea which prompts waste time vs. save time
  • Decisions and learnings lost across projects
  • Zero visibility into token usage and costs
With Code Insights
  • Every session captured, searchable, and analyzed
  • Prompt coaching with dimension scores and deficit/strength findings
  • AI-extracted insights: decisions, techniques, learnings
  • Full usage analytics with cost breakdowns

Up and running in 30 seconds

One command. No accounts. No configuration.

01

Install the CLI

One npm command. No accounts, no configuration files, no cloud services.

02

See your data

Run code-insights — it syncs all your sessions and opens the dashboard automatically. Zero configuration.

03

Unlock AI insights

Configure an LLM provider to extract decisions, learnings, and patterns from your sessions.

Terminal
# One command. No install needed.
$npx @code-insights/cli
Syncing sessions...
✔ Synced 47 sessions (3,241 messages)
Dashboard running at http://localhost:7890

Three pillars, one tool

Knowledge extraction. Prompt improvement. Usage analytics.

Knowledge Base

Decisions, learnings, and techniques extracted from every session. AI-powered synthesis compiles knowledge across sessions — deduplicated, prioritized, and formatted for your workflow.

  • Decisions with reasoning and rejected alternatives
  • Learnings with root cause analysis
  • Techniques and reusable patterns
  • AI-powered export to Agent Rules, Knowledge Brief, Obsidian, or Notion

Prompt Coaching

Five-dimension scoring across context provision, specificity, scope management, information timing, and correction quality. Deficit and strength findings with before/after takeaways.

  • 5 dimension scores (0–100) per session
  • Deficit findings: vague requests, late constraints, missing context
  • Strength findings: precise requests, effective context

Analytics & Costs

Token counts, model distribution, cost breakdowns, and activity charts. Terminal stats or browser dashboard — your choice.

  • Cost breakdown by project and model
  • Activity charts and usage trends
  • CLI stats + embedded dashboard
New in v4.5

Your sessions have patterns. Reflect finds them.

Every session is analyzed for friction points, effective patterns, and prompt quality. Weekly synthesis turns raw data into rules, skills, and growth signals.

Analyze

Each session is scanned for 9 friction categories and 8 effective pattern types. Attribution tells you whether friction was user-actionable, an AI limitation, or environmental.

Synthesize

Weekly snapshots surface your recurring patterns, top friction points, and a working style profile. Navigate week-by-week to see how your habits evolve.

Generate

Export your top patterns as CLAUDE.md rules or .cursorrules — derived from your actual sessions, not generic templates.

“Methodical builder who verifies before shipping”

— Your working style, derived from your sessions

Learn more →

Works with your tools

One CLI parses sessions from all five tools. No per-tool configuration. Just sync.

Cl
Claude Code
by Anthropic
Cu
Cursor
AI code editor
Co
Codex CLI
by OpenAI
Co
Copilot CLI
by GitHub
Co
Copilot Chat
VS Code

Sessions are auto-discovered from each tool's standard session location. No setup required.

Runs entirely on your machine

Your coding sessions are sensitive — they contain your code, decisions, and workflow patterns. Code Insights never sends your data anywhere.

Local SQLite

Everything stored at ~/.code-insights/data.db on your machine. Open it with any SQLite browser.

No Accounts

No sign-ups, no OAuth, no cloud services required. Just install and run.

Fully Open Source

MIT licensed. CLI, dashboard, and server in one repo. Audit every line before you run it.

Easy Deletion

Run `rm -rf ~/.code-insights` and it's all gone. No data retention, no recovery.

MIT License · Open Source

Start building knowledge from your sessions

Free to use. No accounts required. CLI, dashboard, and server in one repo.

$npx @code-insights/cli