pekral/ai-olympus
Larablocks Analysis
pekral/ai-olympus works with any PHP project: the latest release (0.5.4, Nov 30, 2026) doesn't depend on Laravel.
Recommendation checks
Use with careUse with care: meets 1 of 4 checks.
- Released in the last 12 months (Nov 30, 2026)
- First released under 90 days ago
- 4,493 downloads a month (needs 10,000)
- 2 GitHub stars (needs 100)
State
Too new to judge- Last stable release: Nov 30, 2026.
- 15 releases in the last 12 months.
- First released: Sep 9, 2026.
- Monthly downloads: 4,493.
- 36 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 2, 2026.
| Install | |
|---|---|
composer require pekral/ai-olympus |
|
| Latest Version: | 0.5.4 |
| PHP: | ^8.2 |
| License: | MIT |
| Last Updated: | Dec 2, 2026 |
| Links: | GitHub · Packagist |
AI Olympus is a Composer plugin that gives PHP and Laravel teams shared coding-standard rules, 79 reusable skills, and twelve specialist agents for Claude Code, Codex, Cursor, and Google Antigravity. Its workflows cover issue implementation, Pest tests, code and security review, acceptance testing, and tracker reporting. The skills, agents, and commands are also published as a Claude Code plugin for projects without Composer, without the rules.
Requirements
- PHP 8.2 or newer and Composer 2, for the Composer installer
- Claude Code, Codex, Cursor, or Google Antigravity, to run the workflows; GitHub workflows also need an authenticated
ghCLI - Optional: the
pdo_sqliteextension with FTS5, for the code-review memory; without it the agents continue without memory
CI installs the package into a clean Composer project on PHP 8.2, 8.3, 8.4, 8.5, and 8.6 and checks that the Claude Code, Codex, Cursor, and Antigravity files are written. The full quality checks run on PHP 8.4, 8.5, and 8.6, because the development tools need PHP 8.4; on PHP 8.2 and 8.3 CI lints every tracked PHP file, including the scripts under skills/, and bin/ai-olympus. It does not run the agents inside any host, so availability and permissions still depend on your agent host. The Claude Code plugin channel needs no PHP; CI checks its manifests but does not install it into Claude Code.
Installation
Once 0.6 is published on Packagist, run these commands from your Composer project root:
composer require pekral/ai-olympus:0.6 --dev
vendor/bin/ai-olympus install --force
[!IMPORTANT]
installnormally copies only missing files; security rule files are refreshed even without--force.--forcealso replaces the other installed rules, skills, and agents, so save local customizations first. Neither root instruction file (CLAUDE.md,AGENTS.md) is overwritten.During the agent rename, the installer removes verified, unchanged copies of the old definitions once their replacements are installed. Edited old definitions and custom agents are preserved. See the old-to-new name mapping. Use
--pruneonly after reviewing orphaned files: it also removes custom files absent from the package.
The constraint pins release 0.6. Commit your project's composer.lock to keep installations reproducible. Composer may ask whether you trust the package as a plugin. See the plugin trust model.
The installer writes, for Claude Code, Codex, Cursor, and Google Antigravity:
.claude/rulesand.codex/rules— the rule library.claude/skillsand.agents/skills— the skills, in the project only.claude/agents,.codex/agents, and.codex/agent-instructions— the twelve agents and their Codex adapters.claude/commands— the five Claude Code slash commands; their shared support is in.claude/command-support.codex/commands— command contracts loaded by the Codex root instructions, not native slash commands.cursor/rules— generated Cursor.mdcrules from the canonical Markdown rules.cursor/agents— generated Cursor-native agent wrappers from the canonical role definitions.agents/rulesand.agents/rules.json— generated Antigravity rules and its native discovery manifest.agents/agents— generated Antigravity-native agent wrappers from the canonical role definitionsAGENTS.mdin the project root, unless one already exists
--global additionally writes the skills to ~/.claude/skills and ~/.agents/skills. Every other switch, the installer flow, and the distribution contents are in docs/installation.md.
Claude Code plugin marketplace (no Composer)
/plugin marketplace add pekral/ai-olympus
/plugin install ai-olympus@ai-olympus
This loads all 79 skills, the twelve agents, and the five commands into Claude Code only. It does not load the rules: Claude Code reads neither rules/ nor a CLAUDE.md out of a plugin directory. The opt-in security switches stay bound to the Composer installer, and a plugin install writes nothing to .claude/settings.local.json. See which path to choose.
Configuration
Nothing has to be configured before the first run; restart the agent session after installation.
The installer never generates a CLAUDE.md, and it keeps an existing CLAUDE.md and AGENTS.md. Without a CLAUDE.md, Claude Code 2.1.277+ uses AGENTS.md as its project instructions (except on Bedrock, Vertex, and Foundry). If your project already had an AGENTS.md, merge the Codex integration section into it.
Automatic installation on composer install and composer update is off by default; extra.ai-olympus.auto-install turns it on, and then every install and update runs install --force. The same extra.ai-olympus object is the project manifest, which tells the workflows how your project runs its quality gate and coverage; every key is optional, and an absent key keeps the built-in behaviour. Your own CLAUDE.md, AGENTS.md, .ai/rules/**, and the manifest take precedence over the packaged rules; only the security floor stays fixed.
The manifest key parallel.max-units (1 to 3) caps how many units of a batch run at the same time; without it the planner uses 2 and the batch cap is 3 (see Project manifest in rules/general/general.md).
Interactive testing is on by default. The manifest key interactive-testing set to false switches it off for the project; every report that would carry its result then says it is switched off, and the review, the tests, and CI stay as they are (see Project manifest).
Helper agents are allowed by default, and the installer adds "helper-agents": true to your composer.json when the key is missing. The manifest key helper-agents set to false forbids them for the project: the session you talk to does every step itself, every check stays, the review is then not independent and never counts as merge approval, and every final report says whether helper agents were allowed (see Project manifest).
Agents talk to you in a relaxed, straight-to-the-point voice, in the chat and in the tracker comments people read. The voice key of the project manifest switches it to technical, and your own instruction in the session overrides it; commit messages, handoffs, and machine-parsed text stay technical either way (see the agent-voice skill). Before a tracker comment is published, the unslop skill cuts AI writing patterns from its prose.
Installation leaves global Claude settings unchanged by default. The opt-in switches, such as --disable-co-author-attribution, --allow-subagent-writes, and --deny-network-bash, configure Claude Code only and grant Codex no permissions; see the trust model.
Quick start
In Claude Code, start the session as krang, so the session itself orchestrates and dispatches the specialists:
claude --agent krang "resolve https://github.com/owner/repo/issues/123"
A command works in any session, because the session that receives it holds the krang role itself:
/prepare-issue-for-merge https://github.com/owner/repo/issues/123
In Codex, invoke the matching skill with $:
$verify-merge-readiness https://github.com/owner/repo/issues/123
In Cursor, restart after installation and invoke the matching workflow from the shared .agents/skills directory. Generated .cursor/rules, including the always-apply .cursor/rules/ai-olympus-compatibility.mdc, and .cursor/agents wrappers carry the compatibility aliases for imported rules, skills, roles, and command contracts; shared command support stays in .codex/commands.
Cursor has no documented native project command menu for these workflows, so use the matching skill. The compatibility rule uses the existing .codex/run private runtime; immediately before every private write it requires a pure gate-record preflight for the whole run root and concrete target. The preflight refuses a non-ignored, tracked, or symlinked path without reading private data or writing files. No native read-only field is declared because it does not prove that private run, audit, and trusted-copy writes remain available. The installer and CI verify generated files, not interactive Cursor loading.
In Google Antigravity, restart after installation and invoke the matching shared skill from .agents/skills. Generated .agents/rules, including the always-on .agents/rules/ai-olympus-compatibility.md, and .agents/agents wrappers carry the compatibility aliases for imported rules, skills, roles, and command contracts; shared command support stays in .codex/commands. Antigravity has no installed native workflow menu, so .agents/workflows is not installed. The compatibility rule maps a canonical krang Task availability check and dispatch to documented invoke_subagent, then waits for Antigravity's documented completion notification and completed handoff before the next pipeline step; it passes no Claude-only task flags, model names, tool lists, or invented wait API. The wrappers use model: inherit; they do not declare native commands, tools, or a readonly capability. Each native rule, including metadata, is at most 24,000 bytes; the installer writes an ordered index and same-trigger parts for a longer canonical rule, and the manifest names every nested index and part. The compatibility rule uses the same .codex/run private runtime and pure whole-root and concrete-target preflight. The installer and CI verify generated files, not interactive Antigravity discovery, permissions, or GUI behavior.
The installer puts the same 79 skills, including their scripts and references, in .claude/skills and .agents/skills. Select the installed name offered by Codex if it includes a namespace. If newly installed skills do not appear, restart Codex.
To resolve an issue through the full pipeline, ask the root session to take the krang role and spawn the specialists itself:
Follow .codex/commands/_shared/krang-workflow.inc as krang and resolve https://github.com/owner/repo/issues/123
With several references, or with the optional --merge flag, the same command prepares a batch: the session holds the krang role for every issue and runs one pipeline for each in its own git worktree, at most 3 at a time. Without --merge it stops before merge; with it, each unit rebases onto the latest default branch and merges through merge-github-pr with every gate unchanged.
/prepare-issue-for-merge https://github.com/owner/repo/issues/123 https://github.com/owner/repo/issues/124 --merge
/do-it takes free-form instructions instead of a reference. It splits them into independently deliverable items, reuses the issue of an item that has one (after a trust check on its author), creates one GitHub issue for every other item, orders the queue by priority, difficulty, and duration, and runs every item to a converged pull request through the same batch mechanism. A new task from the issue tracker runs the pipeline of /prepare-issue-for-merge, and an item that only processes the code-review comments of a named pull request runs /process-code-review on it and creates no issue. It reports each item with its pull request, status, and blocker, and never merges.
/do-it add the CSV export of orders, then a date filter for it, and fix the typo on the login page
The five command workflows have these Codex skill names; pass the same arguments after the name:
| Claude Code command | Codex skill |
|---|---|
/prepare-issue-for-merge |
$verify-merge-readiness |
/do-it |
$do-it |
/redesign-page |
$deliver-page-redesign |
/report-code-review |
$code-review-github, $code-review-jira, or $code-review-bugsnag, by tracker |
/test-assignment |
$test-assignment |
To publish a release, explicitly invoke /publish-github-release <version> in Claude Code or $publish-github-release <version> in Codex. The workflow checks the milestone, audits the release diff, and merges the release preparation before it creates the tag and GitHub release.
rules/compound-engineering/orchestration.md Starting the orchestrator — the top-level role and the nested hand-over explains why krang is not started as a subagent.
krang routes implementation to donatello, each code review round to the independent views bebop (assignment), rocksteady (quality), baxter (tests), splinter (security), raphael (interactive testing, when the change is user-visible), and casey (an advisory database report) in parallel, and then to leonardo, which merges their reports and publishes the one review, a page redesign to michelangelo before anything is built, context retrieval to shredder when the relevance gate asks for it, and the final report to april. Merging stays a separate, explicit step. For a hotfix, only you can start the merge-github-pr-fast skill (/merge-github-pr-fast in Claude Code, $merge-github-pr-fast in Codex): it runs one security-only check of the diff, stops on a Critical finding or a check that did not complete, and otherwise merges when CI on the head commit is green or the quality gate passed on that exact commit.
A batch unit first tries gh pr update-branch --rebase to reach the latest default branch. When that stops on a conflict, donatello resolves it locally. On a repository with CI it force-pushes the rebased branch back into the same pull request with --force-with-lease and waits for CI. Without CI it opens a new pull request on a new <branch>-vN branch, and nothing is force-pushed: krang alone closes the pull request that the new one supersedes, after a pointer comment, and every helper agent only reports the replaced number.
What it does
| Layer | What it is | Installed into |
|---|---|---|
| Rules | Project standards for PHP, Laravel, security, SQL, APIs, tests, git, and code review | .claude/rules, .codex/rules, .cursor/rules |
| Skills | Reusable workflows, from resolve-issue to security-review |
.claude/skills, .agents/skills (also read by Cursor) |
| Agents | Shared role definitions with Codex and Cursor adapters | .claude/agents, .codex/agents, .codex/agent-instructions, .cursor/agents |
| Commands | /do-it, /prepare-issue-for-merge, /redesign-page, /report-code-review, /test-assignment |
.claude/commands (support: .claude/command-support); .codex/commands; Cursor uses the matching shared skill |
The Markdown files in .codex/rules are an instruction library, not native Codex command-approval rules: the root AGENTS.md tells Codex which of them to read. The five slash commands are installed for Claude Code only. Codex loads the matching command contracts before it invokes the corresponding skill.
The workflows require tests for the changed behaviour and zero Critical and no undeferred Moderate review findings before merge. On a pull request from a branch of the same repository, a converged code review with no blocking finding counts as the approval, because GitHub does not let the author approve their own pull request. A pull request from a fork still needs a GitHub approval. One opt-in path replaces the review and the CI wait. A project sets merge.low-risk-path: true and risk.critical-paths in its manifest; then, when the default-branch copy of commands/_shared/classify-risk.sh --merge-risk answers low-risk-merge=yes for the exact head (a FAST diff of regular application source and test files inside the allow-list in that script header, none of them critical for the project), merge-github-pr reads the diff in one security-only check, then merges on a green full quality gate of that head. Without the opt-in every merge keeps the review and green CI.
Three rules shape the Laravel work, all in rules/laravel/laravel.md Carbon and Framework Helpers. Date and time code uses Carbon or a Laravel date helper (now(), today(), the Date facade, an Eloquent date cast) instead of date(), strtotime(), or new DateTime(...). String, array, and collection work reuses Str, Arr, Collection, Number, and data_get() before any hand-written code. New code first reuses an existing project concept. When no concept fits, it uses a framework helper or a framework class. Examples are the Http client with retry(), Cache::remember(), Cache::lock(), RateLimiter, Pipeline, Process, a Notification, and a Policy. Only when neither fits does the agent write new code. A hand-written equivalent of a framework helper or a framework class is a Moderate code-review finding. When your project installs laravel/pao, the rules read its compact JSON output of Pest, PHPUnit, Paratest, PHPStan, Rector, and Artisan, and trust only the process exit code.
Agents
The roster is named after Teenage Mutant Ninja Turtles characters. Each agent starts on its default model tier and escalates only on a recorded reason; the values come from agents/*.md and codex/agents/*.toml.
| Agent | Role | Claude Code | Codex | |
|---|---|---|---|---|
krang |
orchestrator, the front door | opus · high |
gpt-6.1-sol · high |
|
donatello |
implementer, opens a draft PR | sonnet · high |
gpt-5.6-terra · high |
|
leonardo |
merges the review views and publishes the one review, read-only | opus · high |
gpt-6.1-sol · high |
|
splinter |
independent security reviewer, read-only | opus · high |
gpt-6.1-sol · high |
|
bebop |
assignment view of a review, read-only | sonnet · high |
gpt-6-luna · high |
|
rocksteady |
quality view of a review, read-only | opus · high |
gpt-6.1-sol · high |
|
baxter |
test view of a review, read-only | sonnet · medium |
gpt-6-luna · medium |
|
raphael |
acceptance tester on a local instance, read-only | sonnet · medium |
gpt-6-luna · medium |
|
michelangelo |
page redesign proposal | opus · high |
gpt-6-astra · high |
|
casey |
advisory database report, read-only | sonnet · high |
gpt-6-luna · high |
|
shredder |
context retrieval, read-only | opus · high |
gpt-6.1-sol · high |
|
april |
final tracker report and announcements | sonnet · medium |
gpt-6-luna · medium |
Role boundaries, the handoff contract, and the avatar assets are in docs/agents.md. Running a single specialist, the five command workflows, and how agents hand work over are in docs/workflows.md.
Adaptive routing — how much pipeline a task gets
Every krang run classifies the task with commands/_shared/classify-risk.sh, a deterministic shell script, and picks a FAST, STANDARD, or CRITICAL pipeline. A sensitive area such as authentication, secrets, payments, or migrations forces CRITICAL, while tests, static analysis, CI, and the pre-merge quality gate run at every tier. The tiers are roles rather than model names, so Codex / OpenAI sessions route identically. Ask for thorough mode (--thorough) to run the complete pipeline regardless of the classification. See Adaptive routing for the tier table and overrides.
What a code review checks
A code review covers four areas and nothing else: functionality against the assignment, security, database optimisation, and code rules. It drops every point outside the assignment, proposes no follow-up issue, and still reports a security vulnerability found outside the assignment. Architecture is reviewed through ten principles with one finding shape (changed location, concrete problem, impact, smallest remedy). A duplicated piece of existing logic is a Moderate finding, and a Moderate finding still blocks the merge.
From the second round of a review-and-fix loop, leonardo raises only new Critical findings and every security finding; an earlier finding stays tracked until it is fixed. The Review findings section of the non-technical report (pr-summary) lists only the points that must be resolved before the merge. The owners are rules/code-review/general.md (What a code review checks, and nothing else, Later rounds raise only new Critical findings, Reuse Existing Logic) and rules/code-review/core-analysis.md (Architecture principles).
Safety guards
- A heavy job waits only for a job that uses the same resource. Every gate run, dependency install, full test suite, and targeted check (Pest, Rector, or PHPStan on a path list) holds the locks of its resources in
${XDG_CACHE_HOME:-$HOME/.cache}/ai-olympus(AI_OLYMPUS_LOCK_DIRmoves it), shared by every project and worktree of the account: the test services of one project, thevendor/of one checkout, and a semaphore of CPU slots (lock.cpu-slots, 2 by default). A command that declares no resource takes the machine-wide lock and waits for everything. Agents take the locks throughcommands/_shared/run-gate.sh, andcommands/_shared/run-validation.shholds them itself. - No unfixed vulnerability on a public tracker.
create-issue,create-issues-from-text, and/do-itcheck the visibility of the target repository before they create an issue. On a public repository, or when the visibility cannot be shown, they withhold an item that describes an unfixed vulnerability and report it to you with the private routes (GitHub private vulnerability reporting and a draft security advisory). A deferred pre-existing security item ofresolve-issuegoes through the same guard (skills/create-issues-from-text/SKILL.mdGuard for a possible vulnerability).
Code-review memory
Resolved Critical and recurring Moderate code-review findings are kept in a per-user, git-ignored SQLite database (.claude/run/code-review-memory.sqlite, or .codex/run/ under Codex). krang reads at most three role- and path-matched lessons before initial implementation and the first review, or for a Critical remediation; an unavailable or empty memory changes no dispatch. krang is the only writer: it adds one short TL;DR entry for each lesson that clears the write bar, with no human approval, and lists every entry in its report. The installer never creates or deletes it.
vendor/bin/ai-olympus memory migrate
memory migrate moves the entries of docs/memory/PROJECT_MEMORY.md into the database once. memory paths lists stored paths that are no longer files; memory paths --update old/path.php=new/path.php applies the operator-confirmed one-to-one mapping and never removes a lesson. It does not follow a split or a deleted file automatically. memory stats reports actual lesson offers, confirmed use, and 60-day removal candidates; it never deletes a lesson. Exit 0 is a result (possibly empty), 1 a usage error, 2 an unavailable memory. The memory subcommands and graph are described in docs/workflows.md.
Documentation
docs/installation.md— installer flow, every CLI switch, auto-install, the project manifest, and where skills are installeddocs/agents.md— the agent roster, capability model, handoff contract, and troubleshootingdocs/workflows.md— command workflows, adaptive routing, metrics, the repository graph, and the code-review memorydocs/skills.md— the catalog of all 79 skillsphpstan/README.md— register the PHPStan rules for changed PHP code and testsdocs/rules.md— the 40 rule files, grouped by scope
Testing
From a checkout of this repository, install the development dependencies with composer install, then:
vendor/bin/pest tests # run the test suite
composer test:coverage # require 100% coverage (PCOV)
composer analyse # PHPStan
composer security-audit # dependency audit
composer build is the full pre-merge gate: it runs the installer with --force --prune, the automatic fixers, then every check. It changes files, so use it at the merge boundary, not as a read-only check. Its skill linter also needs Node.js and npm.
Upgrading
Review the changelog before changing the version constraint, save local customizations, and refresh the installed files with --force --prune after the update. During 0.x, a new minor version may change workflow behaviour or installer options. A project upgraded from a release that always installed skills globally clears the old home copies once with vendor/bin/ai-olympus install --prune-global, which deletes them by name, immediately and without a backup. See versions and upgrades and where skills are installed.
Changelog
See CHANGELOG.
Contributing
See CONTRIBUTING for the quality gate, how to add or change a skill, and the commit and pull request conventions. This project follows the Contributor Covenant Code of Conduct. Ask questions in the Discussions Q&A and keep the issue tracker for bugs and feature requests.
Security
See the security policy for the plugin trust model, the installer security switches, and how to report a vulnerability privately.
Credits
Created by Petr Král.
License
The package code is licensed under the MIT License; see LICENSE. The banner artwork is distributed under CC BY-SA 4.0; artwork sources, licences, and trademarks are listed in assets/ATTRIBUTION.md.
Alternatives to pekral/ai-olympus
Detect if code is running in an AI agent or automated development environment
Static analysis for the debt AI coding agents leave behind, on any PHP project:...
HTML assertions for PHPUnit and Pest: check rendered HTML with CSS selectors, ne...
Opinionated ECS, Rector, and PHPStan presets for PHP and Laravel packages and ap...
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 0.5.4 | ^8.2 | MIT | |
| 0.5.3 | ^8.2 | MIT | |
| 0.5.2 | ^8.2 | MIT | |
| 0.5.1 | ^8.4 | MIT | |
| 0.5 | ^8.4 | MIT | |
| 0.4 | ^8.4 | MIT | |
| 0.3.1 | ^8.4 | MIT | |
| 0.3 | ^8.4 | MIT | |
| 0.2.2 | ^8.4 | MIT | |
| 0.2.1 | ^8.4 | MIT | |
| 0.2 | ^8.4 | MIT | |
| 0.1.3 | ^8.3 | MIT | |
| 0.1.2 | ^8.3 | MIT | |
| 0.1.1 | ^8.3 | MIT | |
| 0.1 | ^8.3 | MIT |