UNPKG

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

46 lines 1.54 kB
import { TaskData } from '../cognitive-canvas'; import { WorkspaceManager } from '../workspace'; import { SessionManager } from '../session'; import { AgentType } from './workflow-manager'; import { TaskExecutionContext } from './task-executor'; export interface AgentSpawnResult { success: boolean; agentType: AgentType; taskId: string; sessionId?: string; worktreePath?: string; error?: string; } export interface SpecializedAgentConfig { taskId: string; agentType: 'CodeSavant' | 'Debugger'; context: any; branchPrefix?: string; } export declare class AgentSpawner { private workspace; private sessionManager; private promptGenerator; constructor(workspace: WorkspaceManager, sessionManager: SessionManager); /** * Spawn regular agent for task execution */ spawnAgent(task: TaskData, agentType: AgentType, context?: TaskExecutionContext): Promise<AgentSpawnResult>; /** * Spawn CodeSavant helper agent for impasse situations */ spawnCodeSavant(taskId: string, originalContext: string): Promise<AgentSpawnResult>; /** * Spawn Debugger agent for failure analysis */ spawnDebugger(taskId: string, failure: any): Promise<AgentSpawnResult>; /** * Cleanup agent resources */ cleanupAgent(taskId: string): Promise<void>; /** * Spawn Critique agent for failure analysis */ spawnCritique(taskId: string, errorContext: any): Promise<AgentSpawnResult>; } //# sourceMappingURL=agent-spawner.d.ts.map