Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>DifAINew to Visual Studio Code? Get it now.
DifAI

DifAI

Ph03n1x

|
39 installs
| (0) | Free
A VS Code extension for detecting AI-generated code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

DifAI - AI Code Detection for VS Code

DifAI is a Visual Studio Code extension that helps you track and visualize AI-generated code in your projects. It automatically detects code snippets generated by various AI tools (like GitHub Copilot, Cursor, ChatGPT) and provides a timeline view of AI contributions and subsequent human edits.

Features

  • 🔍 Automatic detection of AI-generated code
  • 📊 Timeline visualization of AI contributions
  • 🔄 Tracking of human edits to AI-generated code
  • 💾 Persistent metadata storage
  • 🤖 Support for multiple AI sources (Cursor, Copilot, etc.)
  • 📝 Git-aware tracking and attribution

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "DifAI"
  4. Click Install

Usage

Detecting AI Code

  • The extension automatically tracks AI-generated code as you use tools like Cursor or Copilot
  • Run the "Detect AI Generated Code" command to analyze existing files
  • AI-generated code will be highlighted with a subtle background color

Viewing Timeline

  1. Open a file containing AI-generated code
  2. Run the "Show AI Code Timeline" command
  3. View the timeline of AI contributions and edits

Checking Logs

  1. Run the "Show AI Detector Logs" command
  2. View detailed logs in the Output panel

Features in Detail

AI Detection Methods

  • Direct integration with IDE events
  • Pattern-based detection
  • Statistical analysis
  • Git metadata analysis
  • Code structure analysis

Metadata Storage

  • Stores information in .aidetector.json
  • Tracks:
    • AI-generated lines
    • Timestamp of generation
    • Source of generation
    • Human edits
    • Editor information

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development

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