Skip to main content

Agent Standard v1 - Universal agent wrapper with ethics, oversight, and health monitoring

Project description

๐Ÿค– CPA Agent Platform

Universal, Ethics-First Agent Runtime for Cloud, Edge & Desktop

๐Ÿš€ DEVELOPERS START HERE: platform/agentify/DEVELOPER_GUIDE.md

๐Ÿ“– Quick Start: core/agent_standard/QUICKSTART_COMPLETE.md - Create your first agent in 5 minutes

๐Ÿ“ Templates: core/agent_standard/templates/ - Ready-to-use JSON templates

๐Ÿค– AI Prompt: See Developer Guide for AI-assisted development

The CPA Agent Platform is a production-ready framework for building, deploying, and managing AI agents with guaranteed ethics compliance, universal deployment, and 3 lines of code to get started.

Built on the Agent Standard v1 - the world's first universal agent wrapper with runtime-active ethics, desire-based health monitoring, and mandatory four-eyes principle.


๐Ÿ—บ๏ธ Documentation Navigation

๐Ÿš€ For Developers (Start Here!)

Document Description
๐Ÿš€ Developer Guide โฌ…๏ธ START HERE Complete guide to building agents & apps
๐Ÿ“– Quick Start Create your first agent in 5 minutes
๐Ÿ“ Templates Ready-to-use JSON templates
๐Ÿ“š Examples Real-world agent examples
๐Ÿ” Agent Anatomy Quick reference for all 14 sections

๐Ÿ“– Reference Documentation

Document Description
README.md โฌ…๏ธ You are here Main entry point, overview
Agent Standard v1 Spec Complete specification
Agentify Platform Agentic economy platform
Architecture System architecture
Implementation Status Current progress

๐Ÿ”ง Advanced

Document Description
Deployment Guide Deploy to Cloud/Edge/Desktop
Documentation Index Complete documentation index
Contributing How to contribute
Changelog Version history
License Dual License (MIT + Commercial)

๐Ÿ—๏ธ Platform Layers

The CPA Agent Platform consists of two layers:

1. Agent Standard v1 (Foundation Layer)

The universal agent wrapper with ethics, desires, and health monitoring.

  • โœ… Universal Wrapper - Works with any agent
  • โœ… Ethics Engine - Runtime-active constraints
  • โœ… Desire Monitor - Continuous health tracking
  • โœ… Oversight Controller - Four-eyes principle
  • โœ… Deployment Agnostic - Cloud/Edge/Desktop

See: Agent Standard v1 Spec


2. Agentify Platform (Platform Layer)

The agentic economy platform built on top of Agent Standard v1.

  • ๐Ÿ“ฑ Apps - React apps with built-in orchestrators
  • ๐Ÿค– Agents - Autonomous agents that join teams
  • ๐Ÿช Marketplace - Central discovery and acquisition
  • ๐Ÿ”„ Data Sharing - Secure cross-app data access
  • ๐Ÿ‘ฅ Team Building - LLM-guided team formation
  • ๐Ÿ’ฐ Revenue Sharing - Automatic billing

See: Agentify Platform


โšก Quick Start (3 Lines)

from core.agent_standard.decorators import agent_tool

@agent_tool(ethics=["no_harm"], desires=["trust"])
def my_function(x: int) -> int:
    return x * 2

# That's it! Fully compliant with Agent Standard v1!

๐ŸŽฏ Why CPA Agent Platform?

The Problem

  • โŒ AI agents lack runtime-active ethics
  • โŒ No standardized compliance framework
  • โŒ Different behavior on Cloud vs Edge vs Desktop
  • โŒ No health monitoring or oversight
  • โŒ Complex integration with existing code

The Solution

  • โœ… Ethics-First: Runtime-active ethics, not documentation
  • โœ… Universal Runtime: Same agent, same behavior everywhere
  • โœ… 3 Lines to Compliance: Minimal code changes
  • โœ… Health Monitoring: Desire-based tension tracking
  • โœ… Four-Eyes Principle: Mandatory separation of instruction and oversight
  • โœ… Zero-Config Deployment: Cloud, Edge, Desktop - no changes needed

๐Ÿš€ Features

Agent Standard v1 Core

  • Ethics Engine: Runtime-active hard/soft constraints
  • Desire Monitor: Continuous health tracking with auto-escalation
  • Oversight Controller: Four-eyes principle enforcement
  • Manifest-Driven: Single source of truth for all configuration
  • Universal Runtime: Identical behavior on Cloud/Edge/Desktop

CPA Desktop Automation

  • Desktop Automation: Click, type, screenshot, window management
  • Vision Layer: OCR, element detection, screenshot analysis
  • Cognitive Execution: LLM-guided automation
  • Multi-Platform: Windows, macOS, Linux

Developer Experience

  • 3 Lines to Compliance: @agent_tool decorator
  • AI-Assisted Development: Pre-built prompts for GitHub Copilot, Cursor, Augment
  • CLI Tool: agent-std init, validate, run
  • Zero-Config Deployment: Same manifest everywhere

๐Ÿ“ฆ Installation

# Clone repository
git clone https://github.com/JonasDEMA/cpa_agent_platform.git
cd cpa_agent_platform

# Install dependencies
poetry install

# Verify installation
agent-std --version

๐ŸŽ“ Quick Start Guide

1. Create Your First Agent

# Interactive wizard
agent-std init my-agent

# Follow prompts:
# - Agent name: My First Agent
# - Description: My first Agent Standard v1 agent
# - Ethics: no_harm
# - Oversight: human:supervisor

2. Implement Your Logic

# my-agent/agent.py
from core.agent_standard.decorators import agent_tool

@agent_tool(
    name="greet",
    description="Greet a user",
    ethics=["no_harm"],
    desires=["trust", "helpfulness"]
)
async def greet(name: str) -> str:
    """Greet a user by name."""
    return f"Hello, {name}!"

3. Validate & Run

# Validate compliance
agent-std validate

# Run agent
agent-std run

4. Deploy Anywhere

# Cloud (Railway)
railway up

# Edge (Raspberry Pi)
docker run -d my-agent:latest

# Desktop (Windows/Mac/Linux)
agent-std run manifest.json

Same manifest. Same code. Same behavior. Everywhere.


๐Ÿ“š Documentation

Core Documentation

Developer Resources

Integration Guides


๐Ÿ—๏ธ Architecture

The CPA Agent Platform consists of two main components:

1. Agent Standard v1 (Universal Core)

The universal wrapper that provides ethics, oversight, and health monitoring for ANY agent.

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    Agent Standard v1                         โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  โ€ข Ethics Engine (Runtime-Active)                           โ”‚
โ”‚  โ€ข Desire Monitor (Health Tracking)                         โ”‚
โ”‚  โ€ข Oversight Controller (Four-Eyes)                         โ”‚
โ”‚  โ€ข Manifest Parser & Validator                              โ”‚
โ”‚  โ€ข Universal Runtime (Cloud/Edge/Desktop)                   โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

2. CPA Desktop Automation (Tool Category)

Desktop automation tools that integrate seamlessly with Agent Standard v1.

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                  CPA Desktop Automation                      โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚  โ€ข Desktop Automation (Click, Type, Screenshot)             โ”‚
โ”‚  โ€ข Vision Layer (OCR, Element Detection)                    โ”‚
โ”‚  โ€ข Cognitive Execution (LLM-Guided)                         โ”‚
โ”‚  โ€ข Window Management                                        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

See ARCHITECTURE.md for detailed architecture documentation.


๐ŸŽฏ Use Cases

1. Desktop Automation

Automate repetitive desktop tasks with ethics compliance.

@agent_tool(ethics=["no_unauthorized_access"], desires=["trust"])
async def automate_invoice_processing():
    # Open accounting software
    # Extract invoice data
    # Process payment
    pass

2. API Integration

Wrap existing APIs with Agent Standard compliance.

@agent_tool(ethics=["no_spam", "privacy_first"], desires=["trust"])
async def send_email(to: str, subject: str, body: str):
    # Send email via SMTP
    pass

3. LLM-Guided Automation

Use LLMs to guide complex automation workflows.

@agent_tool(ethics=["no_harm"], desires=["trust", "helpfulness"])
async def cognitive_execute(goal: str):
    # LLM plans and executes steps
    pass

4. Legacy Code Migration

Wrap existing code without modifications.

# Existing function (ZERO changes!)
def legacy_function(x: int) -> int:
    return x * 2

# Wrap at runtime
agent = wrap_as_agent(legacy_function, manifest="manifest.json")

๐Ÿ”’ Ethics & Compliance

Ethics are runtime-active, not documentation.

Hard Constraints (BLOCK execution)

@agent_tool(ethics=["no_spam", "no_unauthorized_access"])
async def send_email(to: str):
    # Ethics engine evaluates BEFORE execution
    # Violation = BLOCKED + logged
    pass

Soft Constraints (WARN + log)

@agent_tool(ethics=["inform_before_action"])  # Soft constraint
async def delete_file(path: str):
    # Warning logged, execution continues
    pass

Four-Eyes Principle (Mandatory)

{
  "authority": {
    "instruction": {"type": "human", "id": "user"},
    "oversight": {"type": "human", "id": "supervisor", "independent": true}
  }
}

Instruction โ‰  Oversight (enforced by validator)


๐Ÿ“Š Health Monitoring

Agents continuously track desire satisfaction and report health state.

# Desires defined in manifest
"desires": {
  "profile": [
    {"id": "trust", "weight": 0.4},
    {"id": "helpfulness", "weight": 0.3},
    {"id": "coherence", "weight": 0.3}
  ]
}

# Health states
# - healthy    (tension < 0.55)
# - stressed   (0.55 โ‰ค tension < 0.75)
# - degraded   (0.75 โ‰ค tension < 0.90) โ†’ Auto-escalate
# - critical   (tension โ‰ฅ 0.90)        โ†’ Auto-escalate

๐Ÿ› ๏ธ Development

Prerequisites

  • Python 3.11+
  • Poetry
  • Docker (optional)

Setup

# Clone repository
git clone https://github.com/JonasDEMA/cpa_agent_platform.git
cd cpa_agent_platform

# Install dependencies
poetry install

# Run tests
poetry run pytest

# Run linter
poetry run ruff check .

Project Structure

cpa_agent_platform/
โ”œโ”€โ”€ core/
โ”‚   โ””โ”€โ”€ agent_standard/          # Agent Standard v1 implementation
โ”‚       โ”œโ”€โ”€ agent.py             # Core Agent class
โ”‚       โ”œโ”€โ”€ decorators.py        # @agent_tool decorator
โ”‚       โ”œโ”€โ”€ ethics.py            # Ethics engine
โ”‚       โ”œโ”€โ”€ desires.py           # Desire monitor
โ”‚       โ”œโ”€โ”€ oversight.py         # Oversight controller
โ”‚       โ”œโ”€โ”€ manifest.py          # Manifest parser
โ”‚       โ”œโ”€โ”€ cli/                 # CLI tool
โ”‚       โ”œโ”€โ”€ examples/            # Examples
โ”‚       โ””โ”€โ”€ prompts/             # AI prompts
โ”œโ”€โ”€ agents/
โ”‚   โ””โ”€โ”€ desktop_rpa/             # CPA Desktop Automation
โ”‚       โ”œโ”€โ”€ executors/           # Click, Type, Screenshot
โ”‚       โ”œโ”€โ”€ cognitive/           # LLM-guided execution
โ”‚       โ””โ”€โ”€ vision/              # OCR, element detection
โ”œโ”€โ”€ ARCHITECTURE.md              # Architecture documentation
โ”œโ”€โ”€ DEPLOYMENT.md                # Deployment guide
โ””โ”€โ”€ README.md                    # This file

๐Ÿค Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.


๐Ÿ“„ License

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


๐Ÿ”— Resources


๐Ÿ™ Acknowledgments

Built with โค๏ธ for the Agentic Economy.

Special thanks to:

  • The Agent Standard v1 community
  • Contributors and early adopters
  • The open-source AI community

๐Ÿ“ž Support


Start building ethics-first agents today! ๐Ÿš€


๐ŸŽฏ Legacy CPA Scheduler/Planner

The original CPA Scheduler/Planner is now integrated as a tool category within the Agent Standard v1 framework.

For legacy documentation, see:

The legacy components are still available but are now wrapped with Agent Standard v1 compliance for ethics, oversight, and health monitoring.

Legacy Setup

For detailed setup instructions for the legacy CPA Scheduler/Planner, see docs/QUICKSTART_LEGACY.md.


Ready to build ethics-first agents? Start with the Quick Start Guide! ๐Ÿš€

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

agentify_sdk-1.0.0.tar.gz (390.5 kB view details)

Uploaded Source

Built Distribution

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

agentify_sdk-1.0.0-py3-none-any.whl (76.8 kB view details)

Uploaded Python 3

File details

Details for the file agentify_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: agentify_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 390.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for agentify_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a80f4c62f70c45e4f66f9925e55b2df4b007014d1d29c027f2f50b157dbb8f76
MD5 42c0eb0a5842c8d1f2552e65210abf4f
BLAKE2b-256 10cd792d15f9b06bf0277f87f43e70fcb163f94c97132e09b1c9f68c74916c65

See more details on using hashes here.

File details

Details for the file agentify_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: agentify_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 76.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for agentify_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 14ecb232600c69f87e782aa5f875e7acefd40e5caeb838c08c07701f238f6c7c
MD5 aae6b1b9ba5c55a2ca034b1ca9f20966
BLAKE2b-256 991ef77bed994f867c17b0d322042945356aaed0d5eb84baf890c4febc5e43b0

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