Skip to content

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. Commit dc1af184

Fixed ​

  • The event map is now generated from the CLI's HookEvent enum, 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. Commits 5a2abbc8, 1d14d2c2, f8055a78

4.3.1 ​

2026-08-26

Fixed ​

  • The ai-boost:uninstall command now correctly removes the AI_BOOST_KEY from the .env file and unregisters all hooks initialized by init, 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. Commit b99016cd

4.3.0 ​

2026-08-24

Added ​

  • Adapter-owned projects now register three more Claude Code events — SubagentStart, PostCompact and SessionEnd — 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. Commit f9dae3dd

4.2.0 ​

2026-08-24

Added ​

  • Register SubagentStop event and a PostToolUse matcher 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. Commit 2590d9a4

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. Commit d40e2159

4.0.0 ​

2026-08-24

Breaking changes ​

  • php artisan ai-boost:index now only uploads files that have been committed. To include uncommitted files, use the --include-untracked flag. This change aligns the Laravel adapter's behavior with the CLI, ensuring consistent indexing across clients. Commit 6a775922

3.5.0 ​

2026-08-22

Added ​

  • Search results now include start_line and end_line for 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. Commit 10647b91

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. Commit aaa7af62

Fixed ​

  • Generated assets have been refreshed to align with CLI version 1.0.0, resolving incorrect staleness reports during session starts. Commit 3d4c23f3

3.4.0 ​

2026-08-20

Added ​

  • The adapter now records its version in .ai-boost/onboarding.json as adapter_version, allowing ai-boost doctor to verify if the generated files are current. This prevents confusion between CLI and adapter versions, ensuring accurate staleness checks. Commit d54f220b

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:init will now have parity with the CLI's indexing. Commit 4ee1b721

Fixed ​

  • Updated documentation to reflect the correct argument passed by InitCommand for the post-merge Git hook. The docblock in GitHooks now accurately describes the use of --since=ORIG_HEAD instead of the outdated --incremental argument, preventing indexing issues after a pull. Commit 991f0c7e

3.3.0 ​

2026-08-20

Added ​

  • Introduced the --dry-run option for the ai-boost:index command, aligning it with the CLI's index command. 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. Commit b4a1cbd2

Fixed ​

  • Updated the README to correctly reflect that both post-commit and post-merge hooks are installed by this package, correcting outdated information that stated otherwise. Commit b4a1cbd2

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. Commit 811f5469

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 commit and git pull, making the hooks less intrusive and more reliable. Commit 4a7e44af

3.2.0 ​

2026-08-20

Added ​

  • The ai-boost:init command now installs a post-merge hook alongside post-commit, ensuring that the index updates automatically after a git pull. Commit 0e3831eb
  • The ai-boost:index command 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 a git pull are indexed correctly. Commit 0e3831eb

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 ToolTextEncodingTest now checks raw bytes to prevent such encoding issues. Commit 26fc5b0e
  • Fixed the inability to send the repository argument 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. Commit 26fc5b0e

3.1.1 ​

2026-08-19

Fixed ​

  • Corrected tool descriptions for find_relevant_instructions and get_few_shot_examples to reflect their actual functionality, ensuring accurate runtime behavior. Previously, find_relevant_instructions was incorrectly described as returning "constitutional rules and project conventions," and get_few_shot_examples incorrectly taught bugfix as a task type. These corrections now align with the server's behavior and schema. Commits b586e7ac, 1115a13f

Changed ​

  • Added a CLAUDE.md document to the repository to provide accurate project conventions and instructions, improving the functionality of find_relevant_instructions by 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. Commit 1115a13f

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. Commit fd37d0fc

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. Commit d15b870c
  • 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. Commit d15b870c

Fixed ​

  • Resolved an issue where ai-boost:uninstall did 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. Commit fd37d0fc
  • Improved test coverage by ensuring InstructionStubsTest checks all synced stubs, catching discrepancies such as missing placeholders immediately. Commit fd37d0fc

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. Commit 2fb84ebf

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. Commit 72f0a5fa

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. Commit 7cd20644

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 run ai-boost init on the developer's own machine. Commit 06156769

Added ​

  • The ai-boost:status command 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. The composer.json now includes a suggest entry for the CLI, and the README specifies that the CLI is required for session hooks. Commit c9db662f

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. Commit 06156769

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. Commit 0e777898
  • Session hooks are now registered correctly for containerised Laravel projects. Previously, hooks were not registered if the ai-boost:init command 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. Commit 134469b8

2.0.0 ​

2026-08-18

Breaking changes ⚠️ ​

  • The ai-boost CLI 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.json now registers ai-boost hook <event> instead. Upgrading from 1.x: run php artisan ai-boost:init, which replaces the old script entries and clears the scripts. Installing the binary also drops the adapter's dependency on bash, jq and python3 being present wherever the editor runs hooks. Commit 3269844f

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. Commit 138380c4

Added ​

  • The session_id is 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. Commit 00539b7b

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. Commit 20f0469e

1.12.4 ​

2026-08-17

