Skip to content

Code Phantom is a playful yet powerful VS Code extension that performs real-time code analysis through a supernatural metaphor. It surfaces forgotten logic from Past You, warns of risky choices from Future You, and exorcises issues with one-click fixes, all while keeping the interface atmospheric, helpful, and delightful. ๐Ÿ‘ป๐Ÿ”ฎ๐Ÿš€

License

Notifications You must be signed in to change notification settings

Sunivihaan/CodePhantom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ‘ป Code Phantom

A friendly supernatural presence haunting your code with warnings from Future You and wisdom from Past You

โœจ Features

Code Phantom is a mischievous yet helpful VS Code extension that watches over your code across timelines, providing:

๐Ÿ•ฐ๏ธ Past You - Forgotten Logic Resurfaces

  • Detects commented-out code that whispers from the past
  • Surfaces TODO/FIXME comments you left behind
  • Shows git history insights for the current file
  • Reminds you of the wisdom Past You tried to preserve

๐Ÿ”ฎ Future You - Warnings Before Mistakes

  • Detects risky code patterns in real-time
  • Warns about common pitfalls:
    • Forgotten console.log statements
    • Callback hell (nested .then() chains)
    • Use of var instead of const/let
    • Loose equality (==) instead of strict (===)
    • Empty catch blocks that hide errors
  • Creates diagnostics that appear in the Problems panel

๐Ÿ‘ป Intensity-Based Haunting - Unforgettable Experience

  • Visual Effects: Color-coded glows (blue โ†’ orange โ†’ red) based on severity
  • Audio Haunting: Severity-based sound alerts (single/double/triple beeps)
  • Pulse Effects: Critical errors pulse 3 times for attention
  • Escalating Warnings: Phantom remembers ignored warnings and escalates
  • Phantom Memory: After 5+ ignored warnings, effects become CRITICAL
  • Spooky Decorations: Ghost text appears on risky code lines
  • Status Bar Presence: Whispers messages about code changes
  • Configurable haunting intensity (subtle/medium/intense)

๐ŸŽฎ Commands

  • ๐Ÿ‘ป Summon the Phantom - Invoke the phantom for a mystical greeting
  • ๐Ÿ•ฐ๏ธ Consult Past You - View git history and forgotten logic
  • ๐Ÿ”ฎ Glimpse Future You - Analyze potential issues in your code

โš™๏ธ Configuration

{
  "codePhantom.hauntingIntensity": "medium",      // subtle | medium | intense
  "codePhantom.enableVisualEffects": true,        // Glows, pulses, decorations
  "codePhantom.enableAudio": true,                // Sound effects
  "codePhantom.intensityBasedHaunting": true,     // Escalate for ignored warnings
  "codePhantom.watchPattern": "src/**/*.ts"       // Files to watch
}

Haunting Levels

Level Visual Audio Trigger
Low Blue glow Single beep console.log, var, TODO
Medium Orange glow Double beep debugger, ==, callback hell
High Red glow Triple beep innerHTML, document.write
Critical Red pulse (3x) Triple beep eval(), empty catch, 5+ ignored warnings

๐Ÿš€ Getting Started

  1. Install the extension
  2. Open any code file
  3. Watch for the ๐Ÿ‘ป in your status bar
  4. Click it to summon the phantom
  5. Let the haunting begin...

๐ŸŽจ Experience

Code Phantom blends productivity with playfulness:

  • Non-intrusive: Warnings are helpful, not annoying
  • Stylish: Atmospheric messages and subtle effects
  • Practical: Real code analysis with personality
  • Memorable: An unforgettable coding companion

๐Ÿ“ Example Warnings

console.log('debug');  // ๐Ÿ”ฎ Future You will forget to remove this console.log

var x = 5;  // ๐Ÿ‘ป Future You regrets using var... The spirits prefer const/let

if (a == b) {}  // ๐Ÿ”ฅ Future You encounters type coercion bugs... Use === instead

try {
  riskyOperation();
} catch() {}  // ๐Ÿ’€ Future You cannot debug silent failures... Handle that error!

๐ŸŒ™ Philosophy

Code Phantom believes that developer tools can be both useful and delightful. By personifying code analysis as a friendly ghost with access to past and future timelines, we make the development experience more engaging while still providing genuine value.


"I am the ghost in your machine, the whisper in your commits, the echo of bugs yet to come..." ๐Ÿ‘ป

About

Code Phantom is a playful yet powerful VS Code extension that performs real-time code analysis through a supernatural metaphor. It surfaces forgotten logic from Past You, warns of risky choices from Future You, and exorcises issues with one-click fixes, all while keeping the interface atmospheric, helpful, and delightful. ๐Ÿ‘ป๐Ÿ”ฎ๐Ÿš€

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published