Skip to main content

⚡ Zymis

PyPI version License CI Validation

  _____           _     
 |__  /_   _ _ __ (_)___ 
   / /| | | | '_ \| / __|
  / /_| |_| | | | | \__ \
 /____|\__, |_| |_|_|___/
       |___/             

The Autonomous, Safeguarded Swarm Orchestra for Software Engineering.

Zymis is a usable, lightweight, and modular multi-agent orchestration framework designed to plan, code, review, compile, and validate software within sandboxed boundaries.


🎭 The Orchestra Architecture

Zymis organizes AI agents into a structured hierarchical pipeline where every agent plays a distinct instrument:

graph TD
    User([User Request]) --> Boss[Boss Agent]
    Boss --> Router{Host-1 Global Router}
    
    Router -->|FAST Path| CapManager[Host-2 Capability Manager]
    Router -->|PRODUCTION Path| Manager[Manager Agent]
    
    Manager --> Planner[Task Planner]
    Planner --> RAG[Context Selector & RAG]
    RAG --> Coder[Coder Agent]
    Coder --> Sandbox[Execution Sandbox & Pre-Check]
    Sandbox --> Critics[Style / Performance / Security / Reliability Critics]
    Critics --> Compiler[Compiler / Python/C++/Rust build checks]
    Compiler --> TestRunner[Unit & Stress Test runner]
    TestRunner --> MergeController{5-Gate Merge Controller}
    
    MergeController -->|Pass| Success([Merged & Confirmed Code])
    MergeController -->|Fail| SelfHealing[Self-Healing & Retry Loop]
    SelfHealing --> Coder

🚀 Key Orchestral Features

  • Host-1 Global Router: Smart task routing with multiple execution paths:
    • FAST lane (~0.1s latency) for trivial file operations or simple completions.
    • PRODUCTION lane (12-stage Boss pipeline) for complex codebases and full swarms.
    • HYBRID lane dynamically scaling based on task risk assessment.
  • Execution Sandbox: Subprocess code isolation with built-in path-traversal protection and restricted commands allowlisting (python, pytest, git, pip).
  • Security Subsystem:
    • APIKeyValidator: Fail-fast startup checks.
    • SecretRedactor: Filters API keys (OpenAI, Anthropic, Google, AWS, GitHub) from output logs.
    • EngineeringGovernor: Spending limits, cost safeguards, and usage tracking.
    • AuditLedger: Thread-safe, append-only logs kept locally in ~/.zymis/audit.jsonl.
  • 5-Gate Merge Controller: Strict automated validation checks on compilation, unit tests, code quality, and style before merging files.
  • Rich Telemetry: Built-in Prometheus metrics (/metrics) and OpenTelemetry-compatible tracing wrappers.

📦 Installation

Install Zymis from PyPI:

pip install zymis

To enable development dependencies:

pip install "zymis[dev]"

🛠️ Quick Start

1. Configure Credentials

Set your credentials in your shell or create a .env file in your workspace directory:

# Zymis API configuration
ZYMIS_API_KEY=your-zymis-key
OPENAI_API_KEY=your-openai-api-key
# Or use Anthropic, Google (Gemini), Bedrock, etc.

2. Command Line Interface (CLI)

Zymis includes a powerful command line tool to run swarms directly:

# Run a simple coding task in fast mode
zymis run "create a database schema for user profiles" --desc "Using SQLite and SQLAlchemy" --file models.py

# Cancel a running task
zymis cancel <task_id>

# Check active swarm task statuses
zymis status

3. FastAPI Web Server

Spin up the FastAPI integration server to interact with Zymis via REST API endpoints:

# Start the API server on port 8000
python -m apps.api.main

⚙️ Environment Variables

Customize the behavior of the Zymis engine:

Variable Description Default
ZYMIS_API_KEY Secret token to authenticate local execution clients. None
ZYMIS_NO_OLLAMA Disable local Ollama provisioning and model auto-pulls. 0
ZYMIS_NOTEBOOK_MODE Enable lightweight notebook-friendly stdout stream formats. 0
ZYMIS_AUDIT_LOG_PATH Override target folder for the local audit ledger. ~/.zymis/audit.jsonl
ZYMIS_LOCAL_FIRST Prioritize local models or custom OpenAI-compatible adapters. 0

👥 Contributing

Contributions are welcome! Please refer to the Contributing Guide and adhere to the Code of Conduct.

📄 License

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

For support, contact us at indrohelpdesk@gmail.com.

Metadata

Release files for zymis 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zymis 0.1.2
File Size Uploaded
zymis-0.1.2.tar.gz 138.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zymis 0.1.2
File Interpreter ABI Platform
zymis-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 336.7 kB

Release files / zymis-0.1.2.tar.gz

Download URL zymis-0.1.2.tar.gz
Size 138.5 kB
Tags Source
SHA-256 checksum
How to use checksums
5511acbdf39dced791c48abe642e44d6147f524a8bcd7729976e1b420cb57625
BLAKE2b-256 checksum
How to use checksums
df84c1b6653833a04708dfb7ecfea41b62ac9a97e5de9bc83107753c6edebc4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / zymis-0.1.2-py3-none-any.whl

Download URL zymis-0.1.2-py3-none-any.whl
Size 198.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
69eb3eafae62b2ffae9ebcc2b4a95e9c03b129264166d9693f2325e954f2ea14
BLAKE2b-256 checksum
How to use checksums
288a4a312262063b823a6a39c4a4cc61e60d596a66fbb7423e761b98cc9d720b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release history Release notifications | RSS feed

0.1.3

2 release files

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page