Skip to content

Prismer-AI/pisa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

11 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

PISA Logo

PISA

Planning, Intelligent, Self-Adaptive Agent Framework

Build production-ready AI agents with markdown-defined workflows

PyPI version Python License OpenAI Agent SDK

Quick Start โ€ข Documentation โ€ข Examples โ€ข Features โ€ข Contributing


๐ŸŒŸ What is PISA?

PISA (Prismer Intelligence Server Agents) is a next-generation AI agent framework built on top of the OpenAI Agent SDK. It enables developers to create sophisticated, production-ready AI agents using markdown-based configuration and modular architecture.

Why PISA?

  • ๐ŸŽฏ Markdown-First: Define agents, tools, and workflows entirely in markdown files
  • ๐Ÿ”ง Modular Design: Compose agents from reusable modules (Planning, Execution, Observation, Reflection)
  • ๐Ÿ› ๏ธ Rich Tooling: Built-in support for Functions, MCP Servers, and Subagents
  • ๐Ÿ“Š Observable: Real-time execution tracking with beautiful CLI output powered by Rich
  • ๐Ÿ”„ Event-Driven: Production-ready deployment with Temporal integration
  • ๐ŸŽจ Developer-Friendly: Intuitive CLI, comprehensive logging, and extensive documentation
  • Context Engineering: 1st version 'Pyramid Context Engineering' solution

๐Ÿš€ Quick Start

Installation

From PyPI (Recommended):

pip install pisa-python

From Source:

# Clone the repository
git clone https://github.com/Prismer-AI/pisa.git
cd pisa

# Install dependencies (using uv for faster installation)
uv pip install -e .

# Or using pip
pip install -e .

Configure Environment

Create a .env file in the project root:

# OpenAI Configuration
OPENAI_API_KEY=your_api_key_here
OPENAI_BASE_URL=https://api.openai.com/v1

# Default Model
AGENT_DEFAULT_MODEL=gpt-4o-mini

# Optional: Temporal Configuration
TEMPORAL_ADDRESS=localhost:7233

Create Your First Agent

  1. Initialize a new agent project:
pisa init my-agent
cd my-agent
  1. Define your agent in .prismer/agent.md:
---
name: my-first-agent
version: 1.0.0
description: A simple agent that performs calculations
loop_type: plan_execute

capabilities:
  - calculator
  - text_to_table

planning:
  max_iterations: 10
  
# ... more configuration
---

## Planning Instructions

You are a helpful mathematical assistant. Break down complex calculations into steps.

## Reflection Guidelines

After each calculation, verify the result makes sense.
  1. Define capabilities in .prismer/capability/function/:
from pisa.capability import capability
from agents.extensions.function_tool import function_tool

@capability(
    name="calculator",
    description="Perform basic mathematical operations",
    capability_type="function",
    tags=["math", "calculation"]
)
def calculator(operation: str, a: float, b: float) -> float:
    """
    Perform a mathematical operation.
    
    Args:
        operation: The operation (add, subtract, multiply, divide)
        a: First number
        b: Second number
    """
    ops = {
        "add": lambda x, y: x + y,
        "subtract": lambda x, y: x - y,
        "multiply": lambda x, y: x * y,
        "divide": lambda x, y: x / y
    }
    return ops[operation](a, b)
  1. Run your agent:
# Validate configuration
pisa validate .prismer/agent.md

# List available capabilities
pisa list-capabilities

# Run the agent
pisa run .prismer/agent.md -i "Calculate 123 * 456 and show the result"

โœจ Features

๐ŸŽฏ Markdown-Based Agent Definition

Define your entire agent in a single markdown file:

---
name: data-processor
loop_type: plan_execute
capabilities:
  - data_loader
  - data_cleaner
  - data_analyzer
---

## Planning Instructions
Break down data processing tasks into logical steps...

## Execution Guidelines
Ensure data quality at each step...

๐Ÿ”„ Multiple Loop Templates

Choose from battle-tested agent loop patterns:

  • Plan-Execute: Plan first, then execute tasks sequentially
  • ReAct (coming soon): Reason and Act in interleaved fashion
  • Custom: Define your own loop template

๐Ÿ› ๏ธ Three Types of Capabilities

  1. Functions: Simple Python functions with @function_tool decorator
  2. MCP Servers: Connect to Model Context Protocol servers
  3. Subagents: Delegate to specialized sub-agents via handoff
# Function Tool
@capability(capability_type="function")
@function_tool
def my_function(param: str) -> str:
    return f"Processed: {param}"

# Subagent
@capability(capability_type="agent")
def my_subagent() -> Agent:
    return Agent(
        name="specialist",
        instructions="You are a specialist in..."
    )

