{"name":"AI_AGENT","slug":"ai-agent","family":"env","title":"Environment variables","noun":"environment variable","description":"Written by Claude Code so child processes can tell they run under it. At startup, if it is unset or already starts with `claude-code_` or `claude-code\/`, it is set to `claude-code_<version>_harness` with the version's dots turned into dashes (`claude-code_2-1-286_harness`); any other value is left alone. Shell commands run for the model get `claude-code_<version>_agent` instead, set over the inherited value.","description_source":"code","described_by":{"bundle":"2.1.286","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":null},"aliases":[],"entries":[],"entries_total":0,"docs":[],"docs_total":0,"gates":[],"related":[],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/ai-agent","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}