Ethics by Configuration: AI Ethics Principles in Coding Agent Instructions
Haoyu Gao, Peerachai Banyongrakkul, Marc Cheong, Christoph Treude, Sebastian Baltes, Mansooreh Zahedi
Key points
From the paper's conclusion- We studied ethics principles in 40,079 configuration files across 8,893 GitHub repositories.
Abstract
As AI coding agents become integral to software development, projects increasingly utilise configuration files, such as context files and skills, to govern agent behaviour. While AI ethics principles are widely used in research and policy, little is known about whether and how they are reflected when developers configure coding agents. We studied ethics principles in 40,079 configuration files across 8,893 GitHub repositories. Using a validated large language model (LLM) classification, we measured the prevalence of ethics-related statements, and qualitatively analysed 702 stratified samples across 679 files to uncover the ethical considerations reflected in these files and the parties they concern. Ethics-related statements appeared in 39.4% of files and 61.5% of repositories; concentrated on accountability, transparency, privacy protection, and reliability; and occurred more often in task-specific files such as skills than in project-wide context files. Our qualitative analysis identified 30 categories of ethical considerations, which take the form of concrete rules for the agent. Accountability appeared mainly as requirements for human approval, transparency as explain and honestly report the agent's work, and fairness as accessibility and localisation. These considerations reveal a difference in focus. Whereas public ethics frameworks aim to protect society and end users, configuration files mainly concern developers, maintainers, and community members in the development workflow. Ethics-related content appeared mainly in prose-based files, and whether agents follow these instructions remains untested. We discuss the implications for practitioners, researchers, and policymakers.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- (No) Separation of Concerns: Philosophical Concerns about Agent Ethics and Implications for SE PractitionersarXiv · 2026
- What Open-Source Projects Tell Their Coding Agents: A Census of AGENTS.md and CLAUDE.mdarXiv · 2026
- Do They Do as They Are Told? Investigating Coding Agents' Adherence to Explicit Instructions in Context FilesarXiv · 2026
- AI Cannot Review What Humans Catch: A First Look at the Reviews of Agent Instruction FilesarXiv · 2026
- The ethical PROMISE NFR dataset: data for ethical concern classification in software requirements.Data in brief · 2026
- Does the Agent's Map Match the Territory? Architectural Claims in AI Agent Context Files and Their Fit with the CodearXiv · 2026