Download the PHP package rhazen35/agent-orchestration without Composer

On this page you can find all versions of the php package rhazen35/agent-orchestration. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package agent-orchestration

![Agent Orchestration](assets/header.png) # rhazen35/agent-orchestration **A tool-agnostic agent orchestration setup for spec-driven development.** Give your AI agent a structured, auditable factory pipeline — from vague idea to shipped code — without burning your token budget. [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Packagist](https://img.shields.io/packagist/v/rhazen35/agent-orchestration)](https://packagist.org/packages/rhazen35/agent-orchestration) [![npm](https://img.shields.io/npm/v/rhazen35-agent-orchestration)](https://www.npmjs.com/package/rhazen35-agent-orchestration)

What is this?

This package provides a complete Factory Pipeline workflow for AI agents. It includes skills, steering rules, templates, and governance guardrails — all as plain markdown files that any agent can read, regardless of language or tooling.

No runtime code. No dependencies. Works with PHP, Go, Rust, Python, Node, or anything else.


The Factory Pipeline

Every phase is manually triggered. Nothing runs automatically. You stay in control, and your token budget stays intact.

🧠 Phase 1 — Design

Trigger: "I want to build X" or "Start a new spec for Y"

The spec-architect skill orchestrates sub-skills in sequence:

Sub-skill What it does
discovery Maps the codebase, checks cache before re-scanning
mcp-orchestrator Discovers available MCP tools, enriches spec with live data
grill-me Challenges assumptions, provides recommended answers
acceptance-criteria-generator Drafts requirements and testable acceptance criteria

Output: signed-off plan/{namespace}/plan.md Gate: you must approve the plan before anything enters the inbox.


📥 Phase 2 — Queue

Trigger: "queue tasks" or "load inbox"

Tasks are loaded into inbox/{namespace}/tasks.md in batches of max 3 (the Hydration Limit). The next batch only loads after a slot opens. A flawed plan fails fast and cheap, not after 20 API calls.

Gate: confirm the inbox before production starts.


⚙️ Phase 3 — Production

Trigger: "process next task"

The task-processor runs with JIT context — it only reads the task, the file it's editing, and steering/principles.md. Nothing else. Small context window, fast and cheap calls.

Output: task moved to outbox/{namespace}/pending-review.md


🛡️ Phase 3.5 — Sentinel Pre-Check

Trigger: runs as part of "review", before the quality reviewer

The sentinel catches cheap failures before they reach the expensive inspector:

Fail: task returns to inbox/ with [SENTINEL_FAIL]. Quality reviewer is never called.


🔍 Phase 4 — Quality Control

Trigger: "review"

The quality-reviewer performs deep reasoning against acceptance-criteria.md and steering/principles.md. Also runs integrity-check for ghost features and architectural drift.

Result Action
✅ Pass Task moves to outbox/{namespace}/completed.md
❌ Fail Task returns to inbox/ with [REJECTION NOTE] + incremented [LOOP COUNT]

If a task is rejected 4 times, the pipeline locks. Human intervention required.


📦 Phase 5 — Archiving

Trigger: "archive"

The changelog-architect skill:

  1. Appends an entry to CHANGELOG.md under ## [Unreleased]
  2. Appends the task + review notes to archive/{namespace}/decision-log.md
  3. Cleans up outbox/{namespace}/completed.md
  4. Invokes monitor to update dashboard.md

Quick Reference

Command Phase triggered
"I want to build X" 🧠 Phase 1: Design
"Queue tasks" 📥 Phase 2: Queue
"Process next task" ⚙️ Phase 3: Production
"Review" 🛡️ + 🔍 Sentinel → Quality Control
"Archive" 📦 Phase 5: Archiving

Installation

This package contains no runtime code — only markdown files consumed by your AI agent. It works with any language or stack.

PHP — Composer

Copy the directories into your project root:

Node — npm

Go, Rust, Python, or any other language — Git Submodule

Point your agent tooling at .agent/steering/, .agent/skills/, etc.

Update to the latest version:

Clone a project that uses this as a submodule:

Quick Start (no package manager)


Namespacing

Every specification gets its own namespace folder — a short kebab-case name applied consistently across all directories.

Directory Namespaced path
Specification specification/{namespace}/
Plan plan/{namespace}/
Inbox inbox/{namespace}/tasks.md
Outbox outbox/{namespace}/
Records records/{namespace}/
Archive archive/{namespace}/

Governance

steering/governance.md defines hard limits no agent can override:

Rule Limit
Inbox hydration Max 3 active tasks at once
Loop limit Task rejected 4 times → pipeline locks
Token budget 50,000 tokens per run → Soft Halt
Cooldown 5 consecutive completions → wait for "Continue"
Discovery cache Never re-scan if fingerprint is current
JIT context Worker reads only what it needs

Dashboard

dashboard.md is the control tower. Check it before starting any work.

Status Meaning
🟢 OPERATIONAL All clear
🟡 THROTTLED Wait for human [CONTINUE]
🔴 CIRCUIT BREAKER TRIPPED Do not start work — human reset required

Skills Reference

Skill Purpose
spec-architect End-to-end spec creation
discovery Codebase mapping with caching
mcp-orchestrator Dynamic MCP tool discovery and data enrichment
grill-me Assumption stress-testing
acceptance-criteria-generator Requirements → testable criteria
task-processor JIT task implementation
sentinel Cheap pre-check before review
quality-reviewer Deep spec + principle review
integrity-check Drift and ghost feature detection
changelog-architect Task archiving and changelog
monitor Dashboard updates

Steering Files

Always loaded into every agent context:

File Purpose
steering/principles.md Core architectural constraints
steering/governance.md Hard resource and loop limits
steering/audit-requirements.md Requirement changes must be logged and ADR'd
steering/workflow.md Full pipeline reference

MCP Integration

This package is designed to work with Model Context Protocol (MCP) servers out of the box. MCP tools extend the agent's capabilities beyond local file editing — enabling live database inspection, web search, API fetching, and more.

How it works

The agent does not hardcode any MCP servers. Instead, it performs a handshake at session start:

  1. Agent calls list_tools to discover what the host environment provides.
  2. Agent matches the returned tool schemas against steering/mcp-policy.md.
  3. Authorized tools are used purposefully — local files always take precedence.

Capability Requirements

The factory expects the host to provide tools for these capabilities:

Capability Used for Fallback
Search Verify library versions, docs Ask human
Filesystem Read/write specs and inbox Local agent tools
Runtime Run tests and linting (Sentinel) Manual checks
Database Inspect live schemas Use spec definitions
Version Control Read issues, PRs, commit history Use records/ and archive/

If a capability is missing, the pipeline continues — it never blocks on absent tools.

Tool Selection Priority

When multiple tools fulfill the same capability, the agent picks in this order:

  1. Local filesystem tools (lowest cost)
  2. Specialized local servers (e.g., local Postgres, SQLite)
  3. Remote API servers (e.g., GitHub, Brave Search, Slack)

The Local-First Rule

Before calling any MCP tool, the agent must check:

  1. specification/{namespace}/ — does the spec already answer this?
  2. archive/mcp-data/{namespace}/ — has this tool been called and cached?
  3. cache/discovery-report.md — is this covered by the last discovery run?

Only if all three are empty or stale does the agent proceed with a tool call. Tool outputs are persisted to archive/mcp-data/ so the worker never re-calls a tool for the same data.

MCP in the Pipeline

Phase MCP usage
Phase 1: Design mcp-orchestrator runs full capability mapping, enriches spec with live data
Phase 3: Production task-processor invokes mcp-orchestrator in lightweight mode for specific data needs
Phase 3.5: Sentinel Uses runtime tools (linter, test runner) if available

Relevant Files

File Purpose
steering/mcp-policy.md Capability requirements, tool selection logic, authorization rules
steering/mcp-governance.md Hard limits: context budget, write safety, failure fallback
steering/mcp-etiquette.md Local-First rule, purposeful tool use, no spec overwrites
skills/mcp-orchestrator.md The bridge skill — discovery, justification, execution, sentinel filter
archive/mcp-data/ Persisted tool outputs, reused across tasks

Customizing for Your Project

Every skill, steering file, and template can be overridden at the project level without touching the package files. The agent checks .agent/ first before falling back to the package defaults.

To extend rather than replace, start your override file with:

Two files should never be overridden: steering/workflow.md (the pipeline contract) and steering/overrides.md (the override system itself).

See steering/overrides.md for the full resolution order, a complete list of overridable files, and guidance on what to override with caution.


License

MIT — see LICENSE.


All versions of agent-orchestration with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rhazen35/agent-orchestration contains the following files

Loading the files please wait ...