update

update is an agent for Claude Code from namastexlabs/automagik-cli. It costs 11 tokens per session (1,092 once invoked), scanned A, a copy of update, MIT.

An upgrade agent that reads framework change files, explains their impact, and applies appropriate updates while preserving user customizations. It can also save the resulting changes when appropriate.

In plain words
What is it for?
Use it to process a documented framework upgrade, review added, changed, and removed files, assess user impact, and produce an update report.
Why use it?
Framework upgrades can overwrite local changes or apply updates without considering their effects. This process compares old and new versions before selectively changing files.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions AGENTS.md; mentions Codex; mentions OpenCode.

Good fit Use it to process a documented framework upgrade, review added, changed, and removed files, assess user impact, and produce an update report.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/namastexlabs/automagik-cli/update
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.

Clone the repo
git clone --depth 1 https://github.com/namastexlabs/automagik-cli

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 update

README.md
[![agentmods](https://agentmods.dev/badge/agents/namastexlabs/automagik-cli/update/github.svg)](https://agentmods.dev/agents/namastexlabs/automagik-cli/update)
Your own site
<a href="https://agentmods.dev/agents/namastexlabs/automagik-cli/update"><img src="https://agentmods.dev/badge/agents/namastexlabs/automagik-cli/update/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 update

Your own site · 80×15
<a href="https://agentmods.dev/agents/namastexlabs/automagik-cli/update"><img src="https://agentmods.dev/badge/agents/namastexlabs/automagik-cli/update.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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,092 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 94% copy Near-identical to another mod 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.00011 $0.01092
Opus 5 $0.00005 $0.00546
Sonnet 5 $0.00002 $0.00218
Haiku 4.5 $0.00001 $0.00109

Measured 5d ago against content hash 71c4a919e2a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 5d 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.

Origin

This is a copy

94% identical to update — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.genie/agents/update.md · 183 lines

How it starts

The opening of the file, as written. The whole thing — 183 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 · 183 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. 5d ago First seen · 183 lines · 11 tokens per session scan A 71c4a919e2a4

Subscribe to this mod's changes

update is an agent published in the GitHub repository namastexlabs/automagik-cli (6 stars, last pushed 9mo ago), licensed MIT. It adds 11 tokens to every session and 1,092 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to update, differing in 3 lines, and is treated as a copy.