Splat is designed to be simple: just prefix your normal run command with splat squash. When your code encounters an error, Splat captures it, analyzes the context, and provides an AI-powered fix.
public class FaultyJava { public static void main(String[] args) { System.out.println("The result is: " + faultyMethod()); } public static int faultyMethod() { int a = 5; int b = 10; if (a < b) { System.out.println("a is less than b"); } // Missing return statement }}
When Splat successfully fixes an error, you’ll see:
Analyzing error stack trace... Gathering context from error files... Generating fix with AI... Error: <error type and message> File: <file_path>:<line_number> Suggested Fix: <clear explanation of what was wrong> <what change was made> Fix applied successfully! Your code is now running without errors.