Library to detect if Python code is running inside an AI agent (e.g., ChatGPT, Claude, Cursor agent) or automated development environment. Current version: 0.2.0. Release cadence: irregular.
pip install detect-agentNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage to detect if code is executed by an AI agent.
Do not rely solely on this library for security-critical decisions; use it for soft gating.
Upgrade to 0.2.0 or check version before calling.
Contribute upstream or extend detection logic locally.
No dependency data recorded yet.