Skip to content

Lux is an open-source framework for building multi-agent, swarmed intelligence built by Spectral Labs. With Beams, Prisms, Lenses, and Signals, it orchestrates AI-driven workflows to create truly autonomous organizations.

License

Notifications You must be signed in to change notification settings

Spectral-Finance/lux

Repository files navigation

Lux

Hex.pm Docs

⚠️ Note: Lux is currently under heavy development and should be considered pre-alpha software. The API and architecture are subject to significant changes. We welcome feedback and contributions.

Lux is a powerful language-agnostic framework for building intelligent, adaptive, and collaborative multi-agent systems. It enables autonomous entities (Agents) to communicate, learn, and execute complex workflows while continuously improving through reflection.

Why Lux?

  • 🧠 Self-Improving Agents: Agents with built-in reflection capabilities (coming soon)
  • 🚀 Language Agnostic: Build agents in your favorite programming language
  • 🔄 Type-Safe Communication: Structured data flow with schema validation
  • 🤖 AI-First: Deep LLM integration with advanced prompting and context management
  • 🔌 Extensible: Easy integration with external services and APIs
  • 📊 Observable: Built-in monitoring, metrics, and debugging tools
  • 🧪 Testable: Comprehensive testing utilities for deterministic agent behavior

Documentation

📚 Read the full documentation on hexdocs.pm/lux

Getting Started

Core Concepts

  • Agents - Building intelligent autonomous agents
  • Signals - Type-safe communication between agents
  • Prisms - Modular functional components
  • Beams - Workflow orchestration
  • Lenses - External service integration

Examples & Guides

Development

Core Concepts

1. Agents 👻

Learn more about Agents

Autonomous agents that combine intelligence and execution. Agents can:

  • Monitor and analyze data
  • Make strategic decisions
  • Delegate tasks to other agents
  • Adapt to changing conditions
  • Collaborate through structured protocols

2. Signals 📡

Learn more about Signals

Type-safe communication using predefined schemas. Signals provide:

  • Structured data validation
  • Type safety across language boundaries
  • Clear communication protocols
  • Versioning and compatibility

3. Prisms 🔮

Learn more about Prisms

Pure functional components for specific tasks. Prisms enable:

  • Modular functionality
  • Language-specific implementations
  • Clear input/output contracts
  • Easy testing and validation

4. Beams 🌟

Learn more about Beams

Composable workflow orchestrators. Beams allow you to:

  • Define complex workflows
  • Coordinate multiple agents
  • Handle parallel execution
  • Manage state and dependencies

Language Support

Lux provides first-class support for multiple programming languages:

  • Python: Deep integration with Python's scientific and ML ecosystem
  • JavaScript/TypeScript: Frontend and Node.js support
  • Other Languages: Language-agnostic protocols for easy integration

Learn more about language support

Examples

Check out these examples to see Lux in action:

Contributing

We welcome contributions! Whether you want to add support for a new language, improve documentation, or fix bugs, check out our Contributing Guide.

Community

License

Lux is released under the MIT License. See LICENSE for details.

About

Lux is an open-source framework for building multi-agent, swarmed intelligence built by Spectral Labs. With Beams, Prisms, Lenses, and Signals, it orchestrates AI-driven workflows to create truly autonomous organizations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published