- How do I install thomsontochi/laravel-agent-loops in a Laravel application?
- Install it with Composer using composer require thomsontochi/laravel-agent-loops. The package is distributed through Composer like a normal Laravel dependency. After installation, you can define and run agent loops inside your Laravel app. If you use Laravel Boost, you can optionally run php artisan boost:install to add agent guidance.
- What are swappable agent loops and why would I switch them?
- Swappable loops let you change how your AI agent thinks without rewriting the surrounding harness. You pick a loop strategy, switch it with one line, and compare which approach works best for your workflow. This keeps orchestration, tool calls, and lifecycle hooks structured and testable. It is useful when different tasks need different reasoning patterns or cost profiles.
- Which Laravel and PHP versions does laravel-agent-loops support?
- The provided release information does not list exact Laravel or PHP version constraints, so check the package composer.json and README before standardizing. The package is built for Laravel applications and installs through Composer. Confirm compatibility in a development environment first, especially if you are on an older Laravel release. For Laravel Boost integration, also verify the Boost version your project uses.
- How do I connect laravel-agent-loops to Laravel Boost?
- Laravel Boost users can run php artisan boost:install to pick up the package's agent guidance. The v0.4.0 release adds optional Boost integration without changing runtime architecture. After installation, validate that your coding agent can explain installation, loop selection, and cost/quality comparison. If Boost is not available, use the skills.sh path instead.
- Can I use laravel-agent-loops with Claude Code, Cursor, or GitHub Copilot?
- The package ships an agent skill that can be added through skills.sh with npx skills add thomsontochi/laravel-agent-loops. The release notes describe compatibility with any agent through skills.sh and native pickup through Laravel Boost. Teams using Claude Code, Cursor, or Copilot should confirm their agent's skills support and version. Without Boost, validate the skills.sh workflow separately before rolling it out.
- How should I test agent loops in a Laravel app?
- Because the package is designed to keep loop logic structured and testable, you can exercise loops like other Laravel application code. Focus tests on repeatable steps, tool calls, and lifecycle hooks rather than on the AI model's prose. Use deterministic fakes for tool responses where possible. Also test loop switching so a one-line change does not alter surrounding orchestration unexpectedly.
- Is laravel-agent-loops safe to run in production?
- The v0.4.0 release is additive and states there are no code changes and nothing breaks, so runtime risk is low for existing users. The bigger production concern is operational: agent guidance can become stale and developers may over-trust loop recommendations. Keep money and cost decisions in code, measure before choosing a loop, and review agent-readable guidance. Confirm your Laravel, PHP, and Boost versions before standardizing.
- How do I compare cost and quality between agent loops?
- Use the package's swappable loops to run the same workflow with different loop strategies and compare results. Measure before you pick a loop, and keep cost decisions in application code rather than relying on the agent's narrative. Track both output quality and token or API cost for realistic tasks. The release guidance emphasizes that AI talks, but code decides the money.
- Does upgrading to v0.4.0 require code changes?
- No. The release notes explicitly state no code changes and nothing breaks, so existing loops and application code should remain unaffected. Upgrade with composer require thomsontochi/laravel-agent-loops in a development environment first. Then optionally enable agent guidance through php artisan boost:install or npx skills add thomsontochi/laravel-agent-loops. Validate loop behavior and agent recommendations after the upgrade.
- What if skills.sh or Laravel Boost is unavailable in my environment?
- The package remains usable as a normal Composer dependency even if you do not enable agent guidance. If Laravel Boost is unavailable, try the skills.sh path for your coding agent, or skip agent skills entirely and rely on the package README. Teams should document a fallback workflow for installation, loop selection, and comparison. Confirm supported versions before making either integration mandatory.