darktable
Photography workflow application and raw developer.
Mostly friendly. Welcome, with extra rules.
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.
Policy by area
- Code contributionsPatches, pull requests and other changes written with AI tools.
- Mostly friendly
- AI use must be disclosed
- No autonomous agents
- AI only for some kinds or sizes of work
- Issues & bug reportsBug reports, security reports and issues found or written with AI tools.
- No policy
- AI-written textPull request descriptions, issue comments and summaries written by 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.
- 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
6 quotes
Instructions for AI coding agents working on darktable.
AGENTS.md – darktable Go ahead without asking: read anything, build, run the test suites, run `darktable-cli`, and edit the files the task is about.
AGENTS.md – darktable 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.
AGENTS.md – darktable 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.
AGENTS.md – darktable Commit trailers are rare here. Disclose AI assistance in the pull request description instead of inventing a trailer convention.
AGENTS.md – darktable Disclose that the change was written with AI assistance
AGENTS.md – darktable 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.
- 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
6 quotes
Instructions for AI coding agents working on darktable.
AGENTS.md – darktable Go ahead without asking: read anything, build, run the test suites, run `darktable-cli`, and edit the files the task is about.
AGENTS.md – darktable 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.
AGENTS.md – darktable 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.
AGENTS.md – darktable Commit trailers are rare here. Disclose AI assistance in the pull request description instead of inventing a trailer convention.
AGENTS.md – darktable Disclose that the change was written with AI assistance
AGENTS.md – darktable 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.
- 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
5 quotes
Go ahead without asking: read anything, build, run the test suites, run `darktable-cli`, and edit the files the task is about.
AGENTS.md – darktable 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.
AGENTS.md – darktable Never reformat, rename or tidy code the task did not touch, and never fix an unrelated bug you notice in passing: mention it instead.
AGENTS.md – darktable Commit trailers are rare here. Disclose AI assistance in the pull request description instead of inventing a trailer convention.
AGENTS.md – darktable Disclose that the change was written with AI assistance
AGENTS.md – darktable 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.
- 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
6 quotes
Instructions for AI coding agents working on darktable.
AGENTS.md – darktable Go ahead without asking: read anything, build, run the test suites, run `darktable-cli`, and edit the files the task is about.
AGENTS.md – darktable 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.
AGENTS.md – darktable 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.
AGENTS.md – darktable Commit trailers are rare here. Disclose AI assistance in the pull request description instead of inventing a trailer convention.
AGENTS.md – darktable Disclose that the change was written with AI assistance
AGENTS.md – darktable 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.
- 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
6 quotes
Instructions for AI coding agents working on darktable.
AGENTS.md – darktable Go ahead without asking: read anything, build, run the test suites, run `darktable-cli`, and edit the files the task is about.
AGENTS.md – darktable 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.
AGENTS.md – darktable 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.
AGENTS.md – darktable Commit trailers are rare here. Disclose AI assistance in the pull request description instead of inventing a trailer convention.
AGENTS.md – darktable Disclose that the change was written with AI assistance
AGENTS.md – darktable 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.
- 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
5 quotes
Instructions for AI coding agents working on darktable.
AGENTS.md – darktable Go ahead without asking: read anything, build, run the test suites, run `darktable-cli`, and edit the files the task is about.
AGENTS.md – darktable 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.
AGENTS.md – darktable Commit trailers are rare here. Disclose AI assistance in the pull request description instead of inventing a trailer convention.
AGENTS.md – darktable Disclose that the change was written with AI assistance
AGENTS.md – darktable Research and learning · Allowed
AI agents may read anything, build, run tests and use `darktable-cli` without asking.
Quote
Go ahead without asking: read anything, build, run the test suites, run `darktable-cli`, and edit the files the task is about.
AGENTS.md – darktable AI as author · Not allowed
Disclose AI assistance in the pull request description; do not invent an AI commit trailer.
2 quotes
Commit trailers are rare here. Disclose AI assistance in the pull request description instead of inventing a trailer convention.
AGENTS.md – darktable Disclose that the change was written with AI assistance
AGENTS.md – darktable Autonomous agents · Not allowed
AI agents may edit and stage task-scoped changes, but committing, pushing and opening the PR are human steps.
2 quotes
Instructions for AI coding agents working on darktable.
AGENTS.md – darktable 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.
AGENTS.md – darktable Other code contributions rule · 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.
2 quotes
Go ahead without asking: read anything, build, run the test suites, run `darktable-cli`, and edit the files the task is about.
AGENTS.md – darktable 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.
AGENTS.md – darktable Other code contributions rule · 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.
Quote
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.
AGENTS.md – darktable Other code contributions rule · 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.
Quote
Never reformat, rename or tidy code the task did not touch, and never fix an unrelated bug you notice in passing: mention it instead.
AGENTS.md – darktable Other code contributions rule · Not allowed
AI agents must not add comments, files or abstractions nobody requested.
Quote
Do not add a comment, file or abstraction that nobody requested.
AGENTS.md – darktable Other code contributions rule · Allowed with conditions
AI agents must read the in-tree developer documentation before changing a subsystem and must not infer APIs from names.
2 quotes
**Read [`dev-doc/`](dev-doc/README.md) before changing a subsystem.**
AGENTS.md – darktable Most bad agent patches come from inferring an API instead of opening the page that documents it.
AGENTS.md – darktable Other code contributions rule · 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.
3 quotes
Verify with a real build before proposing changes. A change that has only been reasoned about is not finished.
AGENTS.md – darktable If you touch code behind an `#ifdef`, build with that feature both on and off.
AGENTS.md – darktable **Run them if you touch the pixelpipe or any `src/iop/` module.**
AGENTS.md – darktable Other code contributions rule · 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.
7 quotes
The most common failure is confident output that was never executed.
AGENTS.md – darktable Read the code you are changing before changing it. Do not infer an API from its name
AGENTS.md – darktable When you state a fact about the codebase, cite the file and line you read it from
AGENTS.md – darktable Run the app, or at least the code path, when the change is user-visible. `darktable-cli` runs headless
AGENTS.md – darktable Say plainly what you did not verify. "This builds but I have not run it" is useful; silence is not
AGENTS.md – darktable Do not invent file paths, function names, config keys or CMake options. If you are unsure whether something exists, check
AGENTS.md – darktable Do not claim something works because it should
AGENTS.md – darktable Other code contributions rule · Discouraged
AI agents should avoid long em-dashed asides in code comments because they read as machine-written.
Quote
Long em-dashed asides read as machine-written and make an agent's comments stand out from the code around them.
AGENTS.md – darktable Other code contributions rule · Not allowed
AI agents must not narrate their process or leave TODO notes about their own work in code comments.
Quote
Do not narrate your process, leave TODO notes about your own work, or describe what the code "will" do
AGENTS.md – darktable
Not covered by the policy (4)
Autocomplete, Translating the software, Images and media, Checking own work.
Issues & bug reports
The policy does not cover this area.
AI-written text
Commit messages · Allowed
A commit message may be drafted only if one was asked for; the human commits.
Quote
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.
AGENTS.md – darktable
Not covered by the policy (10)
Pull request descriptions, Comments, Answering reviewers, Reviewing others' work, Forum and list posts, Translating own text, Proofreading, Quoting AI output, Summarizing discussions, Bots posting.
General
AI agents must read and follow `AGENTS.local.md` if present, but local instructions do not change what a pull request may contain.
“If `AGENTS.local.md` exists in the repo root, read it too and follow it alongside this file.” (AGENTS.md – darktable)
“It can change how you work -- the build and run commands above, for instance. It does not change what a PR may contain: the conventions in this file still govern that.” (AGENTS.md – darktable)
Sources
- AGENTS.md – darktablegithub.com/darktable-org/darktable/blob/master/AGENTS.mdSnapshot 9 Nov 2026