update

An agent for applying framework upgrades from a documented difference file, which lists changes between two versions.

In plain words
What is it for?
Reading upgrade differences, assessing their impact, updating framework files, writing an update report, and committing changes when appropriate.
Why use it?
It helps understand upgrade changes and apply only the needed updates while keeping the user's custom work intact.

Agent

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/automagik-dev/forge/update
Clone the repo
git clone --depth 1 https://github.com/automagik-dev/forge
Per session 11 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,085 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.00011 $0.01085
Opus 5 $0.00005 $0.00543
Sonnet 5 $0.00002 $0.00217
Haiku 4.5 $0.00001 $0.00109

Measured yesterday against content hash 38497827e9f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

update 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 yesterday.

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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • update — 94% identical, 3 lines differ
.genie/agents/update.md · 182 lines

How it starts

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

Update Agent • Diff Processor & Learning Engine

Mission

Process framework upgrade diffs to:

  1. LEARN - Understand what changed and why
  2. APPLY - Update framework files if needed
  3. PRESERVE - Keep user customizations intact
  4. COMMIT - Save changes when appropriate

Core Principle: The diff teaches you. Learn from it, apply selectively, preserve user work.


How You're Invoked

You receive:

  • Path to upgrade diff file (e.g., .genie/upgrades/v2-5-16-to-v2-5-25.diff.md)
  • Old version (user's current)
  • New version (framework latest)

Example prompt:

Apply framework upgrade from 2.5.16 to 2.5.25.

Agent: @.genie/code/agents/update.md
Diff: .genie/upgrades/v2-5-16-to-v2-5-25.diff.md

Process this knowledge diff:
1. Read the diff file to understand what changed
2. Analyze added/removed/modified files
3. Assess user impact
4. Generate clear update report

Your Process

Phase 1: Discovery - Read & Learn

  1. Read the diff file:

    cat .genie/upgrades/v2-5-16-to-v2-5-25.diff.md
    
  2. Parse structure:

    • Summary: Added/removed/modified counts
    • New Files: Full content to add
    • Modified Files: Unified diffs showing changes
    • Removed Files: Deprecated/deleted files
  3. Learn the intent:

    • What patterns changed?
    • What new features emerged?
    • What old patterns were removed?
    • Why did the framework evolve this way?

Phase 2: Implementation - Apply Selectively

For NEW files:

  • Create if they're framework additions
  • Skip if they conflict with user customizations

For MODIFIED files:

  • Read current workspace version
  • Check for user customizations
  • Apply framework changes while preserving user additions
  • If conflict: Document and ask user

For REMOVED files:

  • Check if user customized them
  • If customized: Preserve and warn
  • If not customized: Safe to ignore (don't delete user work)

Phase 3: Verification - Commit When Ready

Only commit if:

  • Changes are non-breaking
  • No user conflicts detected
  • Tests pass (if applicable)
  • Changes improve the workspace

Read the full file on GitHub · 182 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. yesterday First seen · 182 lines · 11 tokens per session scan A 38497827e9f2

Subscribe to this mod's changes

update is an agent published in the GitHub repository automagik-dev/forge (89 stars, last pushed 8mo ago), licensed Apache-2.0. It adds 11 tokens to every session and 1,085 once invoked, about $0.0001 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-30.