Skip to content

🚀 Any Agent v0.2.0 - Multi-Instance Support & Safety Improvements

Choose a tag to compare

@jwesleye jwesleye released this 17 Sep 20:22
· 18 commits to main since this release

🚀 Major Features

Multi-Instance Support

  • Multiple simultaneous deployments: Agents can now run on multiple ports simultaneously
  • Mixed deployment modes: Support for both Docker and localhost instances of the same agent
  • Context-based tracking: Precise instance management using structured context files
  • Safe removal operations: Elimination of risky process scanning in favor of context-only targeting

Safety & Reliability Improvements

  • Context-only removal: The --remove flag now uses only context information, eliminating potential interference with unrelated processes
  • Structured instance tracking: New docker_instances and localhost_servers arrays for comprehensive multi-instance management
  • Backward compatibility: Legacy single-instance fields maintained for existing deployments
  • Enhanced error handling: Better detection and reporting of localhost server states

🔧 Technical Improvements

Core Framework

  • Updated AgentBuildContext: Added support for multiple Docker containers and localhost servers per agent
  • Fixed context deserialization: Proper handling of nested dataclasses in YAML context files
  • Port-based instance targeting: Precise identification and management by port number
  • Deployment type detection: Automatic detection of "docker", "localhost", or "mixed" deployment modes

Code Quality

  • Type safety improvements: Fixed type hint issues in agent context management
  • Linting and formatting: Code cleaned up with ruff and proper formatting
  • Enhanced logging: Better tracking of multi-instance operations

🛠️ Bug Fixes

  • Fixed 'dict' object has no attribute 'pid' error in localhost server removal
  • Corrected template escaping issues in chat endpoint generation
  • Resolved Docker container and image finding logic for multi-instance scenarios
  • Fixed type hints for localhost server artifact management

📚 Documentation Updates

  • Updated all version references to 0.2.0 across documentation
  • Enhanced release notes and changelog
  • Improved code comments and docstrings

🔄 Backward Compatibility

All existing deployments and context files will continue to work without modification. The framework automatically handles both legacy single-instance and new multi-instance formats.

🎯 Use Cases Now Supported

  • Running the same agent on multiple ports for load balancing
  • Testing different configurations of an agent simultaneously
  • Mixed Docker/localhost development workflows
  • Safe cleanup of complex multi-instance deployments

Full Changelog: v0.1.7...v0.2.0