description: AI agent orchestration, Claude Code plugins, and lifecycle management for the Host UK platform — a polyglot Go + PHP repository.
---
# Core Agent
Core Agent (`forge.lthn.ai/core/agent`) is a polyglot repository containing **Go libraries**, **CLI commands**, **MCP servers**, and a **Laravel PHP package** that together provide AI agent orchestration for the Host UK platform.
It answers three questions:
1.**How do agents get work?** -- The lifecycle package manages tasks, dispatching, and quota enforcement. The PHP side exposes a REST API for plans, sessions, and phases.
2.**How do agents run?** -- The dispatch and jobrunner packages poll for work, clone repositories, invoke Claude/Codex/Gemini, and report results back to Forgejo.
3.**How do agents collaborate?** -- Sessions, plans, and the OpenBrain vector store enable multi-agent handoff, replay, and persistent memory.
## Quick Start
### Go (library / CLI commands)
The Go module is `forge.lthn.ai/core/agent`. It requires Go 1.26+.
```bash
# Run tests
core go test
# Full QA pipeline
core go qa
```
Key CLI commands (registered into the `core` binary via `cli.RegisterCommands`):
| Command | Description |
|---------|-------------|
| `core ai tasks` | List available tasks from the agentic API |
| `core ai task [id]` | View or claim a specific task |
| `core ai task --auto` | Auto-select the highest-priority pending task |
| `core ai agent list` | List configured AgentCI dispatch targets |
| `core ai agent add <name> <host>` | Register a new agent machine |
| `core ai agent fleet` | Show fleet status from the agent registry |
| `core ai dispatch watch` | Poll the PHP API for work and execute phases |
| `core ai dispatch run` | Process a single ticket from the local queue |
### PHP (Laravel package)
The PHP package is `lthn/agent` (Composer name). It depends on `lthn/php` (the foundation framework).
```bash
# Run tests
composer test
# Fix code style
composer lint
```
The package auto-registers via Laravel's service provider discovery (`Core\Mod\Agentic\Boot`).
Install all plugins: `claude plugin add host-uk/core-agent`
### Codex Plugins
The `codex/` directory mirrors the Claude plugin structure for OpenAI Codex, plus additional plugins for ethics, guardrails, performance, and issue management.