Docs / Getting Started / AI Assisted Development
AI Assisted Development
Introduction
Laraflare is uniquely positioned to be a great framework for AI assisted and agentic development. The rise of AI coding agents like Claude Code, OpenCode, Cursor, and GitHub Copilot has transformed how developers write code. These tools can generate entire features, debug complex issues, and refactor code at unprecedented speed - but their effectiveness depends heavily on how well they understand your codebase.
Why Laraflare for AI Development?
Laraflare's opinionated conventions and well-defined structure make it an ideal framework for AI assisted development. When you ask an AI agent to add a controller, it knows exactly where to place it. When you need a new migration, the naming conventions and file locations are predictable. This consistency eliminates the guesswork that often trips up AI tools in more flexible frameworks.
Beyond file organization, Laraflare's expressive syntax and comprehensive documentation give AI agents the context they need to generate accurate, idiomatic code. Features like model relationships, form requests, and middleware follow patterns that agents can reliably understand and replicate. The result is AI-generated code that looks like it was written by a seasoned Laraflare developer, not stitched together from generic TypeScript snippets.
Boost
Boost bridges the gap between AI coding agents and your Laraflare application. Boost is an MCP (Model Context Protocol) server equipped with specialized tools that provide AI agents with deep insight into your application's structure, database, logs, and more. When you install Boost, your AI agent transforms from a general-purpose code assistant into a Laraflare expert that understands your specific application.
Boost provides three major capabilities: a suite of MCP tools for inspecting and interacting with your application, composable AI guidelines crafted specifically for the Laraflare ecosystem, and a documentation search tool for laraflare-specific knowledge.
Installation
Boost may be installed when creating a new application by passing --boost to the installer. To install it into an existing application, add it as a development dependency:
npm install --save-dev @laraflare/boost
Then run the interactive installer:
npx artisan boost:install
The installer will auto-detect your IDE and AI agents, allowing you to select the integrations that make sense for your project. Boost will generate the necessary configuration files, such as .mcp.json for MCP-compatible editors and guideline files for AI context. To install only part of it, pass --guidelines, --skills or --mcp.
Note
Generated configuration files like
.mcp.json,CLAUDE.md, andboost.jsoncan be safely added to your.gitignoreif you prefer each developer to configure their own environment.
Available Tools
Boost exposes a set of tools to AI agents via the Model Context Protocol. These tools allow agents to deeply understand and interact with your Laraflare application:
- Database Tools - List your database connections, inspect your database schema, execute read-only queries, and understand your data structure without leaving the conversation.
- Log Analysis - Read and analyze your application's log entries, and get the last error, to help debug issues.
- Browser Logs - Access browser console logs and errors when developing with the frontend tools.
- Tinker Integration - Execute code in the context of your application, allowing agents to test hypotheses and verify behavior.
- Documentation Search - Search Laraflare documentation with results tailored to your installed package versions.
- Absolute URLs - Resolve a path or route to its full URL, so agents open your application at its
.testaddress.
You can also run a tool yourself from the terminal with npx artisan boost:execute-tool.
AI Guidelines
Boost includes a set of AI guidelines specifically crafted for Laraflare. These guidelines teach AI agents how to write idiomatic Laraflare code, follow framework conventions, and avoid common pitfalls. Guidelines are composable and version-aware, meaning agents receive instructions appropriate for your exact package versions.
When you run boost:install, Boost automatically detects which packages your application uses and assembles the relevant guidelines into your project's AI context files.
Agent Skills
Agent Skills are lightweight, targeted knowledge modules that agents can activate on-demand when working on specific domains. Unlike guidelines, which are loaded upfront, skills allow detailed patterns and best practices to be loaded only when relevant, reducing context bloat and improving the relevance of AI-generated code.
When you run boost:install and select skills as a feature, skills are automatically installed based on the packages detected in your project. Use npx artisan boost:add-skill to add skills from a remote repository, and npx artisan boost:update to refresh the installed guidelines and skills.
Documentation Search
Boost includes a documentation search tool that gives AI agents access to Laraflare documentation, filtered to match your exact package versions.
When an agent needs to understand how a feature works, it can search the documentation and receive accurate, version-specific information. This eliminates the common problem of AI agents suggesting deprecated methods or syntax from older framework versions.
Note
Searching the documentation needs a network connection, as the search runs against a hosted service.
Agents Integration
Boost integrates with popular IDEs and AI tools that support the Model Context Protocol, including Claude Code, Codex, Cursor, GitHub Copilot, Junie, OpenCode, Zed and others. The installer detects the ones you use and writes each one's configuration.