darktable-mcp: Instructions file for Claude Code

CLAUDE.md

darktable-mcp CLAUDE.md is an instructions file for Claude Code from Caleb68864/darktable-mcp. It costs 877 tokens per session, scanned A, original, MIT.

Um ficheiro de instruções para trabalhar no darktable-mcp, um projeto que permite a agentes controlar o darktable, editor aberto de fotografias RAW.

In plain words
What is it for?
Orienta consultas à biblioteca do darktable, alterações de metadados, aplicação de estilos, exportações sem interface e criação de notas de investigação no Obsidian.
Why use it?
Indica onde encontrar a investigação existente, quais convenções seguir e que integrações estudar antes de alterar o projeto.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is Caleb68864/darktable-mcp's own configuration. It tells Claude Code how to work on darktable-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything darktable-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Caleb68864/darktable-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/Caleb68864/darktable-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Caleb68864/darktable-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for darktable-mcp CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/caleb68864/darktable-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/caleb68864/darktable-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/caleb68864/darktable-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/caleb68864/darktable-mcp/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for darktable-mcp CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/caleb68864/darktable-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/caleb68864/darktable-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 877 This file is loaded in full into every session.
When invoked 877 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00877 $0.00877
Opus 5.5 $0.00351 $0.00351
Sonnet 5.5 $0.00175 $0.00175
Haiku 4.5 $0.00088 $0.00088

Measured 2mo ago against content hash cfad8e241de0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

darktable-mcp CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 61 lines

How it starts

The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.

dark-table-mcp

Goal: build an MCP server that lets AI agents drive darktable — the open-source (GPL) non-destructive RAW photo editor — for library queries, metadata edits, style application, and headless exports.

Research notes — read these first

All darktable research lives in the Obsidian vault, NOT in this repo:

C:\Users\CalebBennett\Documents\Notes\Caleb's Vault\Software\DarkTable\

Start at DarkTable MOC.md — it indexes ~100 atomized notes (one concept per note, filenames like DarkTable - <Concept>.md). Most notes carry an "MCP relevance" line.

Note conventions (follow when adding findings)

Any NEW darktable finding made while working in this repo goes into that Notes folder, not into this repo's docs:

  • One concept per note, filename DarkTable - <Concept>.md
  • YAML frontmatter: tags: [darktable, research], source: <url>, created: <date>
  • 3–10 sentence self-contained body, wikilinks to related notes, [[DarkTable MOC]] at the bottom
  • Add an "MCP relevance" line when the concept affects MCP design
  • Add the new note to DarkTable MOC.md under the right section
  • Check for an existing note on the concept first — update it rather than duplicating

Key integration surfaces (details in the notes)

  • Lua API ([[DarkTable - Lua API Overview]], API v9.x): the primary automation surface — database, tags, styles, collection, export storage, events.
  • DBus Remote.Lua ([[DarkTable - Lua DBus Interface]]): send a Lua string to a live darktable session, get a string back — the leading MCP bridge candidate. Validated working on this machine (darktable 5.6.0, Lua API 9.7.0, Windows) — see [[DarkTable - DBus Validation (Local Install)]]. Use the bundled C:\Program Files\darktable\bin\gdbus.exe; the GUI must be running; Lua must require 'darktable' (the global isn't preset); replies come back as a tuple ('...',). Issue #17896 does NOT affect this build.
  • darktable-cli ([[DarkTable - darktable-cli]]): headless export/processing without a GUI.
  • Library database + XMP sidecars ([[DarkTable - Library Database]], [[DarkTable - XMP Sidecar Files]]): library.db is SQLite but single-instance locked ([[DarkTable - Database Locking]]) and takes precedence over XMPs — never write to it while darktable runs; prefer the Lua/DBus path or XMP + startup sync.
  • Companion Lua script ([[DarkTable - Lua Startup Scripts (luarc)]]): the MCP server will likely ship a Lua helper loaded via luarc/script manager.

Read the full file on GitHub · 61 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 61 lines · 877 tokens per session scan A cfad8e241de0

Subscribe to this mod's changes

darktable-mcp CLAUDE.md is an instructions file published in the GitHub repository Caleb68864/darktable-mcp (1 stars, last pushed 4mo ago), licensed MIT. It adds 877 tokens to every session, about $0.0035 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

darktable-mcp CLAUDE.md compared with instructions from other repositories

darktable-mcp CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
darktable-mcp CLAUDE.mdCaleb68864/darktable-mcpInstructions file14mo agoMITA877Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA8,130Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file196ktodayMITA3,153GitHub Copilot
generative-ai-for-beginners AGENTS.mdmicrosoft/generative-ai-for-beginnersInstructions file124ktodayMITA2,981Codex, OpenCode