# darktable: AI-friendly with conditions

> AI coding agents may make task-scoped code and documentation changes, but must ask first before substantial changes, dependencies, public API or schema changes, or touching unnamed subsystems. AI assistance must be disclosed in the pull request description rather than through an invented commit trailer, and committing, pushing and opening the PR remain human steps.

- What it is: Photography workflow application and raw developer. (Application)
- Homepage: https://www.darktable.org/
- Repository: https://github.com/darktable-org/darktable
- Overall stance: AI-friendly with conditions (Mostly friendly). AI-assisted contributions are accepted with extra rules, such as disclosing AI use or using AI only for some kinds of work, or AI is banned for issues or written text.
- Last classified: 2026-11-09 (AI, medium confidence)
- Policy last changed: 2026-11-09
- Web page: https://areweaifriendly.com/projects/darktable/

## Policy by area

- **Code contributions**: AI-friendly with conditions (AI use must be disclosed; No autonomous agents; AI only for some kinds or sizes of work)
- **Issues & bug reports**: No AI policy
- **AI-written text**: AI-friendly

## What is allowed and what is not

### Code contributions

- **Small fixes**: Allowed with conditions. AI agents may make task-scoped small code changes if AI assistance is disclosed and a human performs commit, push and PR. Conditions: Disclose AI use: In the pull request description, not via an invented commit trailer; A person must drive: Human commits, pushes and opens the PR; agents stop at a staged change; Ask maintainers first: Ask first for dependencies, public API/schema changes, unnamed subsystems, or substantial changes.
  > "Instructions for AI coding agents working on darktable." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Go ahead without asking: read anything, build, run the test suites, run
`darktable-cli`, and edit the files the task is about." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Ask first: adding a dependency, changing a public API or the database schema,
touching a subsystem the task did not name, and anything CONTRIBUTING.md calls
substantial -- discuss those before writing them, not after." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Finish at a staged change, and a drafted commit message if one was asked for.
Committing, pushing and opening the PR are the human's steps, and they will
usually not be asked for at all." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Commit trailers are rare here. Disclose AI assistance in the pull request
description instead of inventing a trailer convention." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Disclose that the change was written with AI assistance" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Large or generated changes**: Allowed with conditions. AI agents may make larger task-scoped code changes, but substantial changes must be discussed first; AI assistance must be disclosed and a human commits, pushes and opens the PR. Conditions: Disclose AI use: In the pull request description, not via an invented commit trailer; A person must drive: Human commits, pushes and opens the PR; agents stop at a staged change; Ask maintainers first: Anything substantial, plus dependencies, public API or schema changes, must be discussed before writing.
  > "Instructions for AI coding agents working on darktable." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Go ahead without asking: read anything, build, run the test suites, run
`darktable-cli`, and edit the files the task is about." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Ask first: adding a dependency, changing a public API or the database schema,
touching a subsystem the task did not name, and anything CONTRIBUTING.md calls
substantial -- discuss those before writing them, not after." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Finish at a staged change, and a drafted commit message if one was asked for.
Committing, pushing and opening the PR are the human's steps, and they will
usually not be asked for at all." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Commit trailers are rare here. Disclose AI assistance in the pull request
description instead of inventing a trailer convention." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Disclose that the change was written with AI assistance" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Mechanical changes**: Allowed with conditions. Task-scoped mechanical edits are permitted, but AI agents must not reformat, rename or tidy code the task did not touch. Conditions: Disclose AI use: In the pull request description, not via an invented commit trailer; A person must drive: Human commits, pushes and opens the PR; agents stop at a staged change; Keep it small: Only code the task touched; never reformat, rename or tidy unrelated code; Ask maintainers first: Ask first if the mechanical edit is substantial.
  > "Go ahead without asking: read anything, build, run the test suites, run
