A friendly supernatural presence haunting your code with warnings from Future You and wisdom from Past You
Code Phantom is a mischievous yet helpful VS Code extension that watches over your code across timelines, providing:
- 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
- Detects risky code patterns in real-time
- Warns about common pitfalls:
- Forgotten
console.logstatements - Callback hell (nested
.then()chains) - Use of
varinstead ofconst/let - Loose equality (
==) instead of strict (===) - Empty catch blocks that hide errors
- Forgotten
- Creates diagnostics that appear in the Problems panel
- 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)
- ๐ป 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
{
"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
}| 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 |
- Install the extension
- Open any code file
- Watch for the ๐ป in your status bar
- Click it to summon the phantom
- Let the haunting begin...
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
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!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..." ๐ป