UNPKG

mcp-subagents

Version:

Multi-Agent AI Orchestration via Model Context Protocol - Access specialized CLI AI agents (Aider, Qwen, Gemini, Goose, etc.) with intelligent fallback and configuration

21 lines 788 B
import { BaseAgent } from './base.js'; export class ClaudeAgent extends BaseAgent { buildCommand(_task, taskConfig) { const cmd = ['claude']; // Add --print flag for non-interactive mode cmd.push('--print'); // Add --dangerously-skip-permissions flag for automation cmd.push('--dangerously-skip-permissions'); // Task will be passed via stdin instead of command line argument // This avoids command line length limits and special character issues // Add custom flags if (taskConfig.flags && taskConfig.flags.length > 0) { cmd.push(...taskConfig.flags); } return this.validateCommand(cmd); } getInputMethod() { return 'stdin'; } } //# sourceMappingURL=claude.js.map