promptphp/intercept-tool-approval-guard
Intercept and gate AI tool calls before they run in your Laravel app. Define approval rules, queue pending actions for human review, and enforce human-in-the-loop guards through a simple, extensible API, so you can ship safer agents without rewriting your existing tooling.
promptphp/intercept, the real decision is whether to adopt the upstream intercept ecosystem. This package is an entry point, not an independent commitment — evaluate the parent package's maintenance, release cadence, and API stability before standardizing.composer.json directly or is pulled transitively, and whether the team accepts depending on a package whose issue tracker and changelog live in a different repository.promptphp/intercept; this package is only a distribution artifact of it. Adopting it standalone without the parent ecosystem makes little sense.intercept-source: 73ed9bb…, which is a traceability pointer, not a change description.Adoption criteria to confirm before committing: verify the parent promptphp/intercept repository's recent activity, open-issue responsiveness, and whether v1.1.1 contains behavioral changes or only a source re-sync (the notes do not say). Pin to ^1.1 and diff the upstream commits between your current pin and 73ed9bb rather than trusting the split tag alone.
For executives: We are evaluating a small, focused PHP/Laravel library that adds a human approval checkpoint before an AI agent is allowed to execute an action — the difference between an agent that drafts an email and one that sends it. It is low-cost to trial and lets us ship agent features with a defensible safety story rather than blocking on a from-scratch build. It is one component of a larger ecosystem (promptphp/intercept), so the real commitment is to that upstream project, not this tag.
For engineering: Version 1.1.1 is a maintenance release of a read-only subtree split; the only substantive information is the pinned upstream commit 73ed9bb. There is no separate changelog, issue tracker, or release narrative here, so change review must happen against the parent repository. Proposed handling: pin the version, diff upstream commits since our current pin, and treat the package as a thin, replaceable interception seam behind our own interface — so we can swap it if the upstream project stalls or the API shifts. Do not spread direct imports across the codebase.
Decision requested: Approve a time-boxed spike (one engineer, ~1 week) to integrate against the parent intercept package, with the explicit exit criterion that we can wrap the guard behind an internal abstraction and that upstream shows active maintenance.
How can I help you explore Laravel packages today?