DECX - Decompiler + X

A JADX-based Decompiler + X - Designed for AI-assisted code analysis
Overview
DECX (Decompiler + X) is a smart code analysis platform built on the JADX decompiler, designed specifically for AI-assisted code analysis. The platform provides powerful Java code analysis capabilities to AI assistants through an HTTP API, MCP (Model Context Protocol), a standalone CLI, and workflow skills.
Installation
Prerequisites
- Java: JDK 17+
- Node.js: 22.5+ for the CLI
- JADX: v1.5.2+ with plugin support if you use the GUI plugin
CLI And AI Skills
For AI-assisted CLI work, install the CLI and server JAR, then download the DECX skills for your agent:
npm install -g @jygzyc/decx-cli
decx self install
decx self skills install --client opencode --client codex
The CLI checks for updates in the background on startup: the result is cached under DECX_HOME for 24 hours and the check never blocks or breaks the command you ran. When a newer release exists, a one-line hint on stderr points you to decx self update. Set DECX_NO_UPDATE_CHECK=1 to disable the check.
Windows spawnSync npm.cmd EINVAL during self update
CLI versions older than v4.0.1 started npm.cmd directly on Windows, which can return EINVAL with some Node.js versions. An affected CLI cannot bootstrap this fix through self update; update it once from PowerShell or CMD instead:
npm.cmd install -g @jygzyc/decx-cli@latest
Reopen the terminal and run decx --version to confirm v4.0.1 or newer before using decx self update again. If an older version is still selected, run where.exe decx to check for multiple DECX CLI installations on PATH.
Skills are downloaded to ~/.decx/skills (or $DECX_HOME/skills) and linked into the selected client directories:
| Agent | Link target |
|---|
| Claude Code | ~/.claude/skills |
| Opencode | ~/.agents/skills |
| Codex | ~/.codex/skills |
| Common agent setup | ~/.agents/skills |
The skills/ directory contains:
| Skill | Use |
|---|
decx-cli | DECX CLI usage, general code navigation, source lookup, xrefs, manifest/resource inspection, and workflow routing |
decx-vulnhunt | Android vulnerability hunting (App + Framework tracks): exported components, WebView/Provider/Service/Receiver, Binder/system services, AIDL |
decx-poc | Build a focused Android PoC app and optional helper server from one finalized finding writeup |
decx-report | Generate HTML/Markdown reports from finalized finding writeups |
JADX Plugin
Install the plugin from the JADX GUI plugin manager, or install a plugin JAR manually:
jadx plugins --install-jar <path-to-jadx_decx_plugin.jar>
After installation, open an APK/JAR in JADX and enable DECX. The plugin exposes the DECX HTTP API and MCP tools for the currently opened JADX project.
Usage
CLI + Skills
For agent-driven analysis, use the CLI to create a session and let the installed skills drive the detailed workflow:
decx process open target.apk --name target
decx code classes --limit 50
decx code search-global "WebView" --limit 20
decx android exported-components
decx android deep-links
decx process close target
decx process close --port 25419
Typical skill sequence:
decx-cli for exploration, evidence gathering, and routing
decx-vulnhunt for focused vulnerability hunting (App or Framework track)
decx-report for generating reports from finalized finding writeups
decx-poc for turning one finalized finding writeup into a buildable PoC
Vulnerability hunting keeps notes and finalized finding writeups in the working directory. Downstream report and PoC skills consume those finding writeups.
Useful command groups: