Skip to main content

Hierarchical multi-cluster coding swarm CLI

Project description

Autobots

Hierarchical multi-cluster coding swarm CLI powered by NVIDIA NIM

Autobots is a Python CLI tool that orchestrates multiple AI models as a coding swarm to autonomously plan, implement, review, and repair code in your target repositories. It routes tasks to specialized clusters, injects project context into model prompts, and runs validation loops with automatic repair.


Quick Start

pip install autobot-swarm
# Check context files in your project
autobots init /path/to/your/project

# Generate an implementation roadmap
autobots plan /path/to/your/project

# Execute a task through the swarm
autobots run P1-T1

# Launch the interactive mode
autobots engage

What Autobots Does

  1. Plans - Parses a roadmap into phases and tasks with dependencies
  2. Routes - Intelligently assigns tasks to the best-fit AI cluster
  3. Implements - Specialist models generate code with your project context
  4. Reviews - A reviewer cluster validates correctness and safety
  5. Repairs - A repair cluster fixes issues found during review
  6. Validates - Runs your tests, linters, and build commands

Key Features

Skill Injection

Autobots reads your context/ directory (architecture, conventions, testing strategy, security docs) and injects them into model prompts. Models see your project's actual documentation before writing code.

Nine Specialized Clusters

Cluster Role Use Case
Optimus Planner Mission briefs and orchestration
UltraMagnus Backend APIs, databases, server logic
Jazz Frontend UI components, React, CSS
RedAlert Reviewer Code review, security checks
Ratchet Repair Bug fixes, validation failures
Perceptor Retrieval Document parsing, RAG
Bumblebee Media Speech, audio, video
Ironhide Simulation Physics, optimization
Wheeljack Science Molecular, research

Execution Modes

  • Supervised - Approval required before each phase
  • Milestone - Approval every N phases (configurable)
  • Autonomous - No approval, runs to completion

Configurable Models

# .autobots.toml
[autobots]
model_selection_profile = "balanced"  # fast, balanced, quality
temperature = 0.2
max_tokens = 4096

Requirements

  • Python 3.11+
  • NVIDIA NIM API key (free tier available at build.nvidia.com)

Configuration

# .autobots.toml (place in project root or $HOME)
[autobots]
model_selection_profile = "balanced"
safety_branch = "autobots-safety"
default_mode = "supervised"
milestone_threshold = 3
max_verification_attempts = 3

All settings can also be set via environment variables:

export AUTOBOTS_MODEL_SELECTION_PROFILE=quality
export AUTOBOTS_SAFETY_BRANCH=main

CLI Commands

Command Description
autobots init Check context files in target project
autobots plan Generate implementation roadmap
autobots run <task> Execute a specific task
autobots resume Resume from last checkpoint
autobots status Show current progress
autobots engage Interactive mode with startup screen
autobots validate-models Verify NVIDIA API connectivity
autobots publish Build and publish to PyPI

Context Architecture

Create these files in your project's context/ directory:

context/
  architecture.md       # System design, tech stack, patterns
  conventions.md        # Code style, naming, formatting rules
  testing-strategy.md   # Test framework, coverage, patterns
  security-auth.md      # Auth patterns, OWASP checklist
  roadmap.md            # Implementation plan (autobots reads this)
  progress-tracker.md   # Current status (autobots updates this)

These files are injected into model prompts so generated code matches your project's patterns.


How It Works

[Your Task] → [Optimus Planner] → [Specialist Cluster] → [RedAlert Reviewer]
                                          ↓                      ↓
                                    [Code Output]         [Pass / Revise]
                                                              ↓
                                                      [Ratchet Repair]
                                                              ↓
                                                      [Validation Loop]
                                                              ↓
                                                      [Files Written]

Safety Features

  • Command whitelist blocks dangerous operations (rm -rf, sudo, etc.)
  • File locking prevents concurrent writes to critical context files
  • Atomic writes ensure no partial file corruption
  • Path traversal protection keeps writes within allowed directories
  • Audit trail logs all actions for debugging

Development Status

  • Version: 0.1.6
  • Status: Alpha
  • License: MIT

Links


License

MIT License - see LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autobot_swarm-0.1.7.tar.gz (96.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autobot_swarm-0.1.7-py3-none-any.whl (86.0 kB view details)

Uploaded Python 3

File details

Details for the file autobot_swarm-0.1.7.tar.gz.

File metadata

  • Download URL: autobot_swarm-0.1.7.tar.gz
  • Upload date:
  • Size: 96.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for autobot_swarm-0.1.7.tar.gz
Algorithm Hash digest
SHA256 bd89a29b38e6d6b0201f09f3ab205ecbeff23f5bec0e5566b45164bd2b40cd93
MD5 ab30e116cf01fdb7500d40e02afb63cd
BLAKE2b-256 dc67691665cbd6b7629669c4941bcd7aebe285938fab6903e9d1c0db033a6a8a

See more details on using hashes here.

File details

Details for the file autobot_swarm-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: autobot_swarm-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 86.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for autobot_swarm-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 e0c7066008031f52b8fd083d1d628d486256c250cccbf77455d2edb13fe5cffe
MD5 4230625e5bd2387321b07f74060e6f12
BLAKE2b-256 63da0d835de004347555cdb27d2651a783eaa06c26dba1e9a680df1380b8b4c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page