Skip to main content

Kubernetes-like orchestration system for AI agents

Project description

Synapse

Kubernetes-like orchestration system for AI agents

PyPI version License: MIT Python Version

Synapse is a powerful framework for orchestrating AI agents with Kubernetes-like semantics. It provides a simple YAML-based workflow definition and a rich CLI for managing agent-based applications.

Features

  • 🚀 Kubernetes-inspired agent orchestration
  • 📊 Built-in observability with a web dashboard
  • Fast execution with parallel agent processing
  • 🔄 Dependency management between agents
  • 📝 YAML-based workflow definitions
  • 🔍 Tracing and logging for debugging
  • 🎨 Rich CLI with beautiful output

Installation

Install from PyPI:

pip install agent-synapse

Quick Start

  1. Initialize a new Synapse project:
synapse init

This creates an agents/ directory with demo agents (summarize.py and classify.py) and a workflow.yaml file.

  1. Run the demo workflow:
synapse run workflow.yaml --prompt "Your text here"
  1. View the dashboard (optional):
synapse serve
# Open http://localhost:8080 in your browser
  1. Modify the agents in the agents/ directory to suit your needs!

Documentation

For detailed documentation, please visit the Synapse Documentation.

Key Concepts

  • Agents: Independent units of work that process inputs and produce outputs
  • Workflows: YAML files that define the agent graph and their dependencies
  • Traces: Detailed execution logs stored in synapse_traces.db
  • Dashboard: Web UI for monitoring and debugging agent executions

Examples

Check out the examples directory for sample workflows and agent implementations.

Development

  1. Clone the repository:
git clone https://github.com/YakshithK/synapse.git
cd synapse
  1. Set up a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -e ".[dev]"
  1. Run tests:
pytest

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For support, please open an issue on GitHub.

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

agent_synapse-0.2.0.tar.gz (21.3 kB view details)

Uploaded Source

Built Distribution

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

agent_synapse-0.2.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

Details for the file agent_synapse-0.2.0.tar.gz.

File metadata

  • Download URL: agent_synapse-0.2.0.tar.gz
  • Upload date:
  • Size: 21.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agent_synapse-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1c35e68e86e8439667ddd5a6932edf506d6d68880f0a1de655bed4dd022931cb
MD5 c77d4517d90aa11b124f44adbe15d0b5
BLAKE2b-256 f44f1749ff62654ba83e7b18b50db1d283427708b1e413f7cf32b9bc31b18670

See more details on using hashes here.

File details

Details for the file agent_synapse-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: agent_synapse-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for agent_synapse-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f703eddbc04e897d1b8ef536a222846a7e49f94e58bb62069c599137fac6c7c6
MD5 905dd93df61aa18872ca1b28d11baa0c
BLAKE2b-256 47243f9e440ab2f8a465a4f7e1559f61aaa7e8dd85ae34bc18e72293a9b4c1af

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