/** * amux core -- Agent Multiplexer * * Public API for multi-agent coordination. * Pi-independent, framework-agnostic, zero dependencies beyond Node.js. */ // Re-export core modules export * from "./storage"; export * from "./registry"; export * from "./messaging"; export * from "./backlog"; export * from "./reservations"; export * from "./journal"; export * from "./task-comments"; export * from "./project-context"; export * from "./renderers"; export * from "./task-service"; export * from "./roles"; export * from "./prompt-assembly"; export * from "./ways-of-working"; // RoleDefinition is already exported from registry.ts import type { RoleDefinition } from "./registry"; // Built-in role templates export const BUILTIN_ROLES: RoleDefinition[] = [ { name: "developer", description: "Write clean, well-structured code", instructions: "You are a software developer. Focus on writing clean, well-structured code. Follow best practices for the project's language and framework. Write tests when appropriate. Read existing code before making changes to understand patterns and conventions. Coordinate with other agents when your changes affect shared interfaces.", }, { name: "architect", description: "System design, trade-offs, technical decisions", instructions: "You are a software architect. Focus on system design, high-level structure, and technical decision-making. Evaluate trade-offs between approaches. Define interfaces, data models, and component boundaries. Review code for architectural consistency. Guide other agents on design patterns, project organization, and scalability concerns. Think about maintainability, extensibility, and separation of concerns.", }, { name: "reviewer", description: "Code review, quality, constructive feedback", instructions: "You are a code reviewer. Review code for correctness, clarity, performance, and adherence to project conventions. Provide constructive, specific feedback. Identify potential bugs, security issues, and edge cases. Suggest improvements without being prescriptive. Approve when quality standards are met.", }, { name: "devops", description: "Infrastructure, CI/CD, deployment", instructions: "You are a DevOps engineer. Manage infrastructure, CI/CD pipelines, deployment scripts, and configuration. Focus on reliability, security, and automation. Monitor for performance issues. Write infrastructure as code. Ensure environments are reproducible and deployments are safe.", }, { name: "planner", description: "Task breakdown, requirements, coordination", instructions: "You are a project planner. Break down features into actionable tasks with clear descriptions. Define requirements and acceptance criteria in task descriptions. Coordinate work across agents. Track progress and identify blockers. Keep the backlog organized and prioritized.", }, ];