CrewAI-Style Pod Roles
9 specialized agents (BA, Architect, Database, Backend, QA, Reviewer, etc.) with strict JSON schemas, least-privilege tools, and per-agent model routing.
Prompt-driven feature delivery combining CrewAI-style role specialization with LangGraph-style stateful graphs. 100% native PHP—zero Python code.

Welcome to the documentation for LaraOrcest (yousefhatem12/lara-orcest), an enterprise-grade, prompt-driven multi-agent orchestration framework built exclusively for Laravel.

Interactive workflow visualization. Click any agent node to inspect responsibilities, sandboxed tools, and state outputs.
Translates backlog into an idiomatic Laravel technical plan: migrations, models, form requests, controllers, routes, and tests.
LaraOrcest transforms natural language requirements into fully tested, documented, and version-controlled Laravel features. It combines two foundational paradigms of modern agentic artificial intelligence natively inside your Laravel application:
GraphEngine) governing state progression through conditional edge rules (EdgeRule), transactional checkpointing (StateCheckpointer), bounded cyclic bug-fixing loops, deterministic parallel execution waves, and Human-in-the-Loop review gates.Dedicated agents for BA, PM, Architect, Database, Backend, QA, and Reviewer with strict JSON schemas and least-privilege tools.
Stateful RunState container, checkpointer persistence (JSON/DB), conditional EdgeRules, and bounded cyclic bug repairs.
100% native PHP 8.2+ via Composer. Direct HTTP driver connects to LiteLLM Proxy, vLLM, Ollama, OpenRouter, Anthropic, or OpenAI.
Orchestrate complete Domain-Driven Design bounded contexts (Tenancy, Catalog, Orders) with strict global TenantScope isolation.
Extract, normalize, and reconcile structured data from two target URLs guided by BA/PM criteria and dispatch to target endpoints.
PathGuard filesystem boundaries, Artisan whitelists, Git branch isolation, and Human-in-the-Loop review gates.
Compact .lara-orcest/memory.json store indexing architectural decisions, codebase models, and bug-fix root cause lessons.
Automated Pest/PHPUnit assertion coverage with SwaggerAgent authoring OpenAPI 3.0+ specs in JSON and YAML.
┌──────────────────────────────────┐
│ Natural Language Prompt │
└────────────────┬─────────────────┘
│
▼
┌──────────────────────────────────┐
│ business_analyst │
└────────────────┬─────────────────┘
│
▼
┌──────────────────────────────────┐
│ product_manager │
└────────┬─────────────────┬───────┘
│ (if scraping) │
▼ │
┌───────────────────────────────┐ │
│ web_scraping_agent │ │
└───────────────┬───────────────┘ │
│ │
▼ ▼
┌──────────────────────────────────┐
│ architect │
└────────────────┬─────────────────┘
│
▼
┌──────────────────────────────────┐
│ git_agent │
└────────────────┬─────────────────┘
│
▼
┌──────────────────────────────────┐
│ database_agent │
└────────────────┬─────────────────┘
│
▼
┌──────────────────────────────────┐
│ backend_agent │
└────────┬─────────────────┬───────┘
│ (if swagger) │
▼ │
┌───────────────────────────────┐ │
│ swagger_agent │ │
└───────────────┬───────────────┘ │
│ │
▼ ▼
┌──────────────────────────────────┐
│ qa_agent │
└────────────────┬─────────────────┘
│
[Tests Passing?]
├── No ──► fixer_agent ──┐
│ ▲ │
│ └──────────┘
▼ Yes
┌──────────────────────────────────┐
│ reviewer_agent │
└────────────────┬─────────────────┘
│
[Review Approved?]
├── No ──► fixer_agent
▼ Yes
┌──────────────────────────────────┐
│ Git Milestone & Memory Store │
└──────────────────────────────────┘Most agent frameworks (CrewAI, LangGraph, AutoGen) require running Python sidecars, external FastAPI microservices, or complex process bridges. LaraOrcest runs 100% natively in PHP 8.2+ via Composer. There are no virtual environments, no daemon processes to manage, and no serialization bridges between PHP and Python.
LaraOrcest communicates with language models via the standard OpenAI HTTP protocol through its built-in OpenAiCompatibleHttpDriver. You can point LaraOrcest directly to:
LaraOrcest agents do not generate generic scripts. They generate idiomatic Laravel components that follow modern best practices:
rules() and authorize()).routes/api.php or routes/web.php.Autonomous code generation must be safe:
.env, .git, vendor, node_modules, secret keys) is blocked by PathGuard.make:*, route:list, migrate:status, test) can be invoked. Destructive commands like migrate:fresh, --force, or --drop-views are blocked.orcest/...). Working trees on main or master are protected.fixer_agent iterates up to max_fix_attempts (default: 3) to prevent runaway token spend.Inspired by modern compact memory architectures, LaraOrcest maintains a persistent codebase knowledge store in .lara-orcest/memory.json. It indexes conventions, architectural decisions, and bug-fix lessons from past runs, injecting targeted context into agent prompts within a strict token budget.
Explore the comprehensive LaraOrcest documentation guides:
| Guide | Description |
|---|---|
| Quickstart Guide | Step-by-step installation, local setup via Composer path repository, .env setup, dry-run previews, running builds, and resuming runs. |
| Architecture & Engine | Detailed breakdown of RunState, StateCheckpointer, EdgeRule, GraphEngine, parallel scheduler (depends_on, scope_paths, fan-in), and Project Memory. |
| Agents & Model Routing | In-depth documentation for all 9 core agents and 2 conditional agents (web_scraping_agent, swagger_agent), plus per-agent model routing (llm.agent_models). |
| Safety, Sandboxing & HITL | Sandboxed tools (FileReaderTool, PatchWriterTool, ArtisanRunnerTool, TestRunnerTool, GitCommandTool), path security, and Human-in-the-Loop controls. |
| Practical Real-World Use Cases | Practical walkthroughs: end-to-end feature delivery, two-site web scraping, multi-model proxy routing, interactive vs. unattended execution, and multi-vendor DDD platforms. |
config/lara-orcest.php: Central configuration file for drivers, guardrails, memory, tools, and agents.src/: Core PHP framework implementation (Agents, Commands, Contracts, Graph, LLM Drivers, Memory, State, Tools).examples/: Ready-to-use configuration files, LiteLLM configs, prompt templates, and orchestration scripts.spec.md: Complete architectural and technical specification.