mise-agent-env
mise-agent-env detects whether a command is running under an AI coding agent.
It is environment-only: detection does not inspect processes or the filesystem and
does not spawn subprocesses.
if is_agent
if let Some = detect
Tests and embedded callers can provide their own lookup without changing the process environment:
use OsString;
let detected = detect_with_env;
assert_eq!;
The provider signals are informed by the language-neutral
vercel/detect-agent definitions and
the agents' own implementations. Detection is intentionally conservative: an
editor or hosted development environment alone is not classified as an agent.