memory_intelligent_analysis
Analyze project documentation to identify patterns, generate predictions, and provide actionable recommendations for improvement.
Instructions
Get intelligent analysis with patterns, predictions, and recommendations
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | Path to the project for analysis | |
| baseAnalysis | Yes | Base analysis data to enhance |
Implementation Reference
- src/memory/integration.ts:483-512 (handler)The core handler function for the memory_intelligent_analysis tool. It enhances base analysis with project history, similar projects, extracted patterns, and recommendations using the memory system, then stores the enhanced analysis.export async function handleMemoryIntelligentAnalysis(args: { projectPath: string; baseAnalysis: any; }): Promise<any> { await initializeMemory(); // Get project history and similar projects for enhanced analysis const projectId = args.baseAnalysis.projectId || args.projectPath; const history = await recallProjectHistory(projectId); const similarProjects = await getSimilarProjects(args.baseAnalysis); // Enhance analysis with memory insights const enhancedAnalysis = { ...args.baseAnalysis, memoryInsights: { projectHistory: history, similarProjects, patterns: await extractPatterns(args.baseAnalysis, history.history), recommendations: await generateRecommendations( args.baseAnalysis, similarProjects, ), }, }; // Remember this enhanced analysis await rememberAnalysis(args.projectPath, enhancedAnalysis); return enhancedAnalysis; }
- src/memory/index.ts:122-140 (registration)Registration of the memory_intelligent_analysis tool in the memoryTools array, including name, description, and input schema.{ name: "memory_intelligent_analysis", description: "Get intelligent analysis with patterns, predictions, and recommendations", inputSchema: { type: "object", properties: { projectPath: { type: "string", description: "Path to the project for analysis", }, baseAnalysis: { type: "object", description: "Base analysis data to enhance", }, }, required: ["projectPath", "baseAnalysis"], }, },
- src/memory/index.ts:127-139 (schema)Input schema definition for the memory_intelligent_analysis tool, specifying required projectPath and baseAnalysis parameters.type: "object", properties: { projectPath: { type: "string", description: "Path to the project for analysis", }, baseAnalysis: { type: "object", description: "Base analysis data to enhance", }, }, required: ["projectPath", "baseAnalysis"], },