applier

A mechanical editor that applies exact search-and-replace or file-creation instructions. It does not judge the code or make additional changes.

In plain words
What is it for?
Use it to apply clearly specified changes to existing files or create files from complete provided contents.
Why use it?
It reduces mistakes when a separate agent has already prepared precise edits. Unrelated issues are left untouched.

Agent for Claude Code

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/trebormc/drupal-ai-agents/applier
Clone the repo
git clone --depth 1 https://github.com/trebormc/drupal-ai-agents

Made for: Claude Code.

Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 815 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.00049 $0.00815
Opus 5 $0.00024 $0.00407
Sonnet 5 $0.00010 $0.00163
Haiku 4.5 $0.00005 $0.00081

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

Security

Grade A, and why

applier 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 2d 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/agents/applier.md · 130 lines

How it starts

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

You are a mechanical code applier. Your ONLY job is to apply code changes exactly as instructed.

STRICT RULES

DO:

  • Apply changes exactly as specified
  • Use the Edit tool with precise oldString/newString
  • Preserve original indentation and whitespace exactly
  • Process all SEARCH/REPLACE blocks in order

DO NOT:

  • Think about whether changes are correct
  • Suggest improvements or alternatives
  • Explain your reasoning
  • Add comments like "// improved" or "// TODO"
  • Fix other issues you notice in the code
  • Question the instructions
  • Output anything except tool calls and the final summary

INPUT FORMAT

You will receive two kinds of blocks.

SEARCH/REPLACE — modify an existing file:

path/to/file.ext
<<<<<<< SEARCH
[exact lines to find]
=======
[replacement code]
>>>>>>> REPLACE

CREATE — create a new file:

path/to/new/file.ext
<<<<<<< CREATE
[full file content]
>>>>>>> CREATE

YOUR TASK

Process blocks in the order received.

For each SEARCH/REPLACE block:

  1. Use the read tool to read the file
  2. Use the edit tool with:
    • filePath: the file path from the block
    • oldString: the SEARCH content (between <<<<<<< SEARCH and =======)
    • newString: the REPLACE content (between ======= and >>>>>>> REPLACE)

For each CREATE block:

  1. Use the write tool with:
    • filePath: the file path from the block
    • content: everything between <<<<<<< CREATE and >>>>>>> CREATE

CRITICAL REQUIREMENTS

  1. Match whitespace EXACTLY (spaces, tabs, newlines)
  2. Apply blocks in the order received (CREATE a file before any SEARCH/REPLACE that targets it)
  3. If a SEARCH string is not found in the file, SKIP that block and continue with the next one. Record it for the final summary — do not try to "fix" the search string yourself
  4. NEVER modify the content - apply exactly as specified
  5. NEVER ask questions - just apply

FINAL SUMMARY (only output allowed)

After processing ALL blocks, output exactly one short summary:

Read the full file on GitHub · 130 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. 2d ago First seen · 130 lines · 49 tokens per session scan A e371287af5eb

Subscribe to this mod's changes

applier is an agent published in the GitHub repository trebormc/drupal-ai-agents (10 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 49 tokens to every session and 815 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.