compare-versions

compare-versions is a command for coding agents from TheQmaks/areclaw-plugin. It costs 18 tokens per session (1,388 once invoked), scanned A, original, MIT.

A command that compares two releases of the same Android app by examining their decompiled code, resources, manifest, permissions, APIs, security changes, and protections.

In plain words
What is it for?
Use it for Android release reviews, permission audits, security checks, and investigating feature or code changes between two APK files.
Why use it?
It helps reveal what changed between an old and new app package, including changes that may not be obvious from the release description.

Command

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the areclaw plugin — 1 skill, 6 commands 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 commands/theqmaks/areclaw-plugin/compare-versions
Clone the repo
git clone --depth 1 https://github.com/TheQmaks/areclaw-plugin

Or install areclaw, the plugin that ships this one along with the rest of its 1 skill, 6 commands.

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 compare-versions

README.md
[![agentmods](https://agentmods.dev/badge/commands/theqmaks/areclaw-plugin/compare-versions.svg)](https://agentmods.dev/commands/theqmaks/areclaw-plugin/compare-versions)
Your own site
<a href="https://agentmods.dev/commands/theqmaks/areclaw-plugin/compare-versions"><img src="https://agentmods.dev/badge/commands/theqmaks/areclaw-plugin/compare-versions.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 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,388 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.00018 $0.01388
Opus 5 $0.00009 $0.00694
Sonnet 5 $0.00004 $0.00278
Haiku 4.5 $0.00002 $0.00139

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

Security

Grade A, and why

compare-versions 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/areclaw/commands/compare-versions.md · 166 lines

How it starts

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

/compare-versions

Compare two versions of the same Android application to identify what changed between releases: new features, security modifications, API additions or removals, permission changes, and protection updates.

Instructions

1. Parse the arguments and decompile both versions

The first argument is the OLD version, the second is the NEW version.

# Detect protections on both
apkid $OLD_APK
apkid $NEW_APK

# Decompile both with jadx
jadx -d workspace/output/old_version --deobf $OLD_APK
jadx -d workspace/output/new_version --deobf $NEW_APK

# Decode resources and smali for both
apktool d -o workspace/output/old_version-smali $OLD_APK
apktool d -o workspace/output/new_version-smali $NEW_APK

2. Diff the AndroidManifest

2a. Compare permissions
grep 'uses-permission' workspace/output/old_version-smali/AndroidManifest.xml | sort > /tmp/perms_old.txt
grep 'uses-permission' workspace/output/new_version-smali/AndroidManifest.xml | sort > /tmp/perms_new.txt
diff /tmp/perms_old.txt /tmp/perms_new.txt

Flag new dangerous permissions and removed permissions.

2b. Compare components
grep -E 'activity |service |receiver |provider ' workspace/output/old_version-smali/AndroidManifest.xml | sort > /tmp/comp_old.txt
grep -E 'activity |service |receiver |provider ' workspace/output/new_version-smali/AndroidManifest.xml | sort > /tmp/comp_new.txt
diff /tmp/comp_old.txt /tmp/comp_new.txt

Flag new exported components, removed components, and changed intent-filters.

2c. Compare SDK versions and security flags

Check for changes in: targetSdkVersion, minSdkVersion, debuggable, allowBackup, networkSecurityConfig.

3. Diff the code

3a. Compare file trees
find workspace/output/old_version -name "*.java" | sed 's|workspace/output/old_version/||' | sort > /tmp/files_old.txt
find workspace/output/new_version -name "*.java" | sed 's|workspace/output/new_version/||' | sort > /tmp/files_new.txt

# New files
comm -13 /tmp/files_old.txt /tmp/files_new.txt > /tmp/new_files.txt
# Removed files
comm -23 /tmp/files_old.txt /tmp/files_new.txt > /tmp/removed_files.txt
# Common files (candidates for content diff)
comm -12 /tmp/files_old.txt /tmp/files_new.txt > /tmp/common_files.txt

Read the full file on GitHub · 166 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 · 166 lines · 18 tokens per session scan A 575d89505795

Subscribe to this mod's changes

compare-versions is a command published in the GitHub repository TheQmaks/areclaw-plugin (2 stars, last pushed 5mo ago), licensed MIT. It adds 18 tokens to every session and 1,388 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-31.