VibeTrack-AI-Coding-Behavior-Analyzer

A tool that tracks how people use AI coding tools and detects addictive / deep engagement patterns

Stars
8
Language
Python
License
MIT
Updated

VibeTrack -- AI Coding Behavior Analyzer

Track, analyze, and optimize your AI-assisted coding sessions. VibeTrack monitors your interactions with tools like Claude, ChatGPT, and Copilot, detects dependency patterns, and provides actionable insights.

System Architecture

Frontend (React + Vite + Tailwind)    port 5173
    |
Backend (FastAPI + SQLite)            port 8000
    |
Desktop Tracker (Rust/Tauri)          native app
Chrome Extension                      browser
MCP Server (Claude plugin)            stdio

Quick Start

Backend

cd backend
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
uvicorn main:app --reload --host 0.0.0.0 --port 8000

Frontend

cd frontend
npm install
npm run dev

Open http://localhost:5173 -- register an account and start tracking.

Desktop Tracker

cd desktop-tracker
cargo build --release
cargo run

MCP Server (Claude Plugin)

cd mcp-server
npm install

Add to Claude Desktop config (claude_desktop_config.json):

{
  "mcpServers": {
    "vibetrack": {
      "command": "node",
      "args": ["/path/to/VibeTrack/mcp-server/server.js"],
      "env": {
        "VIBETRACK_API_URL": "http://localhost:8000"
      }
    }
  }
}

Vibe Score Formula

Score = (Duration in Minutes x Prompt Count) / (Break Time in Minutes + 1)
ClassificationScore RangeDescription
Normal< 100Balanced AI usage
Deep Flow100 - 499Highly focused session
High Dependency>= 500Consider taking breaks

API Endpoints

MethodEndpointDescription
POST/api/auth/registerRegister new user
POST/api/auth/login/jsonLogin (JSON body)
GET/api/auth/meGet current user
POST/api/session/startStart tracking session
POST/api/session/end/{id}End session
POST/api/session/calculate-vibe/{id}Calculate vibe score
GET/api/sessionsList all sessions
POST/api/eventLog prompt/break/activity
GET/api/eventsList events
GET/api/statsAggregate statistics
GET/api/stats/dailyDaily stats
GET/api/ml/patternsML pattern detection
GET/api/ml/predictPredict session outcome
GET/api/recommendationsPersonalized recommendations
GET/healthHealth check
GET/docsSwagger API docs

Tech Stack

  • Frontend: React 18, Vite 5, Tailwind CSS 3, Recharts, Framer Motion
  • Backend: FastAPI, SQLAlchemy, SQLite, JWT auth, bcrypt
  • Desktop: Rust, Tauri, reqwest, rusqlite
  • Chrome Extension: Manifest V3
  • MCP Server: @modelcontextprotocol/sdk, Node.js