Proactive Code Analysis

AI watches your code and shows warnings BEFORE you ask - like having a senior dev reviewing your code in real-time

NEW in v2.3.0

What Is Proactive Code Analysis?

Instead of waiting for you to ask, HalCode now automatically analyzes your code as you type and shows warnings with yellow squiggly lines - just like VS Code built-in diagnostics!

How It Works

1

You Type Code

Write your code as normal in any file

2

AI Analyzes

After you stop typing for 2 seconds, AI analyzes your code

3

Warnings Appear

Yellow squiggly lines show up under problematic code

4

Quick Fixes Available

Click the lightbulb icon to see and apply suggested fixes

What It Detects

X
Missing Imports - Detects when you use a module without importing it
!
Missing Error Handling - Finds async functions without try-catch blocks
~
Deep Nesting - Warns about code nested more than 3 levels deep
#
Long Functions - Flags functions longer than 50 lines

Free vs Pro

Free Tier

  • 10 proactive analyses per day
  • Basic warnings
  • Quick fix suggestions

Pro

  • Unlimited proactive analyses
  • Advanced warnings
  • Custom rule sets

Pro Tips

  • Open the Problems panel to see all warnings at once
  • Hover over warnings to see detailed explanations
  • Click the lightbulb icon to see all available quick fixes
  • Warnings auto-clear when you fix the code