ai_env
Detects which AI coding agent (Claude Code, Codex, Cursor, Gemini, etc.) is running the current process, by inspecting agent-specific environment variables and filesystem markers.
Usage
To start, detect if an AI agent is running the process.
is_ai_agent;
Or detect which agent is being used.
detect_agent; // Claude
And extract information about the agent environment.
use get_environment;
if let Some = get_environment