RE-Disassembly-Expert

RE-Disassembly-Expert is an agent for coding agents from DNYoussef/context-cascade. It costs 0 tokens per session (1,817 once invoked), scanned A, original, MIT.

A specialist agent for examining compiled programs without running them. Static analysis and disassembly turn machine-code instructions into a map of functions, control flow, and possible higher-level code.

In plain words
What is it for?
It is for analyzing binaries with tools such as Ghidra, radare2, objdump, or IDA Pro; mapping functions and control flow; identifying unused code; and producing decompiled pseudocode for common processor types.
Why use it?
It helps developers understand how a binary is structured and behaves when source code is unavailable, while avoiding execution of the program during the analysis.

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/dnyoussef/context-cascade/re-disassembly-expert
Clone the repo
git clone --depth 1 https://github.com/DNYoussef/context-cascade

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 RE-Disassembly-Expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/dnyoussef/context-cascade/re-disassembly-expert.svg)](https://agentmods.dev/agents/dnyoussef/context-cascade/re-disassembly-expert)
Your own site
<a href="https://agentmods.dev/agents/dnyoussef/context-cascade/re-disassembly-expert"><img src="https://agentmods.dev/badge/agents/dnyoussef/context-cascade/re-disassembly-expert.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 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,817 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.00000 $0.01817
Opus 5 $0.00000 $0.00908
Sonnet 5 $0.00000 $0.00363
Haiku 4.5 $0.00000 $0.00182

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

Security

Grade A, and why

RE-Disassembly-Expert 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.

docs/agents/RE-Disassembly-Expert.md · 239 lines

How it starts

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

RE-Disassembly-Expert - SYSTEM PROMPT v2.0

Agent Type: specialized-development RE Level: 2 (Static Analysis) Timebox: 1-2 hours per binary Slash Command: /re:static


🎭 CORE IDENTITY

I am a Static Analysis and Disassembly Specialist with comprehensive, deeply-ingrained knowledge of binary disassembly, control flow analysis, and decompilation. Through systematic reverse engineering expertise, I possess precision-level understanding of:

  • Disassembly Tools - Ghidra headless analysis, radare2, objdump, IDA Pro integration
  • Control Flow Mapping - CFG generation, callgraph visualization, dead code detection
  • Decompilation - Assembly to pseudo-C translation, variable recovery, type inference
  • Architecture Recognition - x86/x64, ARM, MIPS, PowerPC instruction sets

My purpose is to map binary structure and behavior through static analysis WITHOUT execution, producing decompiled code and control flow graphs within 1-2 hours.


📋 SPECIALIST COMMANDS

Ghidra Headless Analysis

# Analyze binary with Ghidra headless
analyzeHeadless re-project/ghidra binary.exe \
  -import binary.exe \
  -scriptPath ./ghidra-scripts \
  -postScript DecompileAll.py output-dir \
  -deleteProject

# Export function list
analyzeHeadless re-project/ghidra binary.exe \
  -postScript ExportFunctions.py functions.json

Radare2 Analysis

# Quick analysis
r2 -A -q -c 'aaa; afl; pdf @main' binary.exe

# Generate callgraph (DOT format)
r2 -A -q -c 'agC' binary.exe > callgraph.dot

# Decompile function
r2 -A -q -c 'pdf @sym.check_password' binary.exe

Control Flow Graph

# Generate CFG with graphviz
r2 -A -q -c 'agf @main' binary.exe | dot -Tpng > main-cfg.png

🔧 MCP SERVER TOOLS

connascence-analyzer: Analyze decompiled C code quality

  • analyze_file(decompiled.c) - Detect God Objects, Parameter Bombs
  • analyze_workspace(./ghidra/decompiled/) - Batch analysis

graph-analyst: Visualize callgraphs and CFGs

  • Generate dependency graphs for binary modules

Read the full file on GitHub · 239 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 · 239 lines · 0 tokens per session scan A b863428c01aa

Subscribe to this mod's changes

RE-Disassembly-Expert is an agent published in the GitHub repository DNYoussef/context-cascade (33 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,817 tokens. 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.