๐Ÿ“Š Beautiful CLI Output

Real-time execution visualization powered by Rich:

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ๐Ÿ‘ค User Query โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Calculate the matrix multiplication of [[1,2],[3,4]] ร— [[5,6],[7,8]]        โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ๐Ÿ“‹ Planning (Iteration 0) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Goal: Matrix multiplication and analysis                                     โ”‚
โ”‚ Total Tasks: 3                                                               โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ ๐Ÿ”ง Execution (Iteration 1) โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฎ
โ”‚ Task: task_01                                                                โ”‚
โ”‚ Capability: matrix_multiply                                                  โ”‚
โ”‚ Status: โœ…                                                                   โ”‚
โ”‚ Result: [[19, 22], [43, 50]]                                                 โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ

๐Ÿ” Comprehensive Observability

  • Structured Logging: Context-aware logs with structlog
  • Execution Tracking: Monitor planning, execution, observation, and reflection phases
  • Debug Mode: Deep inspection of LLM interactions and tool calls
  • Metrics Collection: Performance tracking for production deployments

๐Ÿ“š Documentation

Document Description
README This file - Quick start and overview
Contributing Guide How to contribute to PISA
CHANGELOG Version history and release notes
Example Agent Full example with math & data processing
Agent Template Agent definition reference
Capability README Capability system documentation

๐Ÿ“– Full documentation coming soon! We're working on comprehensive guides for:

  • Quick Start Tutorial
  • Architecture Deep Dive
  • Capability Development Guide
  • Loop Template Creation
  • API Reference

๐ŸŽจ Examples

Example: Math & Data Processing Agent

A sophisticated agent that performs matrix operations, calculates softmax, and generates structured tables.

Location: example/agent_example/

Run the example:

cd example/agent_example
pisa run .prismer/agent.md -i "Calculate [[1,2],[3,4]] ร— [[5,6],[7,8]], compute softmax, and show results as a table"

Features demonstrated:

  • โœ… Matrix operations (Function capability)
  • โœ… Softmax calculations (MCP capability)
  • โœ… Text-to-table conversion (Subagent capability)
  • โœ… Plan-Execute loop
  • โœ… Context management and persistence
  • โœ… Rich CLI output

Example capabilities:

  • matrix_operations - Matrix math (add, multiply, transpose, etc.)
  • compute_softmax - Temperature-scaled softmax
  • softmax_with_attention - Attention weights calculation
  • text_to_table - Convert text to structured tables

More Examples Coming Soon!

We're working on additional examples:

  • ๐Ÿ”œ Research Assistant - Web search and paper summarization
  • ๐Ÿ”œ Code Review Agent - Automated code analysis and suggestions
  • ๐Ÿ”œ Data Analysis Agent - CSV/JSON processing and visualization
  • ๐Ÿ”œ Customer Support Bot - Multi-turn conversation with knowledge base

๐Ÿ—๏ธ Architecture

PISA follows a clean, modular architecture designed for both development and production deployment:

Development Mode (Local)

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚            Agent Definition Layer               โ”‚
โ”‚         (agent.md - Markdown Config)            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                  โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚         Agent Loop Engine (Core)                โ”‚
โ”‚                                                 โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚  Loop Templates   โ”‚   โ”‚ Capability Systemโ”‚  โ”‚
โ”‚  โ”‚  - Plan-Execute   โ”‚   โ”‚  - Functions     โ”‚  โ”‚
โ”‚  โ”‚  - ReAct (soon)   โ”‚   โ”‚  - MCP Servers   โ”‚  โ”‚
โ”‚  โ”‚  - Custom         โ”‚   โ”‚  - Subagents     โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚            โ”‚                      โ”‚             โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚         Core Modules                     โ”‚  โ”‚
โ”‚  โ”‚  - Planning    - Observation             โ”‚  โ”‚
โ”‚  โ”‚  - Execution   - Reflection              โ”‚  โ”‚
โ”‚  โ”‚  - Validation  - Context Management      โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                  โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚          OpenAI Agent SDK Runtime              โ”‚
โ”‚   (Messages, Tools, Handoffs, Streaming)       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Production Mode (Temporal Workflow)

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚              Temporal Cluster                   โ”‚
โ”‚         (Orchestration & Durability)            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                  โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚         PISA Temporal Workflow                  โ”‚
โ”‚                                                 โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚  Workflow Orchestration Layer            โ”‚  โ”‚
โ”‚  โ”‚  - State Management & Persistence        โ”‚  โ”‚
โ”‚  โ”‚  - Checkpointing & Recovery              โ”‚  โ”‚
โ”‚  โ”‚  - Human-in-the-Loop Support             โ”‚  โ”‚
โ”‚  โ”‚  - Long-running Task Execution           โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ”‚                    โ”‚                            โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”‚
โ”‚  โ”‚         Temporal Activities              โ”‚  โ”‚
โ”‚  โ”‚  - Agent Loop Execution                  โ”‚  โ”‚
โ”‚  โ”‚  - State Checkpoint Storage              โ”‚  โ”‚
โ”‚  โ”‚  - User Notification                     โ”‚  โ”‚
โ”‚  โ”‚  - External API Calls                    โ”‚  โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                  โ”‚
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚         Agent Loop Engine (Same as Dev)         โ”‚
โ”‚   (Referenced from Development Mode above)      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Key Components

Agent Definition Layer

  • Markdown-based configuration (agent.md)
  • Declarative instructions and settings
  • Version-controlled agent specifications

Agent Loop Engine

  • Loop Templates: Reusable behavior patterns (Plan-Execute, ReAct, etc.)
  • Core Modules: Planning, Execution, Observation, Reflection, Validation
  • Capability System: Unified interface for Functions, MCP Servers, and Subagents
  • Context Management: Pyramid Context Engineering with compression

OpenAI Agent SDK

  • LLM interaction primitives
  • Tool/function calling
  • Agent handoffs
  • Message streaming

Temporal Workflow Layer (Production Only)

  • Durable execution with automatic state persistence
  • Failure recovery and retry mechanisms
  • Long-running task support (hours/days)
  • Human-in-the-loop workflows
  • Built on Temporal's OpenAI Agents integration

Execution Modes

Feature Development Mode Production Mode (Temporal)
Use Case Local testing & iteration Production deployment
Execution Direct Python process Temporal Workflow
State In-memory Durable (persisted)
Recovery Manual restart Automatic retry & resume
Monitoring CLI logs Temporal UI + metrics
Scalability Single instance Distributed workers
Cost Free (local) Infrastructure cost

State Management

PISA uses a sophisticated state management system:

  • LoopState: Centralized state for agent execution
  • Context Compression: Pyramid Context Engineering to manage token limits
  • Checkpointing: Periodic state snapshots for recovery
  • State Serialization: JSON-based state persistence

๐Ÿ›ฃ๏ธ Roadmap

Current (v0.1 - Alpha)

  • โœ… Core framework with Plan-Execute loop
  • โœ… Function, MCP, and Subagent capabilities
  • โœ… CLI tools and rich observability
  • โœ… Markdown-based agent definition
  • โœ… Context management with Pyramid Context Engineering
  • ๐Ÿšง Temporal workflow integration (experimental)

Coming Soon (v0.2 - Beta)

  • ๐Ÿ”ฒ Complete Temporal production deployment guide
  • ๐Ÿ”ฒ Additional loop templates (ReAct, ReWOO)
  • ๐Ÿ”ฒ Enhanced context compression with LOD (Level of Detail)
  • ๐Ÿ”ฒ Multi-agent collaboration patterns
  • ๐Ÿ”ฒ Streaming response support
  • ๐Ÿ”ฒ Comprehensive test coverage (target: 80%+)

Future (v1.0 - Stable)

  • ๐Ÿ”ฒ Production-grade Temporal workflow orchestration
  • ๐Ÿ”ฒ High-performance server mode for concurrent agents
  • ๐Ÿ”ฒ Agent marketplace and community templates
  • ๐Ÿ”ฒ Auto-optimization with feedback loops
  • ๐Ÿ”ฒ Multi-modal support (images, audio, video)
  • ๐Ÿ”ฒ Advanced monitoring and observability
  • ๐Ÿ”ฒ Enterprise features (RBAC, audit logs, etc.)

๐Ÿค Contributing

We welcome contributions! Please see our Contributing Guide for details.

Development Setup

# Clone and install in development mode
git clone https://github.com/Prismer-AI/pisa.git
cd pisa
uv pip install -e ".[dev]"

# Run tests
uv run pytest tests/ -v

# Run linter
uv run ruff check src/

# Format code (using ruff format)
uv run ruff format src/

Areas We Need Help

  • ๐Ÿ“ Documentation improvements
  • ๐Ÿ› Bug reports and fixes
  • โœจ New capability implementations
  • ๐ŸŽจ Loop template designs
  • ๐ŸŒ Internationalization

๐Ÿ“„ License

PISA is released under the MIT License.


๐Ÿ™ Acknowledgments

PISA is built on the shoulders of giants:


๐Ÿ“ฌ Contact & Support


โญ Star us on GitHub โ€” it motivates us a lot!

Made with โค๏ธ by Prismer AI Lab

About

pisa markdownic agent framework

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages