Skip to content

personamanagmentlayer/pcl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

64 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

PCL β€” Persona Control Language

╔═══════════════════════════════════════════════════════════════════════════════╗
β•‘                                                                               β•‘
β•‘   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—  β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ•—                                                         β•‘
β•‘   β–ˆβ–ˆβ•”β•β•β–ˆβ–ˆβ•—β–ˆβ–ˆβ•”β•β•β•β•β•β–ˆβ–ˆβ•‘         The World's First Programming Language          β•‘
β•‘   β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•”β•β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘              for AI Persona Management                  β•‘
β•‘   β–ˆβ–ˆβ•”β•β•β•β• β–ˆβ–ˆβ•‘     β–ˆβ–ˆβ•‘                                                         β•‘
β•‘   β–ˆβ–ˆβ•‘     β•šβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ•—    Make AI behavior programmable, portable,        β•‘
β•‘   β•šβ•β•      β•šβ•β•β•β•β•β•β•šβ•β•β•β•β•β•β•           and predictable.                         β•‘
β•‘                                                                               β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

License Version TypeScript Security Tests Coverage

Standards Compliance: ISO 27001 ISO 42001 OWASP LLM EU AI Act


What is PCL?

PCL (Persona Control Language) is a governance-first programming language for AI persona management and multi-agent orchestration. Unlike traditional application languages, PCL is designed for accountability, security, and compliance in AI systems.

PCL = Terraform + OpenPolicyAgent + AI Personas

PCL enables enterprises and developers to:

  • Define personas with explicit capabilities, constraints, and risk classifications (ISO 42001)
  • Govern AI behavior through auditable policies and access controls (ISO 27001)
  • Orchestrate complex multi-agent workflows with human oversight
  • Deploy consistently across Claude, GPT, Gemini, Azure, and open-source LLMs
  • Audit every action with immutable logs aligned to compliance frameworks
  • Comply with EU AI Act, GDPR, OWASP LLM Top 10, and Zero Trust principles

Quick Example

// Define a security analyst persona
pub persona SEC {
  intent: "Identify and mitigate security vulnerabilities"
  tone: vigilant

  skills {
    "OWASP Top 10"
    "STRIDE threat modeling"
    "Security code review"
  }

  constraints {
    "Always assume breach"
    maxResponseTime <= 5s
  }
}

// Compose a security review team
pub team SecurityReview {
  members: [SEC, AUDIT, ARCHI, CRITIC]
  primary: SEC
  merge: Debate
  quorum: 3/4
}

// Define a code review workflow
pub workflow CodeReview {
  steps: DEV -> (ARCHI || SEC) -> CRITIC -> merge(Consensus)
  timeout: 60s
  fallback: SIMPLIFY
}

Installation

# Clone the repository
git clone https://github.com/personamanagmentlayer/pcl.git
cd pcl

# Install dependencies
npm install

# Build PCL
npm run build

# Verify installation
node dist/cli/index.js --version

πŸ“– Complete Installation Guide β†’


Documentation

Getting Started

For Developers

Specifications & Standards

Complete Documentation Index

πŸ“š Full Documentation β†’


Key Features

Production-Ready Testing βœ…

  • 5,720 total tests (96.3% pass rate)
  • 50.66%+ code coverage (targeting 90%)
  • 153 test files covering all major modules
  • Comprehensive testing: LSP, Observability, MCP, Registry, Providers, CLI, Codegen, Parser, E2E

πŸ“Š Testing Status β†’ | πŸ—ΊοΈ Coverage Roadmap β†’

Supported AI Providers (8)

Anthropic Claude β€’ OpenAI GPT β€’ Google Gemini β€’ DeepSeek β€’ Ollama β€’ Azure OpenAI β€’ AWS Bedrock β€’ Mock

πŸ€– Provider Guide β†’

Core Capabilities

  • βœ… Language Server Protocol (LSP) - Full IDE support with IntelliSense, diagnostics, navigation
  • βœ… Skills Ecosystem - 100% compatible with agentskills.io and Claude Code
  • βœ… Model Context Protocol (MCP) - Expose personas as standardized AI services
  • βœ… Registry System - 4 backends (Memory, JSON, SQLite, PostgreSQL)
  • βœ… Observability - Metrics, SLO tracking, tracing, telemetry, health checks
  • βœ… Code Generation - Multi-target compilation (TypeScript, Python, JSON, YAML, Markdown)

🎯 Complete Features List β†’


Production Readiness

Status: 🟑 APPROACHING PRODUCTION READY

Production Readiness Score: 78/100 (+33 from January 2026)

  • βœ… Safe for: Development, prototyping, proof-of-concept, internal tools, beta testing
  • 🟑 Approaching: Production, customer-facing applications (after final security audit)
  • ❌ Not yet ready for: High-stakes regulated systems (needs 90% coverage)

πŸ“ˆ Production Readiness Report β†’


Roadmap

Phase 1: Foundation βœ… COMPLETE

  • βœ… Core compiler implementation
  • βœ… 8 AI provider integrations
  • βœ… Registry system with 4 backends
  • βœ… 50%+ test coverage baseline

Phase 2: Ecosystem βœ… COMPLETE

  • βœ… Language Server Protocol (LSP)
  • βœ… VS Code extension
  • βœ… Skills ecosystem integration
  • βœ… Model Context Protocol (MCP)

Phase 3: Scale (Q2 2026)

  • πŸ”„ Advanced merge strategies
  • πŸ”„ Event streaming & observability
  • πŸ”„ 90% test coverage
  • πŸ”„ Production security audit

Phase 4: Maturity (Q4 2026)

  • πŸ“… Visual debugging tools
  • πŸ“… Performance profiling
  • πŸ“… Cloud deployment
  • πŸ“… Marketplace

πŸ—ΊοΈ Complete Roadmap β†’


Community & Support

  • πŸ“– Documentation - Complete guides and API reference
  • πŸ› GitHub Issues - Bug reports and feature requests
  • πŸ’¬ Discord - Community discussion
  • 🐦 Twitter - Updates and announcements

Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

# Fork and clone the repository
git clone https://github.com/YOUR_USERNAME/pcl.git
cd pcl

# Install dependencies
npm install

# Run tests
npm test

# Build the project
npm run build

πŸ“‹ Contributing Guide β†’ | πŸ“œ Code of Conduct β†’


License

PCL uses dual licensing to support both software development and documentation sharing:

  • Code (src/, tests/, scripts/): Apache 2.0 - Permissive software license with patent grant
  • Documentation (docs/, SPEC/, GOVERNANCE/): CC BY 4.0 - Creative Commons for specs and guides
  • Trademarks: IbIFACE - See Trademark Policy

This dual licensing approach follows industry best practices (Rust, Kubernetes, OpenAPI) and supports PCL's mission as a governance-first standard for enterprise AI.

For contribution licensing, see NOTICE.


PCL β€” Making AI behavior programmable, portable, and predictable.

Get Started β€’ Documentation β€’ Community

Packages

 
 
 

Contributors