Skip to main content

YAML-driven workflow engine for AI agents

Project description

Agent Workflows

YAML-driven workflow engine for AI agents.

Installation

pip install -e .

Usage

# Run workflow
agent-workflow run

# Custom file
agent-workflow run -f my-workflow.yml

# Validate
agent-workflow validate .agent-workflow.yml

# History
agent-workflow history

Workflow Format

Create .agent-workflow.yml:

name: my-workflow
env:
  KEY: value

jobs:
  build:
    steps:
      - uses: terminal/run@v1
        with:
          command: npm install
      - uses: agents/claude_code@v1
        with:
          prompt: "Generate unit tests"

  test:
    needs: build
    steps:
      - uses: terminal/run@v1
        with:
          command: npm test

Plugins

Built-in Plugins

  • terminal/run - Run shell commands
  • terminal/script - Run script files
  • git/push - Push changes
  • git/download - Clone repos
  • templates/match - Template matching
  • agents/claude_code - Claude Code agent
  • agents/smol_dev - Smol Dev agent
  • agents/general - General agent

Custom Plugins

Create agent_workflows/plugins/my_namespace/my_plugin.py:

async def execute(ctx: dict) -> None:
    logger = ctx['logger']
    workspace = ctx['workspace']
    params = ctx.get('with', {})
    
    logger("Running my plugin...")
    # Plugin logic

Features

  • DAG execution with parallel jobs
  • Environment variable inheritance
  • Run history tracking
  • Async plugin system
  • Fail-fast error handling

CLI Commands

Command Description
run [-f FILE] [-w WORKSPACE] Run workflow
validate FILE Validate syntax
history [-l LIMIT] Show history

Development

pip install -e ".[dev]"
pytest

License

MIT - Copyright (c) 2025 Siili Solutions Oyj

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

siili_agent_workflows-0.2.0.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

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

siili_agent_workflows-0.2.0-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: siili_agent_workflows-0.2.0.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for siili_agent_workflows-0.2.0.tar.gz
Algorithm Hash digest
SHA256 4e68ccfca17d0dc32b022683b8ded9941da3a97342f583ddfd45c0ab0a67f1df
MD5 b0ee3c258d1c842c1c32da149a0340dc
BLAKE2b-256 d940c72193fb32d99c1d845a699ddd664695fbb2705607822b69bec54cf82f7b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: siili_agent_workflows-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.21 {"installer":{"name":"uv","version":"0.9.21","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for siili_agent_workflows-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e975cdf3e1557b5f375099327cbd0cf22e7dd7703c35218fd5cba8855366e01
MD5 c9eaca58315fcb733265f8db9095a2fb
BLAKE2b-256 e3a70f34044989a03b0d8743f5ce220aec3e3ab80a118da5d396d63ecd28375c

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