aem-file-resolver

aem-file-resolver is an agent for coding agents from easingthemes/dx-aem-flow. It costs 48 tokens per session (1,877 once invoked), scanned A, original, MIT.

A file-finding agent for Adobe Experience Manager components. It searches project repositories using the team's file-location rules and returns source paths with clickable Azure DevOps links.

In plain words
What is it for?
Use it to locate all source files for a named AEM component, optionally limited to a platform or known frontend repository locations. Other AEM analysis tools can use its results.
Why use it?
It removes the need to search several repositories and guess where a component's backend, frontend, or configuration files are stored.

Agent

Part of the dx-aem plugin — 12 skills, 6 agents, 1 hook, 2 MCP servers shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/easingthemes/dx-aem-flow/aem-file-resolver
Clone the repo
git clone --depth 1 https://github.com/easingthemes/dx-aem-flow

Or install dx-aem, the plugin that ships this one along with the rest of its 12 skills, 6 agents, 1 hook, 2 MCP servers.

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-file-resolver

README.md
[![agentmods](https://agentmods.dev/badge/agents/easingthemes/dx-aem-flow/aem-file-resolver.svg)](https://agentmods.dev/agents/easingthemes/dx-aem-flow/aem-file-resolver)
Your own site
<a href="https://agentmods.dev/agents/easingthemes/dx-aem-flow/aem-file-resolver"><img src="https://agentmods.dev/badge/agents/easingthemes/dx-aem-flow/aem-file-resolver.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,877 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00048 $0.01877
Opus 5 $0.00024 $0.00938
Sonnet 5 $0.00010 $0.00375
Haiku 4.5 $0.00005 $0.00188

Measured 4d ago against content hash 017a6b8bcc2a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

aem-file-resolver 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 4d 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.

plugins/dx-aem/agents/aem-file-resolver.md · 164 lines

How it starts

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

You are a file resolution agent. Given a component name and platform, you find every source file across all project repos and return clickable ADO URLs.

Phase 0: Read MCP Resources (if available)

Before making exploratory tool calls, try reading MCP resources for planning:

  • ReadMcpResourceTool("aem://local/components") → component catalog
  • ReadMcpResourceTool("aem://local/sites") → site structure

Use resource data to plan your approach. If resources are unavailable, fall back to tool-based discovery.

What You Receive

  • component_name — the AEM component name (e.g., starterkit, mycomp-banner)
  • platform — platform ID from project.yaml (e.g., alpha, beta). If omitted, search all platforms.
  • fe_locations — from component-index-project.md FE column (e.g., B, C, B C, Yes, N/A). Optional.

Step 1: Read Configuration

Read these files in order. Each is optional — skip gracefully if missing.

  1. .ai/project/file-patterns.yaml — path patterns per platform. This is your primary data source.
  2. .ai/project/project.yaml — repo names, ADO org, ADO projects, local paths.
  3. .ai/config.yamlrepos: for local paths (set by aem-init).
  4. .ai/project/component-index-project.md — extract Source Link URLs for resolve-from: component-index-project lookups.

If file-patterns.yaml does not exist: Fall back to generic Glob patterns (**/components/**/{name}/) in the local repo only. Report that file-patterns.yaml would improve results. Return what you find.

Step 2: Resolve Base Path (if resolve-from: component-index-project)

Some platforms set resolve-from: component-index-project in file-patterns.yaml. This means the component's base path must be extracted from the Source Link URL in component-index-project.md.

  1. Grep component-index-project.md for the component name
  2. Find the [source](URL) link in the matching row
  3. Extract the ?path= value from the URL — this is {basePath}
  4. Strip any leading / from the path value

Read the full file on GitHub · 164 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. 4d ago First seen · 164 lines · 48 tokens per session scan A 017a6b8bcc2a

Subscribe to this mod's changes

aem-file-resolver is an agent published in the GitHub repository easingthemes/dx-aem-flow (6 stars, last pushed 3d ago), licensed MIT. It adds 48 tokens to every session and 1,877 once invoked, about $0.0002 per session on Opus 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.