Repository navigation
Highlights
AI_AGENTsupport. Agents that announce themselves via the emergingAI_AGENTconvention are detected first, including ones this crate does not know by name (reported asunknown). Both value formats are parsed, soAI_AGENT=claude-code_2-1-312_agentyields version2.1.312and modeagent, anddevin@1yields version1.- 13 new agents: Kilo Code, Pi, OpenHands, Cline, Roo Code, Amazon Q Developer CLI, GitHub Copilot CLI, Claude Cowork, Goose, Junie, Kiro (CLI and IDE), Trae, Windsurf Cascade, plus Warp's cloud agent and Devin.
- Signals verified against agent source code and docs, with confidence levels (
high,medium,low) reflecting the evidence behind each one. detect_all()lists every matching agent, for agents running inside other agents.- New
fs-markersfeature checks Devin's/opt/.devinfile. It is off by default, and the*_with_envfunctions never touch the file system.
Fixes
- Zed's agent terminal is now detected. It sets
PAGER=""andGIT_PAGER=cat; the oldPAGER=catrule never matched. - Detection order is corrected for agents that build on other agents: Amp before Claude Code, Kilo before OpenCode, Qwen Code before Gemini CLI.
- The GitHub Copilot CLI is detected outside GitHub Actions.
- Reading the process environment no longer panics on non-UTF-8 variables.
Breaking changes
DetectedAgentgainsconfidence,signal,version,modeandai_agent. It andAgentKindare now#[non_exhaustive];AgentKindis nowCopy.- Aider is no longer detected:
AIDER_API_KEYis user configuration, not a signal Aider injects, and caused false positives. windsurfnow means the interactive IDE terminal; the agent iswindsurf-cascade.- The local Copilot CLI is reported as
copilot-cli;copilot-cloud-agentstill requiresGITHUB_ACTIONS=true. OPENCODE_BIN_PATH,OPENCODE_SERVER,OPENCODE_APP_INFO,OPENCODE_MODESandANTIGRAVITY_PROJECT_IDare no longer used; the agents do not inject them.
See the README's "Migrating from 0.1" section for details.
What's Changed
- Bump advanced-security/spdx-dependency-submission-action from 0.2.0 to 0.3.1 in the actions-minor-and-patch group by @dependabot[bot] in #5
Full Changelog: v0.1.1...v0.2.0