Ethics by Configuration: AI Ethics Principles in Coding Agent Instructions
Haoyu Gao, Peerachai Banyongrakkul, Marc Cheong, Christoph Treude, Sebastian Baltes, Mansooreh Zahedi
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.
Create a lesson
Related papers
Do Coding Agents Follow AGENTS.md? The Effect of Policy Wording on Instruction Compliance
Shared title terminologycs.SERikuto Tsuchida, Youmei Fan, Kazumasa Shimari et al.
Hidden in Plain Sight: an Empirical Study about The Instruction Stacks of Coding Agents
Shared title terminologycs.SEFelipe de Sant'Anna Paixão, Dhyego Tavares, Eduardo Almeida et al.
Multi-Agent Coordinated Method-Level Refactoring of Rust Code
Shared title terminologycs.SEYijian Zheng, Yi Zhang, Juyuan Zhang et al.
Fixed or Deleted? External Feedback Lets Cheaper AI Coding Agents Repair Rule Violations
Shared title terminologycs.SELaura Wynter
TEA-Bench-BR: Can Coding Agents Turn a Branching Clinical Specification into Correct Code?
Shared title terminologycs.SEMarcio Andre de Souza Estevam
Markdown Is Not a Firewall: four coding agents, one rules file, four boundaries
Shared title terminologycs.SESandeep Dhuri