EyeSift
Developer Utility

AI Code Detector & Copilot Analyzer

Scan JavaScript, TypeScript, Python, and backend code for signatures of ChatGPT, GitHub Copilot, and Claude generation: trivial comment density, textbook boilerplate, and syntax uniformity.

Preset Samples:
source.ts
31 lines · 656 characters100% Client-Side Inspection · Zero Code Uploads
Authorship Score
High AI-Generated Probability80% AI
Likely Human (0-44%)Mixed (45-69%)AI Generated (70-100%)
Comment Ratio29%8 comment lines
Trivial Comments6Restates action
Boilerplate Score20Example blocks
Confidence80%Sample size rating

AI Markers Detected

  • •6 trivial restatement comments typical of instruction-tuned LLMs
  • •Standard LLM tutorial/example usage boilerplate block detected

Specific Line Flags

Line 1: Trivial AI-style explanatory comment

// Function to calculate fibonacci numbers

Line 3: Trivial AI-style explanatory comment

// Returns the nth fibonacci number

Line 5: Trivial AI-style explanatory comment

// Base case: if n is 0 or 1, return n

Line 9: Trivial AI-style explanatory comment

// Initialize variables for iteration

Line 14: Trivial AI-style explanatory comment

// Loop through numbers from 2 to n

Line 21: Trivial AI-style explanatory comment

// Return the calculated result

Line 25: Stereotypical LLM example usage block

// Example usage:

How AI Code Detection Works

Large Language Models like ChatGPT (GPT-4o), Claude 3.5 Sonnet, and GitHub Copilot write code differently than production software engineers. While AI-generated code is syntactically clean, it consistently exhibits stylometric signatures: redundant explanatory comments, textbook docstrings on trivial functions, generic error suppression (catch (e) { console.error(e) }), and template example usage blocks.

1. Comment Redundancy

Instruction-tuned models are trained to explain each step. They frequently add comments like // Loop through items immediately above a for loop, which human developers rarely write.

2. Pragmatic Shortcuts

Human code contains real-world engineering artifacts: ticket references (TODO: #312), telemetry loggers, degradation fallbacks, and project-specific acronyms that LLMs cannot guess.

3. Zero Data Retention

All analysis runs directly in your browser JavaScript engine. Your proprietary source code, credentials, and business logic are never transmitted to any external API or backend server.

Related EyeSift Detection & Analysis Tools