aem-desktop: Instructions file for Claude Code

CLAUDE.md

aem-desktop CLAUDE.md is an instructions file for Claude Code from adobe/aem-desktop. It costs 3,981 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for AEM Desktop, an Electron desktop application for Adobe Experience Manager Edge Delivery Services. They describe the project structure, tools, and release rules.

In plain words
What is it for?
Use them when developing, testing, packaging, signing, notarizing, or releasing the AEM Desktop application.
Why use it?
They give an unfamiliar contributor the constraints needed to make compatible changes and maintain testing, packaging, signing, and update workflows.

Instructions file for Claude Code ✓ vendor

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is adobe/aem-desktop's own configuration. It tells Claude Code how to work on aem-desktop 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 aem-desktop configures →

About the project

AEM Desktop is an Electron desktop application for Adobe Experience Manager Edge Delivery Services, with development infrastructure for hot reload, updates, testing, and macOS release builds. It is used by developers building and releasing the desktop client, including signed and notarized macOS packages. Its catalogue entries provide coding-agent rules and instructions for working in this repository.

adobe/aem-desktop · 2 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to adobe/aem-desktop. 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/adobe/aem-desktop/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/adobe/aem-desktop

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 aem-desktop CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/adobe/aem-desktop/claude-md/github.svg)](https://agentmods.dev/instructions/adobe/aem-desktop/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/adobe/aem-desktop/claude-md"><img src="https://agentmods.dev/badge/instructions/adobe/aem-desktop/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 aem-desktop CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/adobe/aem-desktop/claude-md"><img src="https://agentmods.dev/badge/instructions/adobe/aem-desktop/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,981 This file is loaded in full into every session.
When invoked 3,981 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.03981 $0.03981
Opus 5.5 $0.01592 $0.01592
Sonnet 5.5 $0.00796 $0.00796
Haiku 4.5 $0.00398 $0.00398

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

Security

Grade A, and why

aem-desktop 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 1mo 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 · 275 lines

How it starts

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

CLAUDE.md

Navigation hub and working agreement for the AEM Desktop app — a desktop shell for Adobe Experience Manager Edge Delivery Services. This file is the first thing to read before making changes.

AGENTS.md is a symlink to this file.

What this is

An Electron desktop application. Today it is an empty shell (window + version readout); the point of this repository is the development environment around it: auto-update and a signed, notarized release pipeline so feature work can start on a solid foundation.

Deliberate stack choices (kept close to @adobe/aem-cli / helix-cli, not slicc):

  • Pure ESM JavaScript — no TypeScript, no bundler. The renderer is plain ESM over file://; the main process is ESM run directly by Electron.
  • No Vite / webpack. No bundler runtime; reload the renderer with Cmd+R (see below).
  • node --test for unit and integration tests (no Mocha/Vitest).
  • ESLint with @adobe/eslint-config-helix (Apache headers enforced). No Prettier.
  • electron-builder for packaging/signing/notarization, electron-updater for in-app updates, semantic-release to drive versioning and releases.

Module map

Path Purpose
src/main/index.js App entry: lifecycle, BrowserWindow, IPC, menu, updater, UA, dev console
src/main/window-options.js Pure builder of secure BrowserWindow options (unit tested)
src/main/update-policy.js Pure shouldAutoUpdate() decision (unit tested)
src/main/updater.js electron-updater wiring against the GitHub release feed
src/main/logger.js Shared electron-log logger (use instead of console.log)
src/main/dev-config.js Pure dev helpers: CDP port + screenshot filename (unit tested)
src/main/dev-console.js Forwards the renderer console to the dev terminal (dev only)
src/main/cli-install.js Installs the content CLI launcher on PATH (pure builders unit tested)
src/main/source-log.js Pure reducer of api.aem.live audit-log entries → source changes (tested)
src/main/user-agent.js Pure builder of the AEM-Desktop user-agent token (unit tested)
src/main/aem-guard.js Guards the .aem pristine store: read-only originals + README/.gitignore deterrents (tested)
src/preload/index.cjs Sandboxed contextBridge API — the only CommonJS file (see note)
src/renderer/ index.html + renderer.js + styles.css — the UI shell
src/cli/content.js The content CLI entry (sites/download/update/upload); Node-only
src/cli/cli-lib.js Pure CLI arg parser + site selector (unit tested)
scripts/dev.js Dev launcher: runs Electron once with CDP (no auto-reload; Cmd+R instead)
test/ node --test unit + config integration tests
build/ electron-builder resources (entitlements; add icons here)
electron-builder.yml Packaging, signing, notarization, DMG layout, GitHub publish target
.releaserc.cjs semantic-release plugin chain (build → attach artifacts → tag)
.github/workflows/ main.yaml (lint/test/build smoke on mac+win), release.yaml (mac+win release)

Read the full file on GitHub · 275 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. 1mo ago Changed · +21 lines · +264 tokens per session a2597e4566ae
  2. 2mo ago First seen · 254 lines · 3,717 tokens per session scan A bfb267358639

Subscribe to this mod's changes

aem-desktop CLAUDE.md is an instructions file published in the GitHub repository adobe/aem-desktop (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 3,981 tokens to every session, about $0.0159 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

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens