JSPM

  • Created
  • Published
  • Downloads 1843
  • Score
    100M100P100Q118374F
  • License Apache-2.0

AI Agent Orchestration Platform

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@defai.digital/automatosx) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    AutomatosX

    Provider-Agnostic AI Agent Orchestration

    A CLI-first tool for orchestrating specialized AI agents with persistent memory, intelligent delegation, and cross-provider support (Claude, Gemini, OpenAI).

    npm version License TypeScript Tests

    Status: โœ… Production Ready ยท v5.2.0 ยท October 2025

    Looking for answers? See the FAQ.


    ๐ŸŽฏ Built for Claude Code

    AutomatosX extends Claude Code with specialized AI agents that remember context, delegate tasks, and collaborate autonomously.

    # In Claude Code, simply use /ax:agent
    /ax:agent Paris, design authentication system with JWT
    /ax:agent Bob, implement the auth design  # Bob auto-receives Paris's design from memory

    The result: Claude Code becomes a learning, coordinated team instead of a stateless assistant.


    ๐Ÿ’ก Why AutomatosX?

    The Problem with Stateless AI

    Traditional AI assistants (ChatGPT, vanilla Claude):

    • โŒ No memory between conversations
    • โŒ You repeat context every time
    • โŒ No coordination between tasks
    • โŒ Knowledge disappears after each session

    AutomatosX changes this:

    • โœ… Persistent memory: < 1ms search, zero cost, 100% local
    • โœ… Multi-agent delegation: Agents coordinate automatically
    • โœ… Context retention: Never explain the same thing twice
    • โœ… Knowledge accumulation: Your team gets smarter over time

    Real-World Impact

    Without AutomatosX:

    Day 1: You explain architecture to Claude โ†’ Response lost
    Day 2: You ask to implement โ†’ You re-explain architecture
    Day 3: Different task โ†’ You re-explain everything again

    With AutomatosX:

    Day 1: Product designs architecture โ†’ Saved to memory
    Day 2: ax run backend "implement auth" โ†’ Backend finds Product's design automatically
    Day 3: ax run security "security audit" โ†’ Security has full context from Day 1-2

    Time saved: Hours per week. Quality: Consistent. Cost: $0.


    ๐Ÿ“‹ Full Changelog | ๐ŸŽ‰ Release Notes


    ๐Ÿง  Core Value: Persistent Memory

    AutomatosX remembers everything. Every agent conversation is automatically saved and searchable.

    How It Works

    # Automatic memory saving
    ax run product "Design calculator with add/subtract"
    โ†’ Task + Response saved to SQLite FTS5
    
    # Automatic memory retrieval
    ax run backend "Implement the calculator"
    โ†’ Memory searches "calculator" automatically
    โ†’ Backend receives: "# Relevant Context from Memory: Product's design..."
    โ†’ Backend implements WITHOUT you repeating the spec

    The Technology

    • SQLite FTS5: Built-in full-text search
    • < 1ms search: 62x faster than v3.x vector search
    • $0 cost: No embedding APIs, no cloud calls
    • 100% local: Your data never leaves your machine
    • Automatic injection: Relevant context added to every agent

    Benefits

    โœ… Cross-day continuity: Pick up where you left off โœ… Cross-agent knowledge: All agents share the same knowledge base โœ… Learning from history: Agents avoid past mistakes โœ… Zero cost scaling: 10,000 entries = ~10MB, still < 1ms search

    Learn more: Memory System Guide | Memory Tutorial


    ๐Ÿค Core Value: Multi-Agent Orchestration

    Agents coordinate automatically. Natural language delegation creates complex workflows without manual orchestration.

    How It Works

    // Product Manager analyzes and delegates
    ax run product "Build authentication feature"
    
    Product response:
      "I'll design the auth system with JWT + OAuth2.
    
       @backend Please implement the JWT authentication API based on this design.
       @security Please audit the implementation for security issues."
    
    // AutomatosX automatically:
    // 1. Backend receives full spec, implements code
    // 2. Security receives spec + code, performs audit
    // 3. Results aggregated back to Product

    The Technology

    • 7 delegation syntaxes: @mention, DELEGATE TO, Please ask, etc.
    • Cycle detection: Prevents infinite loops
    • Depth limits: Default 2 levels (configurable)
    • Session tracking: Who did what, when
    • Shared workspace: Organized PRD/tmp structure for collaboration

    Benefits

    โœ… Automatic coordination: No manual task switching โœ… Parallel execution: Multiple agents work simultaneously โœ… Transparent workflows: Full delegation chain visible โœ… Context preservation: Every agent has complete context

    Learn more: Multi-Agent Orchestration Guide


    ๐ŸŽญ 12 Specialized Agents with Clear Governance

    v5.0.12 introduces strict role ownership and delegation controls to eliminate cycles:

    ๐Ÿ’ป Engineering Team (Implementers)

    maxDelegationDepth: 1 - Can delegate once for cross-domain needs, no re-delegation

    • Bob (backend) - API design, database modeling, caching strategies
      • Can delegate to: frontend, data, security, quality, devops
    • Frank (frontend) - Component architecture, state management, accessibility
      • Can delegate to: backend, design, security, quality, devops
    • Oliver (devops) - Infrastructure as code, CI/CD pipelines, observability
      • Can delegate to: backend, frontend, security, quality
    • Daisy (data) - Data modeling, ETL pipelines, SQL optimization
      • Can delegate to: backend, security, quality
    • Steve (security) - Sole owner of security-audit, threat modeling, secure coding review
      • Can delegate to: backend, frontend, devops, quality

    ๐ŸŽฏ Quality Team (Coordinator Role)

    maxDelegationDepth: 1 - Can delegate fixes back to implementers, no re-delegation

    • Queenie (quality) - Sole owner of code-review and debugging, testing strategies
      • Can delegate to: backend, frontend, security, devops, data

    ๐ŸŽจ Content Team (Implementers)

    maxDelegationDepth: 1 - Can delegate once for cross-domain needs, no re-delegation

    • Debbee (design) - UX research, wireframes, design systems
      • Can delegate to: frontend, writer, quality
    • Wendy (writer) - API documentation, ADRs, release notes
      • Can delegate to: backend, frontend, design, quality

    ๐Ÿ“Š Leadership Team (Coordinators)

    maxDelegationDepth: 1 - Delegate to implementers, focus on strategy, no re-delegation

    • Paris (product) - Product strategy, feature planning, roadmap
      • Can delegate to: backend, frontend, design, writer, quality
    • Eric (ceo) - Business strategy, organizational leadership
      • Can delegate to: paris, tony, all agents
    • Tony (cto) - Technology strategy, technical leadership
      • Can delegate to: backend, frontend, devops, security, quality

    ๐Ÿ”ฌ Research Team (Specialist)

    maxDelegationDepth: 0 - Execute research work directly, no delegation

    • Rodman (researcher) - Idea validation, feasibility analysis, research reports
      • Specializes in: logical reasoning, risk assessment, literature review
      • Produces: executive summaries, feasibility studies, long-form research reports

    New in v5.0.12: Each agent has role-specific workflow stages, smart ability loading (abilitySelection), and explicit delegation scopes. Most agents have maxDelegationDepth: 1 to allow cross-domain collaboration while preventing delegation cycles.

    ๐Ÿ“– Complete Agent Directory


    ๐Ÿš€ Two Ways to Use AutomatosX

    AutomatosX offers two powerful modes to fit your workflow:

    Use AutomatosX agents directly inside Claude Code conversations with the /ax:agent slash command.

    # In Claude Code, use the slash command
    /ax:agent Paris, design a REST API for user authentication
    /ax:agent Bob, implement the auth API from Paris's design
    /ax:agent Steve, security audit the authentication code

    Perfect for:

    • ๐Ÿ’ฌ Interactive development workflows
    • ๐Ÿ”„ Seamless context switching within Claude Code
    • ๐Ÿค Collaborative coding sessions
    • ๐ŸŽฏ Quick agent delegation while coding

    How it works: Claude Code executes AutomatosX commands behind the scenes, brings results back into your conversation, and maintains full context.

    2๏ธโƒฃ Terminal/CLI Mode (Power Users)

    Use AutomatosX as a standalone CLI tool for automation, scripting, and direct control.

    # In any terminal (Bash, Zsh, PowerShell)
    ax run Paris "Design REST API for user authentication"
    ax run Bob "Implement the auth API"           # Auto-receives Paris's design from memory
    ax run Steve "Security audit the auth code"   # Auto-receives design + implementation
    
    # Full CLI power
    ax memory search "authentication"
    ax agent list --by-team engineering
    ax session list --active

    Perfect for:

    • โš™๏ธ CI/CD pipelines and automation scripts
    • ๐Ÿ”ง Custom workflows and integrations
    • ๐Ÿ“Š Batch processing and reporting
    • ๐ŸŽ›๏ธ Advanced configuration and debugging

    How it works: Direct command-line execution with full control over providers, memory, sessions, and configuration.

    Which Mode Should I Use?

    Scenario Recommended Mode
    Coding in Claude Code Claude Code Integration (/ax:agent)
    Automation scripts Terminal Mode (ax run)
    CI/CD pipelines Terminal Mode
    Quick questions during dev Claude Code Integration
    Memory management Terminal Mode
    Agent creation/management Terminal Mode
    Multi-agent workflows Both work great!

    ๐Ÿ“– Learn More

    • Using Terminal Mode? โ†’ Complete Terminal Mode Guide
    • Using Claude Code? โ†’ Continue reading below for slash command examples
    • Want both? โ†’ They work together seamlessly! Memory is shared across both modes.

    โšก Quick Start

    Step 1: Install AutomatosX

    All Platforms (Windows, macOS, Linux):

    npm install -g @defai.digital/automatosx

    Verify Installation:

    ax --version
    # Should show: 5.1.0 (or later)

    Windows Users: If ax command not found, see Windows Troubleshooting


    Step 2: Initialize Your Project โš ๏ธ REQUIRED

    Navigate to your project directory, then run:

    # Go to your project folder
    cd your-project-folder
    
    # Initialize AutomatosX (MUST do this first!)
    ax init

    If you see "already initialized" but have issues:

    # Force reinitialize (overwrites existing setup)
    ax init --force

    ๐Ÿ’ก When to use --force:

    • Seeing "0 agents" despite having .automatosx folder
    • Upgrading from older version
    • Files are corrupted or incomplete
    • Want to reset to default configuration

    What This Does:

    • Creates .automatosx/ directory with 12 agents, 15 abilities, 4 teams
    • Sets up memory database (SQLite FTS5)
    • Creates shared workspace structure (PRD for planning, tmp for temporary files)
    • Generates automatosx.config.json
    • NEW (v5.2.0): Automatically initializes git repository (required for Codex provider)

    Verify Initialization:

    ax status
    # Should show: โœ… System is healthy
    # With: 12 agents, 15 abilities, providers configured
    
    ax list agents
    # Should list 12 agents: backend, frontend, devops, security, etc.

    โš ๏ธ IMPORTANT: If you still see "0 agents" or "System has issues" after ax init, try ax init --force!


    Step 3: Run Your First Agent

    Terminal Mode (any platform):

    # Test with backend agent
    ax run backend "Explain TypeScript in one sentence"
    
    # Agents automatically share memory
    ax run Paris "Design REST API for users"
    ax run Bob "Implement the API"           # Auto-receives Paris's design
    ax run Queenie "Write tests for the API" # Auto-receives design + implementation

    Claude Code Integration:

    # In Claude Code, use the slash command
    /ax:agent Paris, design REST API for users
    /ax:agent Bob, implement the API
    /ax:agent Queenie, write tests for the API

    What happens:

    1. Claude Code executes AutomatosX behind the scenes
    2. Paris designs the API โ†’ Saved to memory
    3. Bob reads Paris's design from memory โ†’ Implements code
    4. Queenie reads everything โ†’ Writes comprehensive tests
    5. Results flow back into your Claude Code conversation

    Common Issues

    "Agent not found" or "0 agents": โ†’ You forgot ax init. Run it in your project directory.

    Windows: Command not found: โ†’ See Windows Quick Fix

    No providers available: โ†’ Install a provider CLI (Claude, Gemini, or OpenAI) or use mock providers for testing:

    # Test with mock providers (no API needed)
    set AUTOMATOSX_MOCK_PROVIDERS=true   # Windows CMD
    $env:AUTOMATOSX_MOCK_PROVIDERS="true"  # Windows PowerShell
    export AUTOMATOSX_MOCK_PROVIDERS=true  # macOS/Linux
    
    ax run backend "Hello"

    That's it! Agents now remember everything and coordinate automatically.

    MCP Server Mode (Advanced) โœจ NEW in v5.1.0

    Use AutomatosX as a native MCP server for direct Claude Code integration via Model Context Protocol.

    # Start MCP server
    ax mcp
    
    # Add to Claude Code's claude_desktop_config.json
    {
      "mcpServers": {
        "automatosx": {
          "command": "ax",
          "args": ["mcp"]
        }
      }
    }

    What you get:

    • โœ… 16 native MCP tools for Claude Code
    • โœ… 90% faster than CLI execution (shared state, < 300ms p50 latency)
    • โœ… Persistent services across requests (MemoryManager, SessionManager)
    • โœ… First-class integration with Claude Desktop

    Available MCP Tools:

    • Agent execution: run_agent, list_agents
    • Memory operations: search_memory, memory_add, memory_list, memory_delete, memory_export, memory_import, memory_stats, memory_clear
    • Session management: session_create, session_list, session_status, session_complete, session_fail
    • System info: get_status

    Performance:

    • No subprocess overhead (3-5s โ†’ 300ms)
    • < 1.5s cold start
    • Shared services across requests
    • Native JSON-RPC 2.0 protocol

    ๐Ÿ“– Terminal Mode Guide | Installation Guide | Quick Start Tutorial


    ๐Ÿ“š Documentation

    Getting Started

    Core Features

    Tutorials

    Reference


    ๐Ÿ”ฌ The Technical Advantage

    Feature Traditional AI Chat Claude Code Claude Code + AutomatosX
    Memory No No โœ… SQLite FTS5 (< 1ms)
    Cost $20/month Included โœ… $0 (100% local)
    Multi-Agent No No โœ… 12 specialized agents
    Coordination Manual Manual โœ… Automatic delegation
    Context Retention Copy-paste Session only โœ… Persistent (days/weeks)
    Knowledge Sharing No No โœ… Cross-agent memory
    Privacy Cloud Claude servers โœ… 100% local data
    Speed Web UI Terminal โœ… Instant CLI

    ๐Ÿ’ผ Real-World Use Cases

    ๐Ÿ—๏ธ Feature Development

    # Using friendly agent names in terminal
    ax run Paris "Design user authentication feature"
    # Paris creates spec โ†’ Saved to memory
    
    ax run Bob "Implement auth based on spec"
    # Bob auto-receives spec โ†’ Implements code
    
    ax run Steve "Security audit the auth implementation"
    # Steve auto-receives spec + code โ†’ Performs audit
    
    ax run Wendy "Document the auth system"
    # Wendy auto-receives everything โ†’ Creates docs
    
    # Or in Claude Code:
    # /ax:agent Paris, design user authentication feature
    # /ax:agent Bob, implement auth based on spec

    Result: 4-step workflow, zero context re-explanation, complete audit trail

    ๐Ÿ› Bug Investigation

    # Mix of names and roles (both work!)
    ax run Queenie "Debug the payment timeout issue"
    # Queenie analyzes, saves findings to memory
    
    ax run backend "Fix the issue Queenie found"
    # Backend reads Queenie's analysis โ†’ Implements fix
    
    ax run quality "Test the payment fix"
    # Quality knows the bug + fix โ†’ Comprehensive testing

    Result: Coordinated debugging with full context preservation

    ๐Ÿ“Š Research & Analysis

    # Using agent names for clarity
    ax run Daisy "Analyze user behavior patterns"
    # Daisy analyzes patterns โ†’ Findings in memory
    
    ax run Paris "Design features based on Daisy's analysis"
    # Paris reads analysis โ†’ Creates product spec
    
    ax run Eric "Business case for Paris's proposal"
    # Eric has analysis + spec โ†’ Strategic evaluation

    Result: Data-driven decision making with complete context

    ๐Ÿš€ Multi-Agent Delegation

    # Single command triggers automatic multi-agent coordination
    ax run Paris "Build a user dashboard with real-time metrics"
    
    # Paris analyzes and delegates automatically in its response:
    # "I've designed the dashboard architecture:
    #
    # @Bob Please implement the REST API endpoints for user metrics
    # @Frank Please create the React dashboard components
    # @Steve Please review the data access security
    #
    # All specs are in my workspace."
    
    # AutomatosX automatically:
    # โœ“ Bob implements backend API โ†’ Saves to workspace
    # โœ“ Frank builds frontend UI โ†’ Reads Bob's API spec
    # โœ“ Steve audits security โ†’ Reviews both implementations
    # โœ“ Results aggregated โ†’ Complete dashboard delivered

    Result: One command orchestrates 4 agents with automatic coordination

    Delegation Syntaxes:

    @Bob Please implement this          # Direct mention
    DELEGATE TO Frank: Create the UI    # Explicit syntax
    Please ask Steve to audit this      # Polite request
    I need Daisy to analyze the data    # Need expression

    ๐ŸŽฏ Why Teams Choose AutomatosX

    For Solo Developers

    • Extend Claude Code with persistent memory
    • Never repeat context - agents remember everything
    • Coordinate complex tasks with multi-agent workflows
    • 100% local - your data stays private

    For Teams

    • Shared knowledge base - export/import memory across team
    • Consistent quality - agents learn from past work
    • Faster onboarding - new members inherit team knowledge
    • Audit trail - complete history of all decisions

    For Claude Code Power Users

    • Slash command integration - /ax:agent for instant access in Claude Code
    • Terminal-native - no context switching
    • CLI-based - scriptable and automatable
    • Zero latency - local memory = instant search

    ๐Ÿ› ๏ธ Production-Ready

    โœ… 1,259 tests passing (100% pass rate) โœ… TypeScript strict mode (zero errors) โœ… ~56% test coverage (comprehensive testing) โœ… 458KB bundle (99.9% smaller than v3.x) โœ… < 1ms memory search (62x faster than v3.x)

    Performance Metrics

    Memory Search: < 1ms (10,000 entries)
    Bundle Size:   458KB (down from 340MB in v3.x)
    Dependencies:  19 packages (down from 589 in v3.x)
    Test Coverage: ~56% (1,259 tests passing, 100% pass rate)
    Memory Cost:   $0 (no API calls)

    Technology Stack

    • Runtime: Node.js 20+
    • Language: TypeScript 5.3 (strict mode)
    • Memory: SQLite + FTS5 (built-in full-text search)
    • Testing: Vitest 2.x (1,259 tests)
    • Build: tsup/esbuild
    • Providers: Claude CLI, Gemini CLI, Codex CLI (OpenAI)

    ๐Ÿšง Coming Soon

    • Enhanced Claude Code integration
    • Visual workflow builder
    • Advanced memory analytics
    • Cross-project knowledge sharing
    • Plugin system for custom providers

    ๐Ÿค Contributing

    We welcome contributions! AutomatosX is built in the open.

    Join the community:


    ๐Ÿ“„ License

    AutomatosX is Apache 2.0 licensed.



    Transform Claude Code into an intelligent, coordinated team with AutomatosX. ๐Ÿš€

    Built with โค๏ธ by the AutomatosX team