Appearance
Laravel adapter (retired)
Retired
Retired on 27 August 2026. ai-boost now connects over HTTP, so no package is needed; see Connect without an adapter. This page is kept as history.
The package that wired ai-boost into a Laravel project's artisan, hooks and MCP, until the HTTP transport made it unnecessary.
4.4.1
2026-08-27
Changed
- Installing the package no longer requires a GitLab token. The README has been updated to reflect this change, simplifying the installation process.
Fixed
- The event map is now generated from the CLI's
HookEventenum, ensuring that the package stays in sync with the CLI and preventing unregistered events from going unnoticed. The README has been corrected to reflect the actual number of session hooks.
4.3.1
2026-08-26
Fixed
- The
ai-boost:uninstallcommand now correctly removes theAI_BOOST_KEYfrom the.envfile and unregisters all hooks initialized byinit, ensuring a clean uninstall process. Previously, the command left behind a live credential and half of the hooks, leading to inconsistencies in the project's configuration.
4.3.0
2026-08-24
Added
- Adapter-owned projects now register three more Claude Code events —
SubagentStart,PostCompactandSessionEnd— bringing the adapter's set in line with the one the CLI installs. Until now a repository set up through the adapter recorded less of a session than the same repository set up through the CLI, and nothing reported the difference. The adapter's list is written out by hand rather than derived, so an event added on the CLI side reaches these projects only when this file is updated; a new test now asserts all three are registered, invoke the right subcommand, and carry no matcher, since an entry with a matcher Claude Code cannot match never fires at all.
4.2.0
2026-08-24
Added
- Register
SubagentStopevent and aPostToolUsematcher to ensure subagent activities are accurately tracked and evaluated in Laravel projects using the adapter. This resolves issues where subagent edits were misattributed and certain sessions were not evaluated.
4.1.0
2026-08-24
Added
- The Laravel adapter now sends the commit the index was built from to the server. This allows the server to measure staleness in terms of commits rather than age. The commit is sent on every batch and on the completion call, ensuring consistency. If there is no HEAD, the commit is omitted to preserve existing data on the server.
4.0.0
2026-08-24
Breaking changes
php artisan ai-boost:indexnow only uploads files that have been committed. To include uncommitted files, use the--include-untrackedflag. This change aligns the Laravel adapter's behavior with the CLI, ensuring consistent indexing across clients.
3.5.0
2026-08-22
Added
- Search results now include
start_lineandend_linefor each chunk, allowing you to locate the exact position within a file without additional searching. This change is backward-compatible, and existing indexed points will gain these fields upon re-indexing.
Changed
- Laravel projects using the adapter package will now have updated skill stubs that reflect the correct scoring thresholds. Previously, the stubs were outdated, leading to incorrect agent behavior based on self-reported scores.
Fixed
- Generated assets have been refreshed to align with CLI version 1.0.0, resolving incorrect staleness reports during session starts.
3.4.0
2026-08-20
Added
- The adapter now records its version in
.ai-boost/onboarding.jsonasadapter_version, allowingai-boost doctorto verify if the generated files are current. This prevents confusion between CLI and adapter versions, ensuring accurate staleness checks.
Changed
- The Laravel adapter now indexes repositories in the same way as the CLI, ensuring consistent results regardless of which client last ran. This includes aligning file extensions and language mappings, and adding an end-of-file guard to prevent duplicate chunks. Projects onboarded through
php artisan ai-boost:initwill now have parity with the CLI's indexing.
Fixed
- Updated documentation to reflect the correct argument passed by
InitCommandfor thepost-mergeGit hook. The docblock inGitHooksnow accurately describes the use of--since=ORIG_HEADinstead of the outdated--incrementalargument, preventing indexing issues after a pull.
3.3.0
2026-08-20
Added
- Introduced the
--dry-runoption for theai-boost:indexcommand, aligning it with the CLI'sindexcommand. This allows users to preview what the index would hold without sending data, which is useful for distinguishing between a stale index and a bad query.
Fixed
- Updated the README to correctly reflect that both
post-commitandpost-mergehooks are installed by this package, correcting outdated information that stated otherwise.
3.2.2
2026-08-20
Fixed
- The adapter no longer stops indexing when encountering a file with invalid UTF-8 encoding. Previously, such files would cause the adapter to incorrectly report a network error and exhaust retry attempts. Now, these files are skipped, and their paths are checked and converted to ensure warnings are correctly reported.
3.2.1
2026-08-20
Fixed
- Git hooks no longer write indexing output directly into the developer's terminal. Instead, both stdout and stderr are redirected to a log file. This prevents unwanted output during commands like
git commitandgit pull, making the hooks less intrusive and more reliable.
3.2.0
2026-08-20
Added
- The
ai-boost:initcommand now installs apost-mergehook alongsidepost-commit, ensuring that the index updates automatically after agit pull. - The
ai-boost:indexcommand now supports a--since=<rev>option, allowing it to index a range of commits, rather than just the latest one. This ensures that all changes from agit pullare indexed correctly.
3.1.2
2026-08-19
Fixed
- Repaired double-encoded UTF-8 in tool descriptions, which caused mojibake in client text. This issue was introduced in version 3.1.1 due to a bulk edit error. The
ToolTextEncodingTestnow checks raw bytes to prevent such encoding issues. - Fixed the inability to send the
repositoryargument to the server, which previously resulted in a server error for projects using a project key. The argument is now correctly included in the schema and forwarded arguments.
3.1.1
2026-08-19
Fixed
- Corrected tool descriptions for
find_relevant_instructionsandget_few_shot_examplesto reflect their actual functionality, ensuring accurate runtime behavior. Previously,find_relevant_instructionswas incorrectly described as returning "constitutional rules and project conventions," andget_few_shot_examplesincorrectly taughtbugfixas a task type. These corrections now align with the server's behavior and schema.
Changed
- Added a CLAUDE.md document to the repository to provide accurate project conventions and instructions, improving the functionality of
find_relevant_instructionsby ensuring it can retrieve relevant instructions from this package. This document also highlights the need to keep tool descriptions consistent across stdio and HTTP transports.
3.1.0
2026-08-19
Added
- Introduced the ai-boost-scout agent to ensure consistent setup between projects using the adapter and those using the binary. The agent is read-only and follows the same discovery rules as skills, ensuring that a project set up by the adapter reads the same instructions.
Changed
- Updated the README to accurately reflect compatibility with Laravel 10. The package can be installed on Laravel 10, but only with laravel/mcp 0.5, which cannot run a local stdio server. Documentation now clarifies this limitation and provides guidance for using the HTTP transport block instead.
- Revised documentation to remove outdated information about pre-2.0 package behavior. This includes correcting onboarding steps, installation tables, and clarifying the behavior of hooks and indexing processes.
Fixed
- Resolved an issue where
ai-boost:uninstalldid not fully remove skills, leaving behind descriptions of tools the project no longer had. Both the skill and block files are now correctly removed during uninstallation. - Improved test coverage by ensuring InstructionStubsTest checks all synced stubs, catching discrepancies such as missing placeholders immediately.
3.0.3
2026-08-19
Fixed
- The agent now correctly uses the real session ID from the ai-boost SessionStart and Stop hooks, preventing issues with session matching and verification.
3.0.2
2026-08-18
Fixed
- Resolved an issue where the settings file was incorrectly reported as partially configured, prompting unnecessary re-runs of
ai-boost:init. The check now correctly identifies when hooks are registered elsewhere or not needed, such as in containerized environments.
3.0.1
2026-08-18
Fixed
- Clarified installation instructions to indicate that the CLI is required for both session hooks and worktree setup, preventing failures that appeared to be project faults.
3.0.0
2026-08-18
Breaking changes ⚠️
- Projects onboarded by version 2.0.0 or 2.0.1 may have hooks registered with a bare name that never executed. To resolve this, re-run
php artisan ai-boost:init. For containerised projects, also runai-boost initon the developer's own machine.
Added
- The
ai-boost:statuscommand now reports missing session hooks as a problem, affecting the feedback loop and usage reporting. It counts against--strict, ensuring CI checks reflect the actual state. Thecomposer.jsonnow includes asuggestentry for the CLI, and the README specifies that the CLI is required for session hooks.
Fixed
- Hooks now correctly resolve the CLI binary path, using absolute paths when necessary, to ensure hooks execute as expected. This change prevents hooks from appearing configured while being non-functional.
2.0.1
2026-08-18
Fixed
- Composer metadata is now published correctly, ensuring that consumers who rely on the metadata mirror can access the latest versions. This resolves an issue where the metadata mirror was serving outdated versions due to a CI failure.
- Session hooks are now registered correctly for containerised Laravel projects. Previously, hooks were not registered if the
ai-boost:initcommand was run inside a container, leading to missing session hooks for most projects using this package. Registration now occurs unconditionally and uses the bare name, ensuring hooks are available regardless of the environment.
2.0.0
2026-08-18
Breaking changes ⚠️
- The
ai-boostCLI binary must be installed on the machine that runs Claude Code. The adapter no longer writes the four shell scripts into.ai-boost/hooks/;.claude/settings.jsonnow registersai-boost hook <event>instead. Upgrading from 1.x: runphp artisan ai-boost:init, which replaces the old script entries and clears the scripts. Installing the binary also drops the adapter's dependency onbash,jqandpython3being present wherever the editor runs hooks.
Why
- The rule the scripts carried — a session that changed code records feedback before it ends — existed twice: once here in bash with embedded python, and once in the CLI in PHP. Two implementations, no test covering both, nothing comparing them. The learning-loop bug fixed in 1.13.0 was present identically in both and was caught only because one person read both paths. The failure mode is silent under-collection, so a divergence is invisible until someone counts rows. There is now one implementation.
1.13.0
2026-08-17
Fixed
- Sessions that committed their work are now included in feedback collection. Previously, sessions that ended with a commit were not asked for feedback, leading to a lack of learning data from successful sessions. This has been corrected by tracking changes committed during a session.
Added
- The
session_idis now sent with every tool call to the server, ensuring accurate session tracking. Previously, sessions were not correctly measured, leading to incomplete data on session activities. This change ensures that all tool calls are associated with the correct session.
1.12.5
2026-08-17
Fixed
- Resolved an issue where the
{{rtk_section}}placeholder was incorrectly appearing in the generated CLAUDE.md file. The placeholder is now filled as empty, aligning with the adapter's current functionality.
1.12.4
2026-08-17
Fixed
ai-boost:initnow tells you about the one step it cannot take for you: trusting the folder..mcp.jsononly offers the ai-boost server. What decides whether Claude Code loads it is folder trust — the dialog shown the first time you open a directory — and until that is answered/mcplists every project server as pending and a headless session has no tools at all. Nothing in this package mentioned it, so a developer could follow onboarding to completion, open Claude Code, find no ai-boost tools, and have nothing anywhere to read.initnow says the dialog is still yours to answer, andai-boost:statusreports it. Onboarding deliberately does not answer it for you: it is the prompt standing between you and executing an unfamiliar checkout's configuration.ai-boost:statustold you the API was unreachable when the server had answered and refused your key. Measured in one container at one moment:GET /upreturned 200 whileGET /api/v1/statusreturned 401, andstatusprintedAPI: unreachable— sending a developer whose key had been revoked to go and debug their network. Every non-2xx shared one flag with genuine transport failures, andstatuscould only read the flag. A rejected key (401/403), a repository the server no longer knows (404), a server-side failure (5xx) and a real connection failure now each say their own thing, with the remedy for that case. What MCP tools receive is unchanged — a session must keep working without project context, and the distinction is no use to it.statusnever checked whether a key existed, so five ticks could sit above a setup that could not authenticate. A file is not a credential.An unregistered repository sent you to find a person who does not exist. The message read "Ask your project admin to run
ai-boost repo:add" — but registration is self-service for any account on an allowed domain, and that named a separate binary a developer working in a Laravel project may never have installed. It now points at the Developer Portal. The no-remote case separately blamed your account for what is a missinggit remote.login_timeouthad two different defaults — 180 in code against 300 in the config file, where the server's sign-in code lives for five minutes. With the config unloaded, the wait would have been abandoned two minutes before the code it was waiting for expired, dropping you into the paste fallback for no reason.
Notes
ai-boost:status still exits 0 by default, even when it reports a problem. Older versions of init registered it as a SessionStart hook and any project that has not re-run init since still has it wired there — so failing would turn a stale key into a session-start error in a project whose work has nothing to do with ai-boost. Pass --strict to get a non-zero exit in CI, where that is what you want.
Re-run php artisan ai-boost:init to pick up the current hook wiring along with this.
1.12.3
2026-08-17
Fixed
A project no longer ends up with two post-commit hooks, one of them dead.
core.hooksPathcan appear, change or disappear long afterai-boost:inithas run, and each value sent the next run to a new directory while leaving the previous copy behind — byte-identical at first, then divergent the moment either one is rewritten, with only whichever git resolves actually running. The stale copy is removed now, and deliberately only when the file is entirely ours: this hook has no closing marker, so a block inside a shared file cannot be cut out safely, and mangling a project's ownpost-commitwould be the worse outcome. Pruning also runs before the "already installed" path returns, which is exactly the case a stale copy survives — the live hook needs no rewriting to leave a dead one behind.The generated hook no longer sits untracked in the project forever. A
core.hooksPathinside the working tree makes the installed hook a file in the checkout: permanently ingit status, and committed for the whole team by the firstgit add .. Added to.gitignorenow, and only when that directory holds nothing but our own hook — a project keeping shared hooks in the tree deliberately must not have them hidden.
Changed
- The generated instructions no longer describe a PHP project as
node. The stored block kept whatever the detector believed when the project was first seen, and the old detector read anypackage.json— which a Composer library carries for its release tooling — as a Node project. Sessions were handed JavaScript conventions for a PHP codebase. Re-runningai-boost:initpicks up the corrected text.
1.12.2
2026-08-16
Fixed
- The adapter now correctly indexes the initial commit and commits behind an empty run. Previously, the first commit in a repository, which contains the entire project, was not indexed due to a missing
--rootflag indiff-tree. Additionally, commits touching only excluded paths were skipped entirely, including their commit messages.
1.12.1
2026-08-16
Fixed
- Corrected the indexing of classes quoted inside heredocs. Previously, such classes were incorrectly identified as being part of the file, leading to inaccurate indexing results. Type declarations and functions are now matched only at column zero to ensure accurate identification.
1.12.0
2026-08-16
Fixed
- Commit history now updates correctly after onboarding. Previously, the history froze because the post-commit hook ran
--incremental, and only a full run indexed commits. Now, a partial run sends the current commit, ensuring up-to-date history without re-embedding the entire commit window. Additionally, the adapter no longer indexes its own output directories (.claude/,.mcp.json,.ai-boost/), preventing setup instructions from being the strongest matches and avoiding accidental indexing of sensitive information like API keys.
Added
- PHP repositories now index class names with their methods, improving search accuracy. Previously, method bodies lacked context, making it difficult to find class names. Now, each method chunk includes a header with
Namespace\Class::method, and symbols are fully qualified, preventing collisions. This change requires a full run to update the indexed symbols.
1.11.7
2026-08-16
Fixed
- Existing
laravel-boostservers are now correctly identified and left unchanged during initialization, preventing the creation of duplicate and non-functional boost servers. - Indexing now handles oversized Blade blocks by splitting them into manageable chunks and excludes Telescope from the run to prevent memory exhaustion, ensuring the process completes successfully.
Changed
- Continuous Integration now tests against the oldest Laravel and PHP versions claimed by the package, ensuring compatibility and preventing dependency drift from causing issues.
- The instructions gate in CI no longer fails when triggered by semantic-release's project bot, reducing unnecessary red flags and focusing on actual drift prevention.
1.11.6
2026-08-15
Fixed
ai-boost:initnow waits as long as the sign-in code actually lives. The server keeps it for five minutes; this gave up at three, so anyone slowed by 2FA or by picking the wrong Google account first was told the sign-in had timed out and to paste a code the container was seconds from collecting for them.
Changed
- Updated the generated instructions to clarify that indexing reads from the working tree, not just committed files. This ensures that uncommitted edits are indexed once a run occurs. The instructions also now reflect the asymmetry between a full run, which prunes entries for removed files, and
--incremental, which only adds and replaces entries. Runphp artisan ai-boost:initin your project to pick the corrected text up — it only rewrites inside the ai-boost markers.
1.11.5
2026-08-14
Fixed
- Indexing now retries transient failures instead of stopping, improving reliability when the
ai-boost APIis temporarily unreachable. The adapter will attempt up to five retries with exponential backoff for 429 and 5xx errors. This change is opt-in per call and affects only/ingestand/ingest/completeendpoints.
1.11.4
2026-08-14
Fixed
- The post-commit hook now installs and reads from the correct directory, even in worktrees and submodules, and respects the
core.hooksPathsetting. This ensures the hook is actually used for re-indexing on commits. - Removed an unused command from the post-commit hook, improving its performance and ensuring it remains portable across different environments.
1.11.3
2026-08-14
Fixed
- The
--filesoption now correctly restricts file indexing to paths within the project, preventing unintended uploads from outside the project directory.
1.11.2
2026-08-14
Fixed
- Fixed an issue where concurrent indexing runs would delete each other's work, leading to an empty index. Each run now carries a unique start time to prevent this conflict.
1.11.1
2026-08-14
Fixed
- The indexer now respects
.gitignorefiles, preventing the indexing of ignored build artefacts and ensuring consistent results across different environments. Additionally, it now correctly removes entries for files that have been deleted from the project. This prevents outdated files from appearing in search results.
1.11.0
2026-08-13
Added
- The
ai-boost:initcommand now automatically collects the sign-in code by sending a SHA-256 of a random verifier in the login URL and polling the server, eliminating the need to paste a code from the browser. This change enhances usability, especially in containerized environments. The paste option remains as a fallback.
Changed
- Updated the documentation to reflect that registry authentication is now required per developer, as the shared deploy token has been removed. Developers must authenticate using their personal access tokens. Additionally, the installation instructions now correctly include the requirement to list self-managed GitLab instances in
gitlab-domainsfor Composer to apply the gitlab-token.
Fixed
- The
post-tool-use.shscript no longer re-indexes on every file edit. It previously ranai-boost:index --incrementalon every source file change, which was inefficient and incorrect. Re-indexing now only occurs in the post-commit hook, aligning with the intended behavior.
1.10.0
2026-08-12
Added
- Laravel 13 support — before this,
composer require metadevs/ai-boost-laravelin a freshly created Laravel app failed outright. The skeleton is on Laravel 13; this package's ownilluminate/*constraints stopped at 12, so Composer walked back through every release, found none installable, and reverted yourcomposer.json. That made the adapter uninstallable on the current Laravel major, andai-boost init --adapterfail on exactly the projects it exists for. Nothing in the code needed changing —laravel/mcpalready allowed Laravel 13 and the suite passes on it unmodified. It was only the constraint.
For contributors
- The test matrix now varies Laravel, not just PHP. It ran three PHP versions against whatever
orchestra/testbench ^10resolved to — always Laravel 12 — so it verified the one version that worked and could never have caught the one that did not. It now runs^10.0(Laravel 12) and^11.0(Laravel 13) across all three PHP versions, and each job prints the framework version it actually resolved rather than the one it meant to.
1.9.2
2026-08-12
Fixed
- The generated instructions named the container's mount path instead of your repository. 1.9.0 started naming the repository in
.claude/CLAUDE.md, taking it from the project directory — which, when the adapter runs inside a container, belongs to the image rather than to the repository. A Sail project mounted at/var/wwwtherefore introduced itself to every session aswww. The name now comes from the git remote, which is the same wherever the command runs and is what ai-boost registered the repository under, so search results come back labelled to match. Runphp artisan ai-boost:init --existing --skip-indexto refresh it.
1.9.1
2026-08-12
Fixed
- Repairs a
.claude/CLAUDE.mdthat already carries two## ai-boostsections. 1.9.0 stopped the adapter appending a second one, but did nothing for the projects where it already had — and those keep updating the first block on every run while the stale one sits underneath it forever, with nothing to say which is current.php artisan ai-boost:init --existing --skip-indexnow replaces the first section, removes any others, and reports how many it removed.
1.9.0
2026-08-12
Fixed
- A project set up by both tools ended up with two
## ai-boostsections in.claude/CLAUDE.md, and no way to tell which one counted. The CLI stamps its section<!-- ai-boost:start v0.7.0 -->;ai-boost:initlooked for the unversioned marker only, did not find it, and appended a whole second section rather than replacing the first. Both markers are now recognised, so it stops happening — repairing a file that already has two came in 1.9.1.
Changed
- The instructions in your project are now the same words the CLI writes. The adapter kept its own description of the same six tools, so what a session read depended on which command last ran. Both now build from one source in the CLI.
- The block is shorter, and the procedure moved into a
/ai-boostskill thatai-boost:initnow writes to.claude/skills/ai-boost/SKILL.md..claude/CLAUDE.mdis loaded into every session, so it stays a short description of what the tools are; how to actually use them — what to call first, how to score a session honestly — loads only when the skill is invoked. A file you have edited is left alone. - The block now names your repository and the artisan command your project actually uses, read from
AI_BOOST_ARTISAN_CMD. A project whose PHP only exists inside a container was previously told to runphp artisan ai-boost:index, which is advice that cannot be followed on that machine.
For contributors
stubs/claude-md.stubandstubs/skill.stubare generated fromai-boost-cli/resources/and carry the source hash. Edit the text in the CLI, then runmake sync-instructions— editing a stub directly failsInstructionStubsTest. A CI job compares against the CLI on every branch; until this project is onai-boost-cli'sCI_JOB_TOKENallowlist it reports that it could not look, rather than passing silently.
1.8.1
2026-08-11
Fixed
SKIP_FEEDBACKnow works. The Stop hook looked for it in atranscriptkey Claude Code has never sent, so the bypass the hook's own message advertises did nothing — a read-only session was held open no matter what it wrote. It is now read fromlast_assistant_message.- A session that only added new files is no longer released without recording feedback. Changed files came from
git diff --name-only HEAD, which never lists an untracked file, so a session whose entire output was a new class ended without being asked for anything. The count and the baseline theUserPromptSubmithook writes now use the same union of modified and untracked files.
Both bugs masked each other — with no change counted, nothing blocks, so the broken bypass was never reached — which is why neither surfaced in use. The test image had neither bash nor python3, so these scripts had never been executed by CI; both are now installed and the hooks have tests that drive them the way Claude Code does.
Upgrading is worth doing. Projects on 1.5.x have both bugs.
1.8.0 initial release
2026-08-10
The adapter installs into a Laravel project and wires ai-boost into the tools that project already uses: artisan commands, Claude Code hooks, and an MCP server the editor connects to over stdio.
Requires Laravel 10, 11, 12 or 13.
Onboarding in one command
sh
php artisan ai-boost:initIt signs you in through the browser, registers the repository against its git remote, generates a personal API key, writes the MCP server configuration and the Claude Code hooks, seeds the AI_BOOST_* variables into .env, and indexes the codebase. Existing files are merged rather than skipped or overwritten, so re-running it is safe.
Docker and Sail projects are detected: the generated hooks run artisan inside the container rather than failing silently on the host.
If laravel/boost is present it is detected and configured alongside.
The MCP server
sh
php artisan ai-boost:mcpServes all six ai-boost tools — search_code_patterns, search_commit_history, get_few_shot_examples, find_relevant_instructions, record_agent_feedback and query_agent_feedback — over stdio, forwarding to the platform with the project's own key. All inference stays on the developer's machine; the adapter is transport.
Indexing
sh
php artisan ai-boost:index # full, with commit history
php artisan ai-boost:index --incremental # only what changed
php artisan ai-boost:index --commit=<sha>Chunked locally — per method for PHP, per section for Blade, by overlapping windows elsewhere — and uploaded in batches with a live progress bar. Dependency directories, lockfiles and anything holding secrets are excluded.
The installed hooks keep the index current: edits and commits trigger an incremental run without anyone remembering to.
Session quality
A Stop hook records how the session went, and php artisan ai-boost:evaluate asks the platform's judge to score it independently.
The rest
| Command | Purpose |
|---|---|
ai-boost:status | Chunk count, last index time, API reachability |
ai-boost:cleanup | Revoke this project's key and clear local credentials |
ai-boost:uninstall | Remove hooks, configuration and the key |
Requests carry a connect timeout and retry a failed attempt once, so a hanging server slows a command rather than freezing an editor.