`darktable-cli`, and edit the files the task is about." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Finish at a staged change, and a drafted commit message if one was asked for.
Committing, pushing and opening the PR are the human's steps, and they will
usually not be asked for at all." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Never reformat, rename or tidy code the task did not touch, and never fix an
unrelated bug you notice in passing: mention it instead." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Commit trailers are rare here. Disclose AI assistance in the pull request
description instead of inventing a trailer convention." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Disclose that the change was written with AI assistance" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Tests**: Allowed with conditions. Covered by the general permission for AI agents to edit task files; disclose AI assistance and leave commit, push and PR to a human. Conditions: Disclose AI use: In the pull request description, not via an invented commit trailer; A person must drive: Human commits, pushes and opens the PR; agents stop at a staged change; Ask maintainers first: Ask first if the test change is substantial or touches dependencies, public API/schema, or an unnamed subsystem.
  > "Instructions for AI coding agents working on darktable." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Go ahead without asking: read anything, build, run the test suites, run
`darktable-cli`, and edit the files the task is about." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Ask first: adding a dependency, changing a public API or the database schema,
touching a subsystem the task did not name, and anything CONTRIBUTING.md calls
substantial -- discuss those before writing them, not after." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Finish at a staged change, and a drafted commit message if one was asked for.
Committing, pushing and opening the PR are the human's steps, and they will
usually not be asked for at all." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Commit trailers are rare here. Disclose AI assistance in the pull request
description instead of inventing a trailer convention." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Disclose that the change was written with AI assistance" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Build and CI**: Allowed with conditions. Covered by the general permission for AI agents to edit task files; adding a dependency needs prior approval, AI assistance must be disclosed, and a human commits, pushes and opens the PR. Conditions: Disclose AI use: In the pull request description, not via an invented commit trailer; A person must drive: Human commits, pushes and opens the PR; agents stop at a staged change; Ask maintainers first: Ask first before adding a dependency or changing substantial build/CI infrastructure.
  > "Instructions for AI coding agents working on darktable." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Go ahead without asking: read anything, build, run the test suites, run
`darktable-cli`, and edit the files the task is about." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Ask first: adding a dependency, changing a public API or the database schema,
touching a subsystem the task did not name, and anything CONTRIBUTING.md calls
substantial -- discuss those before writing them, not after." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Finish at a staged change, and a drafted commit message if one was asked for.
Committing, pushing and opening the PR are the human's steps, and they will
usually not be asked for at all." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Commit trailers are rare here. Disclose AI assistance in the pull request
description instead of inventing a trailer convention." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Disclose that the change was written with AI assistance" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Documentation**: Allowed with conditions. Covered by the general permission for AI agents to edit task files, including release notes; disclose AI assistance and leave commit, push and PR to a human. Conditions: Disclose AI use: In the pull request description, not via an invented commit trailer; A person must drive: Human commits, pushes and opens the PR; agents stop at a staged change.
  > "Instructions for AI coding agents working on darktable." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Go ahead without asking: read anything, build, run the test suites, run
`darktable-cli`, and edit the files the task is about." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Finish at a staged change, and a drafted commit message if one was asked for.
Committing, pushing and opening the PR are the human's steps, and they will
usually not be asked for at all." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Commit trailers are rare here. Disclose AI assistance in the pull request
description instead of inventing a trailer convention." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Disclose that the change was written with AI assistance" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Research and learning**: Allowed. AI agents may read anything, build, run tests and use `darktable-cli` without asking.
  > "Go ahead without asking: read anything, build, run the test suites, run
`darktable-cli`, and edit the files the task is about." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **AI as author**: Not allowed. Disclose AI assistance in the pull request description; do not invent an AI commit trailer.
  > "Commit trailers are rare here. Disclose AI assistance in the pull request
description instead of inventing a trailer convention." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Disclose that the change was written with AI assistance" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Autonomous agents**: Not allowed. AI agents may edit and stage task-scoped changes, but committing, pushing and opening the PR are human steps.
  > "Instructions for AI coding agents working on darktable." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Finish at a staged change, and a drafted commit message if one was asked for.