Fixed ​

  • ai-boost:init now tells you about the one step it cannot take for you: trusting the folder. .mcp.json only 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 /mcp lists 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. init now says the dialog is still yours to answer, and ai-boost:status reports it. Onboarding deliberately does not answer it for you: it is the prompt standing between you and executing an unfamiliar checkout's configuration. Commit b0a9d500

  • ai-boost:status told you the API was unreachable when the server had answered and refused your key. Measured in one container at one moment: GET /up returned 200 while GET /api/v1/status returned 401, and status printed API: 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, and status could 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. Commit b0a9d500

  • status never checked whether a key existed, so five ticks could sit above a setup that could not authenticate. A file is not a credential. Commit b0a9d500

  • 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 missing git remote. Commit b0a9d500

  • login_timeout had 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. Commit b0a9d500

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.hooksPath can appear, change or disappear long after ai-boost:init has 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 own post-commit would 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. Commit 550b2f93

  • The generated hook no longer sits untracked in the project forever. A core.hooksPath inside the working tree makes the installed hook a file in the checkout: permanently in git status, and committed for the whole team by the first git add .. Added to .gitignore now, 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. Commit 550b2f93

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 any package.json — which a Composer library carries for its release tooling — as a Node project. Sessions were handed JavaScript conventions for a PHP codebase. Re-running ai-boost:init picks up the corrected text. Commit 5fbd9ba6

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 --root flag in diff-tree. Additionally, commits touching only excluded paths were skipped entirely, including their commit messages. Commit 9453872e

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. Commit f6eccff1

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. Commit 680cc650

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. Commit fada7bab

1.11.7 ​

2026-08-16

Fixed ​

  • Existing laravel-boost servers are now correctly identified and left unchanged during initialization, preventing the creation of duplicate and non-functional boost servers. Commit bd6b0ba8
  • 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. Commit b612f371

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. Commits e6d77329, 95c08b83
  • 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. Commit 04d2a4bd

1.11.6 ​

2026-08-15

Fixed ​

  • ai-boost:init now 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. Commit cdfeddf0

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. Run php artisan ai-boost:init in your project to pick the corrected text up — it only rewrites inside the ai-boost markers. Commit 1ed63f36

1.11.5 ​

2026-08-14

Fixed ​

  • Indexing now retries transient failures instead of stopping, improving reliability when the ai-boost API is 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 /ingest and /ingest/complete endpoints. Commit a31d31e3

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.hooksPath setting. This ensures the hook is actually used for re-indexing on commits. Commit e9e100e6
  • Removed an unused command from the post-commit hook, improving its performance and ensuring it remains portable across different environments. Commit f3df45b7

1.11.3 ​

2026-08-14

Fixed ​

  • The --files option now correctly restricts file indexing to paths within the project, preventing unintended uploads from outside the project directory. Commit 2e77c15b

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. Commit c2b4f6cf

1.11.1 ​

2026-08-14

Fixed ​

  • The indexer now respects .gitignore files, 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. Commit 58280605

1.11.0 ​

2026-08-13

Added ​

  • The ai-boost:init command 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. Commit 6f036064

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-domains for Composer to apply the gitlab-token. Commit b0f69fe7

Fixed ​

  • The post-tool-use.sh script no longer re-indexes on every file edit. It previously ran ai-boost:index --incremental on every source file change, which was inefficient and incorrect. Re-indexing now only occurs in the post-commit hook, aligning with the intended behavior. Commit 6f036064

1.10.0 ​

2026-08-12

Added ​

  • Laravel 13 support — before this, composer require metadevs/ai-boost-laravel in a freshly created Laravel app failed outright. The skeleton is on Laravel 13; this package's own illuminate/* constraints stopped at 12, so Composer walked back through every release, found none installable, and reverted your composer.json. That made the adapter uninstallable on the current Laravel major, and ai-boost init --adapter fail on exactly the projects it exists for. Nothing in the code needed changing — laravel/mcp already allowed Laravel 13 and the suite passes on it unmodified. It was only the constraint. Commit 2953b21e

For contributors ​

  • The test matrix now varies Laravel, not just PHP. It ran three PHP versions against whatever orchestra/testbench ^10 resolved 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. Commits 2953b21e, 582b4d2f

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/www therefore introduced itself to every session as www. 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. Run php artisan ai-boost:init --existing --skip-index to refresh it. Commit 50e79e69

1.9.1 ​

2026-08-12

Fixed ​

  • Repairs a .claude/CLAUDE.md that already carries two ## ai-boost sections. 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-index now replaces the first section, removes any others, and reports how many it removed. Commit b8a55a30

1.9.0 ​

2026-08-12

Fixed ​

  • A project set up by both tools ended up with two ## ai-boost sections 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:init looked 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. Commit 152e0fa4

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. Commit 152e0fa4
  • The block is shorter, and the procedure moved into a /ai-boost skill that ai-boost:init now writes to .claude/skills/ai-boost/SKILL.md. .claude/CLAUDE.md is 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. Commit 152e0fa4
  • 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 run php artisan ai-boost:index, which is advice that cannot be followed on that machine. Commit 152e0fa4

For contributors ​

  • stubs/claude-md.stub and stubs/skill.stub are generated from ai-boost-cli/resources/ and carry the source hash. Edit the text in the CLI, then run make sync-instructions — editing a stub directly fails InstructionStubsTest. A CI job compares against the CLI on every branch; until this project is on ai-boost-cli's CI_JOB_TOKEN allowlist it reports that it could not look, rather than passing silently. Commit 152e0fa4

1.8.1 ​

2026-08-11

Fixed ​

  • SKIP_FEEDBACK now works. The Stop hook looked for it in a transcript key 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 from last_assistant_message. Commit d68387ab
  • 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 the UserPromptSubmit hook writes now use the same union of modified and untracked files. Commit d68387ab

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:init

It 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:mcp

Serves 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 ​

CommandPurpose
ai-boost:statusChunk count, last index time, API reachability
ai-boost:cleanupRevoke this project's key and clear local credentials
ai-boost:uninstallRemove 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.