# Agent variables: Write (repository)

Tier 2 permission, `permission:agent_variables:write`. Page: https://ghtier.com/tier/permissions/agent-variables-write

Changes variables in the Copilot agent's environment.

**Reached by classic scopes:** [repo](https://ghtier.com/tier/tokens/repo.md) (Tier 0)

**Keys and policies that act as or change it:** [Agents secrets and variables](https://ghtier.com/tier/keys-policies/agent-secrets.md) (Tier 2)

**Sources:**
- [GitHub docs](https://docs.github.com/en/rest/authentication/permissions-required-for-github-apps#repository-permissions-for-agent-variables)

From ghtier (https://ghtier.com). Every entry and link: https://ghtier.com/data/graph.json. Tiers: https://ghtier.com/tier.
