Quickstart Guide
This guide walks you through setting up, configuring, and executing LaraOrcest (yousefhatem12/lara-orcest) inside a local Laravel application.
Quickstart & Artisan CLI Workflow Walkthrough
1. Prerequisites
Before installing LaraOrcest, verify that your environment meets the minimum requirements:
- PHP: 8.2 or higher
- Laravel Framework: 10.x, 11.x, or 12.x
- Git: Initialized in your target Laravel repository (
git rev-parse --is-inside-work-treereturnstrue) - Composer: 2.2 or higher
- LLM Access: An API key for OpenAI, Anthropic, Gemini, OpenRouter, or a local/remote OpenAI-compatible proxy (such as LiteLLM or Ollama).
2. Installation via Composer (Packagist)
Install LaraOrcest into your Laravel application using Composer:
composer require yousefhatem12/lara-orcestIf you plan to use LaraOrcest exclusively for development, prototyping, and automated test generation:
composer require yousefhatem12/lara-orcest --devCLI Execution Modes
Once installed via composer require yousefhatem12/lara-orcest (or --dev), you can operate LaraOrcest using either:
- The Standalone Control-Plane CLI (
vendor/bin/lara-orcest):./vendor/bin/lara-orcest build "Prompt..." - The Embedded Artisan Command:
php artisan orcest:build "Prompt..."
You can also run LaraOrcest from a cloned standalone repository above any external target Laravel application via bin/lara-orcest:
git clone https://github.com/yousefhatem12/LaraOrcest.git
cd LaraOrcest && composer install
bin/lara-orcest init /path/to/my-laravel-app
bin/lara-orcest build "Add multi-tenant workspace isolation" --target=/path/to/my-laravel-appTIP
Before PackageManager installs Laravel or any Composer dependencies in targetProjectPath, it prints the exact target Laravel version and package version constraints (plus the driving prompt specification) to the terminal. Use --dry-run to preview without modifying disk, --interactive to pause at Human-in-the-Loop gates, or --no-human-review to run autonomously.
Pre-Release & Development Alternatives
Option A: Local Development via Composer path Repository
If you are developing or contributing to LaraOrcest locally alongside your Laravel application, register it as a Composer path repository inside your Laravel app's composer.json:
{
"repositories": [
{
"type": "path",
"url": "../LaraOrcest",
"options": {
"symlink": true
}
}
],
"require-dev": {
"yousefhatem12/lara-orcest": "*@dev"
},
"minimum-stability": "dev",
"prefer-stable": true
}Then run composer update to symlink the package:
composer update yousefhatem12/lara-orcestOption B: Remote Branch Testing via Composer vcs Repository
If you want to test the package directly from GitHub before its official Packagist release:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/yousefhatem12/LaraOrcest.git"
}
]
}Then require the development branch:
composer require yousefhatem12/lara-orcest:dev-main --dev3. Publish Configuration & Migrations
Publish Configuration
Publish the package configuration file to config/lara-orcest.php:
php artisan vendor:publish --tag=lara-orcest-configPublish Checkpointer Migrations (Optional)
By default, LaraOrcest uses the lightweight filesystem checkpointer driver (json), storing run state snapshots inside .lara-orcest/runs/.
If you prefer database persistence (recommended for teams and production environments):
php artisan vendor:publish --tag=lara-orcest-migrations
php artisan migrateThen set your checkpointer driver in .env:
LARA_ORCEST_CHECKPOINTER=database4. Configure Environment Variables
Add the necessary configuration keys to your Laravel application's .env file. By default, LaraOrcest connects to any OpenAI-compatible HTTP endpoint.
Direct OpenAI Setup
# Enable LaraOrcest
LARA_ORCEST_ENABLED=true
# LLM Driver Configuration
LARA_ORCEST_LLM=openai_compatible
LARA_ORCEST_LLM_BASE_URL=https://api.openai.com/v1
LARA_ORCEST_LLM_API_KEY=sk-proj-your-openai-api-key-here
LARA_ORCEST_LLM_MODEL=gpt-4o-mini
LARA_ORCEST_LLM_TIMEOUT=60
LARA_ORCEST_LLM_RETRIES=2LiteLLM Proxy Setup (Recommended for Enterprise)
If you run a local or remote LiteLLM proxy:
LARA_ORCEST_ENABLED=true
LARA_ORCEST_LLM=openai_compatible
LARA_ORCEST_LLM_BASE_URL=http://127.0.0.1:4000/v1
LARA_ORCEST_LLM_API_KEY=sk-litellm-proxy-secret-key
LARA_ORCEST_LLM_MODEL=gpt-4o-mini5. Previewing Execution with --dry-run
Before allowing agents to write files or create Git branches, preview the entire workflow safely using the --dry-run flag:
php artisan orcest:build "Create a customer feedback API with ratings and comments" --dry-runWhat Happens in Dry-Run Mode?
business_analystanalyzes the prompt and writes domain requirements.product_managerdrafts a prioritized backlog of tasks with acceptance criteria.architectformulates a complete technical blueprint (migrations, models, controllers, routes).PatchWriterToolintercepts all file modifications, logging them without modifying your disk.GitCommandToolskips branch creation and commits.- The CLI displays the proposed tasks, mock artifacts, and step summaries cleanly.
6. Running a Full Build
When you are ready to generate code, run orcest:build without the --dry-run flag:
php artisan orcest:build "Create a customer feedback API with ratings (1-5), optional comments, and an admin moderation endpoint"Real-Time Console Output
LaraOrcest provides real-time visibility into each execution node:
Starting LaraOrcest execution
Prompt: Create a customer feedback API with ratings (1-5), optional comments, and an admin moderation endpoint
[Step 1] business_analyst ............. Domain requirements and entities analyzed
[Step 2] product_manager .............. Backlog with 3 prioritized tasks created
[Step 3] architect .................... Architecture plan formulated
[Step 4] git_agent .................... Feature branch created [orcest/customer-feedback-api]
[Step 5] database_agent ............... Generated migration and Feedback model
[Step 6] backend_agent ................ Generated FeedbackController and FormRequests
[Step 7] qa_agent ..................... Generated tests/Feature/FeedbackApiTest.php
[Step 8] qa_agent ..................... Running test suite: php artisan test --without-tty
[Step 9] reviewer_agent ............... PSR-12 and security audit: APPROVED
✔ LaraOrcest completed successfully! [Run ID: run_67e1a3b890f12]
Backlog Tasks ................................................. 3 tasks planned
┌────────┬──────────────────────────────────────────┬──────────┬────────────────┐
│ ID │ Title │ Priority │ Criteria Count │
├────────┼──────────────────────────────────────────┼──────────┼────────────────┤
│ task_1 │ Feedback Migration and Eloquent Model │ 1 │ 3 │
│ task_2 │ Feedback Submission & Moderation API │ 2 │ 4 │
│ task_3 │ Feature Tests for Feedback Submission │ 3 │ 4 │
└────────┴──────────────────────────────────────────┴──────────┴────────────────┘
Artifacts ....................................... 5 files generated/updated
┌────────────────────────────────────────────────────────┬────────┬────────────────────────────────┐
│ Path │ Action │ Summary │
├────────────────────────────────────────────────────────┼────────┼────────────────────────────────┤
│ database/migrations/2026_01_01_create_feedbacks_table │ create │ Create feedbacks table │
│ app/Models/Feedback.php │ create │ Eloquent model with casts │
│ app/Http/Requests/StoreFeedbackRequest.php │ create │ Form request validation rules │
│ app/Http/Controllers/FeedbackController.php │ create │ Submission & moderation logic │
│ tests/Feature/FeedbackApiTest.php │ create │ Feature test coverage │
└────────────────────────────────────────────────────────┴────────┴────────────────────────────────┘
Automated Tests ......................................................... PASSED
Summary: Tests: 4 passed (8 assertions)
Reviewer Sign-off ..................................................... APPROVED
- Code adheres strictly to Laravel 11/12 conventions and PSR-12 formatting.
- Authorization logic correctly prevents non-admin moderation.
Git Feature Branch ................................ orcest/customer-feedback-api
Steps Taken .................................................................. 9
Fix Attempts ............................................................. 0 / 3
Total Tokens Used ....................................................... 12,4507. Inspecting Runs with orcest:status
To inspect the history of recent orchestration runs:
php artisan orcest:statusOutput:
Recent LaraOrcest Execution Runs:
┌─────────────────────┬───────────────────────────────────────────────┬──────────────────┬───────────┬─────────────────────┐
│ Run ID │ Prompt │ Current Node │ Status │ Updated At │
├─────────────────────┼───────────────────────────────────────────────┼──────────────────┼───────────┼─────────────────────┤
│ run_67e1a3b890f12 │ Create a customer feedback API with rating... │ __completed__ │ completed │ 2026-11-22 20:15:30 │
│ run_67e199f1a0b34 │ Add Stripe webhook handling for subscrip... │ after_plan │ paused │ 2026-11-22 19:40:12 │
└─────────────────────┴───────────────────────────────────────────────┴──────────────────┴───────────┴─────────────────────┘To view comprehensive telemetry, artifacts, test output, and token usage for a specific run:
php artisan orcest:status run_67e1a3b890f128. Resuming Paused or Incomplete Runs
If a run paused at a Human-in-the-Loop gate (e.g. after_plan or before_commit) or halted unexpectedly, resume execution using the --resume option:
php artisan orcest:build --resume=run_67e199f1a0b34Resuming with Decision Flags
You can provide approval or rejection flags directly on resume:
# Approve the paused gate with notes
php artisan orcest:build --resume=run_67e199f1a0b34 --approve --note="Approved by lead engineer"
# Reject the paused plan and terminate the run
php artisan orcest:build --resume=run_67e199f1a0b34 --reject --note="Requires multi-tenant partitioning"Alternatively, use the dedicated review command:
php artisan orcest:approve run_67e199f1a0b34 --note="Approved"9. Common CLI Flags Reference
| Option | Description |
|---|---|
--target=/path/to/app | Path to the external target Laravel workspace (targetProjectPath). |
--laravel-version=^12.0 | Target Laravel version constraint (skips interactive version prompt). |
--prompt="Your prompt" | Prompt string (alternative to argument). |
--dry-run | Previews changes without touching the filesystem or Git. |
--interactive | Enables interactive Human-in-the-Loop review gates. |
--no-human-review | Completely bypasses human review gates for unattended CI/CD automation. |
--resume={run_id} | Resumes a paused or stopped run from its persisted state checkpoint. |
--approve | Approves a paused review gate when resuming. |
--reject | Rejects a paused review gate when resuming. |
--note="Comment" | Attaches an approval or rejection note. |
--swagger | Enables automatic OpenAPI/Swagger documentation generation via swagger_agent. |
--no-swagger | Explicitly disables Swagger generation. |
--swagger-format=json|yaml|both | Sets the output format for generated OpenAPI specs. |
--swagger-path=docs/swagger.json | Custom destination file path for Swagger specs. |
--no-scrape | Skips web_scraping_agent even if URLs are present in prompt. |
--no-memory | Disables Project Memory recall and post-run consolidation. |
--max-steps=40 | Overrides the maximum graph step guardrail limit. |
--max-fix-attempts=3 | Overrides the maximum cyclic bug-fix retry budget. |
--llm=ollama | Overrides the default LLM driver for this specific run. |
Next Steps
- Learn how the engine works under the hood: Architecture Guide
- Discover all specialized agents: Agents Guide
- Read about sandbox tools and approval gates: Safety & HITL Guide
- Explore practical real-world scenarios: Use Cases
