Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Lock-In AINew to Visual Studio Code? Get it now.
Lock-In AI

Lock-In AI

Studenthacks

|
6 installs
| (1) | Free
Monitor coding activity and analyze code quality
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Lock-In AI

A VS Code extension that monitors your coding activity and provides insights into your coding habits, with an optional web dashboard for deeper analytics.

Features

  • Tracks daily coding hours
  • Monitors files edited and languages used
  • Provides a visual dashboard of your coding activity inside VS Code
  • Computes computational complexity and suggestions for highlighted code (via OpenAI API, credentials required)
  • Optional: Web dashboard (Next.js, Tailwind CSS) for detailed analytics on http://localhost:3002
  • Stores coding statistics locally

Installation

  1. Clone this repository
  2. Run npm install in the root directory to install extension dependencies
  3. Press F5 to start debugging the extension in a new VS Code window

Setting up the Web Dashboard (Optional)

  1. Go to the dashboard directory:
    cd src/app
    
  2. Install dependencies:
    npm install
    
  3. Start the dashboard on port 3002:
    npm run dev
    
  4. Open http://localhost:3002 in your browser

Tailwind CSS

Tailwind CSS is already set up. You can use Tailwind utility classes in your React components. See globals.css, tailwind.config.js, and postcss.config.js in src/app for configuration.

Usage

  1. The extension automatically starts tracking when you open files in VS Code
  2. To view your coding analytics:
    • Click on the Lock-In AI icon in the activity bar
    • Or use the command palette (Ctrl+Shift+P or Cmd+Shift+P) and type "Show Lock-In AI Dashboard"
  3. To analyze code complexity and get suggestions:
    • Highlight code in the editor; the dashboard will display complexity and suggestions (requires OpenAI API key for full functionality)
  4. To view detailed analytics in your browser:
    • Click the "View Detailed Analytics" button in the dashboard (ensure the web dashboard is running on port 3002)

Data Privacy

All data is stored locally on your machine and is not shared with any external services, except when using the OpenAI API for code analysis (if credentials are provided).

Contributing

Feel free to submit issues and enhancement requests!

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft