Download the PHP package tinywan/harness without Composer

On this page you can find all versions of the php package tinywan/harness. 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 harness

Harness (PHP Version)

English | 简体中文


harness is an orchestration engine library designed for PHP 8.4+, built to unify the execution, scheduling, and monitoring of major AI coding command-line interfaces (AI Coding CLIs) in Headless / Unattended Mode.

Through a unified PHP object-oriented interface, it abstracts away all discrepancies across Claude Code, OpenAI Codex CLI, GitHub Copilot CLI, and OpenCode in command-line arguments, rule files, streaming output, Token billing, and skill distribution.


🧐 Why Harness? (Core Problems Solved)

When automatically scheduling AI coding agents in automated pipelines, background task queues, CI/CD, or sandbox containers, developers typically face the following challenges:

  1. Heterogeneous CLI arguments and execution modes:
    • Claude Code requires -p --output-format stream-json --permission-mode bypassPermissions
    • OpenAI Codex requires exec --json --sandbox danger-full-access
    • GitHub Copilot CLI requires -p --output-format json --autopilot --allow-all
    • OpenCode requires run --format json --auto
  2. Inconsistent rules and instruction delivery standards:
    • Claude uses --system-prompt or CLAUDE.md;
    • Codex and OpenCode rely on AGENTS.md at the workspace root;
    • Copilot relies on .github/copilot-instructions.md.
  3. Chaotic output stream formats that are difficult to standardize:
    • Disparate stdout/stderr and JSONL event structures across tools make it hard to uniformly capture thinking processes (Thinking), tool calls (Tool Use), and final results.
  4. Inconsistent Token consumption and cost accounting standards:
    • Some CLIs output only token counts, while others output credit billing points, lacking a unified USD cost calculation model.
  5. Divergent Agent Skills discovery and staging paths:
    • Different skill discovery paths (.claude/skills/, skills/, .github/skills/, .opencode/skill/).

harness standardizes and encapsulates all these underlying details, providing a consistent, reliable PHP API.


🚀 Supported Backend CLIs

Backend (name) Binary CLI Default Model Example Skill Discovery Path Project Instruction File Egress Allowed Hosts
claude claude claude-opus-4-6, claude-sonnet-4-6 .claude/skills/<name> CLAUDE.md *.anthropic.com
codex codex gpt-5.3-codex, deepseek-v4-pro skills/<name> AGENTS.md api.openai.com, auth0.openai.com, chatgpt.com
copilot copilot gpt-5.6-sol, claude-sonnet-5 .github/skills/<name> .github/copilot-instructions.md github.com, api.github.com, *.githubcopilot.com
opencode opencode anthropic/claude-sonnet-4-6 .opencode/skill/<name> AGENTS.md models.dev, api.openai.com, *.anthropic.com

🧩 Key Features & Capabilities


📦 Requirements & Installation


🛠️ Quick Start

1. Basic Headless Task Execution


2. Loading & Staging Agent Skills (SKILL.md)


3. Session Resume & Context Continuation


💡 Typical Use Cases

  1. 🏢 Enterprise Automated Code Review & Security Scanning (Code Review & SAST)
    • Automatically spin up Claude Code or Codex in GitLab CI / GitHub Actions pipelines or Git Webhooks for headless PR scanning and output standardized JSON review reports.
  2. 🤖 Automated Issue / Bug Fixing Agent Service
    • When a user submits an issue ticket, the background PHP Worker automatically creates an isolated sandbox, drives the AI CLI to locate bugs, modify code, run unit tests, and submit a PR via Git.
  3. 📊 Multi-Model Capability Benchmarking & Arena Platform (AI Benchmark / Arena)
    • Concurrently invoke different AI CLIs against the same test suite via a unified interface, automatically comparing code generation quality, execution time, pass rates, and Token consumption costs.
  4. ☁️ SaaS Platforms & AI Coding Middle-End Engine
    • Encapsulate headless AI coding agent capabilities into asynchronous jobs within web frameworks (Laravel / Webman / Symfony) and stream real-time events to the frontend via WebSocket.

🧪 Pest Unit Testing

This project uses Pest 3.0 for comprehensive unit testing:

1. Run locally

2. Run inside Docker container (dnmp-php84)


🎨 Code Formatting & Linting (Mago)

This project is configured with Mago (a high-performance PHP toolchain written in Rust) via mago.toml:


📄 License

MIT License


All versions of harness with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
symfony/process Version ^7.0
symfony/yaml Version ^7.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 tinywan/harness contains the following files

Loading the files please wait ...