Skip to main content

Agentic orchestration.

Project description

porki

Table of Contents

  1. Description
  2. Quickstart
  3. Installation
  4. Test
  5. CLI Reference

Description

porki is an agentic orchestration runtime for multi-agent workflows. It coordinates orchestrator and agent processes, persists shared state in Redis, and uses an LLM CLI (claude or codex) to plan and execute tasks.

It leverages markdown-based control files: a primary INSTRUCTIONS.md for orchestrator/agent directives and per-agent heartbeat markdown files for live control signals (for example pause/resume-style runtime directives).

Example usage: Systemg Orchestrator

[!WARNING] Designed to run with systemg.

Quickstart

Install

pip install porki

Simple Command

porki --help

Minimal runtime example (orchestrator + agent) with bundled test assets:

porki \
  --role orchestrator \
  --instructions tests/assets/INSTRUCTIONS.md \
  --llm-provider codex \
  --llm-cli codex
porki \
  --role agent \
  --instructions tests/assets/instructions/agent-research.md \
  --heartbeat tests/assets/instructions/heartbeat/agent-research.md \
  --agent-name agent-research \
  --goal-id goal-demo \
  --llm-provider codex \
  --llm-cli codex

By default, --redis-url is fakeredis:// for local/demo usage.

Installation

Prerequisites

  • python 3.10+
  • systemg (sysg CLI available on PATH)
  • redis (server reachable by --redis-url)
  • an LLM CLI: claude or codex

PyPI

pip install porki

From Source

git clone https://github.com/ra0x3/porki.git
cd porki
pip install -e .

Development Only (uv)

uv commands are for development workflows (not required for normal runtime use):

uv sync

Test

From repository checkout:

uv run pytest

Without uv:

python -m pip install pytest
python -m pytest

CLI Reference

usage: porki [-h] --role {agent,orchestrator} --instructions INSTRUCTIONS
             [--redis-url REDIS_URL] [--log-level LOG_LEVEL]
             [--agent-name AGENT_NAME] [--agent-role AGENT_ROLE]
             [--goal-id GOAL_ID] [--heartbeat HEARTBEAT]
             [--loop-interval LOOP_INTERVAL] [--lease-ttl LEASE_TTL]
             [--poll-interval POLL_INTERVAL]
             [--heartbeat-interval HEARTBEAT_INTERVAL]
             [--instruction-interval INSTRUCTION_INTERVAL]
             [--claude-cli CLAUDE_CLI] [--claude-extra-arg CLAUDE_EXTRA_ARG]
             [--claude-use-sysg] [--llm-provider {claude,codex}]
             [--llm-cli LLM_CLI] [--llm-extra-arg LLM_EXTRA_ARG]
             [--llm-use-sysg]

Porki agent/orchestrator entrypoint

options:
  -h, --help            show this help message and exit
  --role {agent,orchestrator}
                        Process role
  --instructions INSTRUCTIONS
                        Primary instructions file
  --redis-url REDIS_URL
                        Redis connection URL
  --log-level LOG_LEVEL
                        Python logging level
  --agent-name AGENT_NAME
                        Agent identifier when running in agent mode
  --agent-role AGENT_ROLE
                        Agent role identifier when running in agent mode
  --goal-id GOAL_ID     Goal identifier for the active DAG
  --heartbeat HEARTBEAT
                        Heartbeat file path for agent role
  --loop-interval LOOP_INTERVAL
                        Agent loop interval in seconds
  --lease-ttl LEASE_TTL
                        Lease TTL in seconds
  --poll-interval POLL_INTERVAL
                        Orchestrator poll interval in seconds
  --heartbeat-interval HEARTBEAT_INTERVAL
                        Agent heartbeat file read interval in seconds
  --instruction-interval INSTRUCTION_INTERVAL
                        Agent instructions reload interval in seconds
  --claude-cli CLAUDE_CLI
                        Path to the Claude CLI executable
  --claude-extra-arg CLAUDE_EXTRA_ARG
                        Additional arguments for the Claude CLI
  --claude-use-sysg     Invoke Claude through `sysg spawn --ttl` to capture
                        stdout/stderr
  --llm-provider {claude,codex}
                        LLM provider used for orchestration and agents
  --llm-cli LLM_CLI     Path to provider CLI executable
  --llm-extra-arg LLM_EXTRA_ARG
                        Additional arguments for the selected LLM CLI
  --llm-use-sysg        Invoke LLM CLI through `sysg spawn` for output capture

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

porki-0.3.2.tar.gz (50.8 kB view details)

Uploaded Source

Built Distribution

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

porki-0.3.2-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

Details for the file porki-0.3.2.tar.gz.

File metadata

  • Download URL: porki-0.3.2.tar.gz
  • Upload date:
  • Size: 50.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for porki-0.3.2.tar.gz
Algorithm Hash digest
SHA256 d9c543d39d32d19f94c48b4094368c0eeebe990dc3516277625b006d4fb5b781
MD5 2c0283350ba44e34df023e59501a2047
BLAKE2b-256 a62a4e50206b3f8936188ac1a940da5a24006400bfa7e6fe5baa89d242113eab

See more details on using hashes here.

File details

Details for the file porki-0.3.2-py3-none-any.whl.

File metadata

  • Download URL: porki-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 38.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.12

File hashes

Hashes for porki-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a09d64e3afe0cecb95293defabfffe7b9fdf9a1a508dc8c85880c5e4f119c617
MD5 c65b8ff5ec0ecef6bc8d3adac3b09c11
BLAKE2b-256 0ff71c9a6fc928eeeb6b29ef2a57c975395e391a762ef4ad8073ead2561a0e9a

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