Didn’t read, sent to agent. Paste this into Claude Code, Codex, Cursor, or whatever you use, and let it install and wire up the package for you.

Add Laravel Clutch to this application. It is a durable agent harness for
Laravel that wraps the official laravel/ai SDK rather than replacing it.

Read https://obaid.github.io/laravel-clutch/llms.txt first and follow the guide
it links to. Do not guess at the API surface.

Install it, publish and run the migrations for BOTH Clutch and Laravel AI, put
agent work on its own queue, and move the agent in this codebase that most
needs to outlive a request onto a Clutch session.

Two things fail silently if you skip them: the agent must use the
RemembersConversations trait and contract, and its tools must be returned
through Clutch::policy([...]) or none of the approval, idempotency or loop
guard machinery ever runs.

Show me the diff, the worker command, and one curl that starts a run.

More prompts for moving an existing Laravel AI agent across, adding approval to a single tool, and building a progress UI, plus the mistakes worth checking for afterwards.

Agents can read the whole thing at llms.txt, or llms-full.txt for the guide and every recipe as one file.


Back to top

A community package, not affiliated with or endorsed by Laravel. Released under the MIT licence.

This site uses Just the Docs, a documentation theme for Jekyll.