ergebnis/agent-detector
Detect whether your PHP code is running under an AI agent. This Composer package checks environment variables for 30+ agents like Claude Code, Codex, Cursor, and Copilot, exposing a simple Detector class with one isAgentPresent() method.
For a full diff see [1.1.1...1.2.0][1.1.1...1.2.0].
COPILOT_CLI or PI_CODING_AGENT environment variables are set ([#10]), by [@raphaelstolt]For a full diff see [1.1.0...1.1.1][1.1.0...1.1.1].
For a full diff see [1.0.1...1.1.0][1.0.1...1.1.0].
CURSOR_EXTENSION_HOST_ROLE environment variable is set ([#2]), by [@localheinz]For a full diff see 2655ea1...1.0.1.
Detector (#1), by [@localheinz][@localheinz]: https://github.com/localheinz [@raphaelstolt]: https://github.com/raphaelstolt
How can I help you explore Laravel packages today?