Skip to content

Use env vars to auto detect agent #1

Description

@Aljutor

For claude code we can use CLAUDECODE=1 to detect that we are running inside agent.
https://code.claude.com/docs/en/env-vars

Same for OPENCODE=1
anomalyco/opencode#1775

GEMINI_CLI=1
https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/shell.md

Also there is

agentsmd/agents.md#136

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions