Each agent reads settings from user, project and system scopes, for example ~/.claude/settings.json, ~/.codex/config.toml and ~/.gemini/settings.json. Collecting these files tells you not only that an agent is installed but how it is set up, including approval modes and MCP servers. Treat project scoped files as inventory too, because they travel with repositories.
Read in this order
- OfficialClaude Code: Settings files and precedenceStart here: which settings files exist and which one wins.
- OfficialCodex configuration referenceEvery Codex config key, including approval and sandbox modes.
- OfficialCursor rules (project and user scopes)How project and user rules differ, since project files travel with the repo.