ai-debug-local-mcp
Version:
🎯 ENHANCED AI GUIDANCE v4.1.2: Dramatically improved tool descriptions help AI users choose the right tools instead of 'close enough' options. Ultra-fast keyboard automation (10x speed), universal recording, multi-ecosystem debugging support, and compreh
84 lines • 3.01 kB
TypeScript
/**
* Sub-Agent Context Builder
*
* Creates comprehensive context packages for sub-agent delegation,
* ensuring each agent fully understands their role, capabilities,
* and integration within the AI-Debug ecosystem.
*
* Enhanced with AI feedback collection for continuous improvement.
*/
import { AIFeedbackCollector } from './ai-feedback-collector.js';
export interface SubAgentContextPackage {
agentType: string;
agentVersion: string;
specialization: string;
contextPreservationGoal: string;
mission: string;
coreResponsibilities: string[];
expectedDeliverables: string[];
availableTools: string[];
toolDescriptions: Record<string, string>;
specializedCapabilities: string[];
mainSessionGoals: string;
frameworkDetected?: string;
previousFindings: string[];
userRequest: string;
reportingFormat: string;
maxResponseTokens: number;
communicationStyle: string[];
partOfLargerWorkflow: boolean;
nextSteps?: string;
contextPreservationPriority: boolean;
workflowPhase: string;
instructionFileReference: string;
responseTemplate: string;
enableTestGeneration: boolean;
testGenerationContext: {
expectGeneratedTests: boolean;
testTypes: string[];
preventionFocus: string;
enableTestReview: boolean;
qualityThreshold: number;
};
feedbackCollection: {
enabled: boolean;
sessionId: string;
collectOnCompletion: boolean;
contextualPrompt: string;
feedbackCategories: string[];
};
}
export declare class SubAgentContextBuilder {
private static feedbackCollector;
private static readonly AGENT_CONFIGURATIONS;
static buildContextPackage(agentType: string, userRequest: string, sessionContext?: {
frameworkDetected?: string;
previousFindings?: string[];
mainSessionGoals?: string;
workflowPhase?: string;
sessionId?: string;
enableFeedbackCollection?: boolean;
}): SubAgentContextPackage;
private static getToolDescriptions;
private static getSpecializedCapabilities;
private static getNextSteps;
private static getResponseTemplate;
private static getTestGenerationContext;
private static getFeedbackCollectionContext;
private static getFeedbackCategoriesForAgent;
static formatDelegationPrompt(contextPackage: SubAgentContextPackage, taskDescription: string): string;
/**
* Get the feedback collector instance for external access
*/
static getFeedbackCollector(): AIFeedbackCollector;
/**
* Generate a post-session feedback prompt for an agent
*/
static generatePostSessionFeedbackPrompt(agentType: string, sessionOutcome: 'success' | 'failure' | 'session_end', context: {
sessionDuration: number;
contextLinesPreserved?: number;
toolsUsed: string[];
frameworkDetected?: string;
}): string;
}
//# sourceMappingURL=sub-agent-context-builder.d.ts.map