Committing, pushing and opening the PR are the human's steps, and they will
usually not be asked for at all." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Other**: Allowed with conditions. AI agents may work without asking on reading, building, running tests and editing task files, but must ask first before adding dependencies, changing public APIs or the database schema, touching unnamed subsystems, or making substantial changes.
  > "Go ahead without asking: read anything, build, run the test suites, run
`darktable-cli`, and edit the files the task is about." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Ask first: adding a dependency, changing a public API or the database schema,
touching a subsystem the task did not name, and anything CONTRIBUTING.md calls
substantial -- discuss those before writing them, not after." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Other**: Allowed with conditions. AI agents must stage only files the task touched, never use `git add -A` over an unexamined tree, and keep build output, editor files and scratch notes out of the staging area.
  > "Stage only the files the task touched -- never `git add -A` over a tree you have not looked at -- and keep build output,
editor files and scratch notes out of it." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Other**: Not allowed. AI agents must not reformat, rename or tidy code the task did not touch, and must mention unrelated bugs instead of fixing them.
  > "Never reformat, rename or tidy code the task did not touch, and never fix an
unrelated bug you notice in passing: mention it instead." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Other**: Not allowed. AI agents must not add comments, files or abstractions nobody requested.
  > "Do not add a comment, file or abstraction that nobody requested." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Other**: Allowed with conditions. AI agents must read the in-tree developer documentation before changing a subsystem and must not infer APIs from names.
  > "**Read [`dev-doc/`](dev-doc/README.md) before changing a subsystem.**" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Most bad agent patches come from inferring an API instead of opening the page
that documents it." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Other**: Allowed with conditions. AI agents must verify with a real build before proposing changes, build both sides of relevant `#ifdef`s, and run relevant tests.
  > "Verify with a real build before proposing changes. A change that has only been
reasoned about is not finished." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "If you touch code behind an `#ifdef`, build
with that feature both on and off." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "**Run them if you touch the pixelpipe or any `src/iop/` module.**" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Other**: Allowed with conditions. AI agents must not present unexecuted or unverified output as fact: read the code, cite file and line for claims, run the app for user-visible changes, say what was not verified, and do not invent paths or claim something works because it should.
  > "The most common failure is confident output that was never executed." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Read the code you are changing before changing it. Do not infer an API from
its name" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "When you state a fact about the codebase, cite the file and line you read it
from" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Run the app, or at least the code path, when the change is user-visible.
`darktable-cli` runs headless" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Say plainly what you did not verify. "This builds but I have not run it" is
useful; silence is not" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Do not invent file paths, function names, config keys or CMake options. If
you are unsure whether something exists, check" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
  > "Do not claim something works because it should" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Other**: Discouraged. AI agents should avoid long em-dashed asides in code comments because they read as machine-written.
  > "Long em-dashed asides read as machine-written and make an agent's comments stand out
from the code around them." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)
- **Other**: Not allowed. AI agents must not narrate their process or leave TODO notes about their own work in code comments.
  > "Do not narrate your process, leave TODO notes about your own work, or
describe what the code "will" do" (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)

### Issues & bug reports

Not covered by the policy.

### AI-written text

- **Commit messages**: Allowed. A commit message may be drafted only if one was asked for; the human commits.
  > "Finish at a staged change, and a drafted commit message if one was asked for.
Committing, pushing and opening the PR are the human's steps, and they will
usually not be asked for at all." (https://github.com/darktable-org/darktable/blob/master/AGENTS.md)

### General

- Allowed with conditions: AI agents must read and follow `AGENTS.local.md` if present, but local instructions do not change what a pull request may contain.

## Sources

- [AGENTS.md – darktable](https://github.com/darktable-org/darktable/blob/master/AGENTS.md), fetched 2026-11-09
