cortexweaver
Version:
CortexWeaver is a command-line interface (CLI) tool that orchestrates a swarm of specialized AI agents, powered by Claude Code and Gemini CLI, to assist in software development. It transforms a high-level project plan (plan.md) into a series of coordinate
58 lines • 2.21 kB
TypeScript
/**
* CodeSavant - A Gemini-powered helper agent that provides alternative solutions
* and root cause analysis when the Coder agent gets stuck.
*/
export declare class CodeSavant {
private readonly maxSuggestionLength;
private readonly maxAnalysisLength;
/**
* Analyzes a problem by examining failed code and error messages
* @param problemDescription - Original task description
* @param failedCode - Code that failed to work
* @param errorMessage - Error message or failure reason
* @returns Analysis of the problem
*/
analyzeProblem(problemDescription: string, failedCode: string, errorMessage: string): Promise<string>;
/**
* Generates concrete alternative suggestions for the failed code
* @param problemDescription - Original task description
* @param failedCode - Code that failed to work
* @param errorMessage - Error message or failure reason
* @returns Array of 3 specific suggestions
*/
generateSuggestions(problemDescription: string, failedCode: string, errorMessage: string): Promise<string[]>;
/**
* Identifies the root cause of the error
* @param errorMessage - Error message to analyze
* @param failedCode - Code that caused the error
* @returns Root cause analysis
*/
identifyRootCause(errorMessage: string, failedCode: string): Promise<string>;
/**
* Formats suggestions into structured output for the Orchestrator
* @param suggestions - Array of suggestion strings
* @returns Formatted suggestion string
*/
formatSuggestions(suggestions: string[]): string;
/**
* Sanitizes input to prevent injection and handle special characters
*/
private sanitizeInput;
/**
* Identifies patterns in error messages
*/
private identifyErrorPatterns;
/**
* Identifies patterns in code structure
*/
private identifyCodePatterns;
/**
* Extracts function name from code for recursion detection
*/
private extractFunctionName;
/**
* Simple heuristic to detect undeclared variable usage
*/
private hasUndeclaredVariablePattern;
}
//# sourceMappingURL=code-savant.d.ts.map