Morphe AI
AI-powered Android APK patching workspace. Multi-agent pipeline that automates: APK analysis → decompilation → target hunting → patch writing → build & deploy.
Built with Kiro CLI, but the prompts, skills, and steering context are model-agnostic — adapt them to any AI coding assistant (Cursor, Copilot, Cline, Aider, Claude Code, etc.).
Author: Paresh Maheshwari
Repository: morphe-ai
Claude Code Plugin
This repository is a Claude Code plugin marketplace. It ships the Morphe Patch Creator plugin
under plugins/morphe-patch-creator/, defined by the marketplace manifest at
.claude-plugin/marketplace.json.
Install from GitHub (anyone)
Inside Claude Code, add this repository as a marketplace and install the plugin by name:
/plugin marketplace add Paresh-Maheshwari/morphe-ai
/plugin install morphe-patch-creator@morphe-ai
Equivalent shell commands, with an explicit scope:
claude plugin marketplace add Paresh-Maheshwari/morphe-ai --scope user
claude plugin install morphe-patch-creator@morphe-ai --scope user
Use --scope project to share enablement through a repository, or --scope local for an
uncommitted project-local install. Update or remove later with:
claude plugin update morphe-patch-creator@morphe-ai # restart Claude Code to apply
claude plugin uninstall morphe-patch-creator@morphe-ai # add --keep-data to preserve plugin data
Cloning this repository alone does not register or install the plugin — you add the
marketplace and install by name as above.
Load from a local checkout (development)
claude --plugin-dir ./plugins/morphe-patch-creator
Validate before loading when developing:
claude plugin validate --strict ./plugins/morphe-patch-creator
claude plugin validate --strict .
Start the pipeline
/morphe-patch-creator:create-patch ./path/to/app.apk "describe the authorized change"
The primary skill delegates to focused recon, decompiler, target-hunter, patch-writer, and validator subagents. Device testing and Git/GitHub submission remain explicit-only commands. See plugins/morphe-patch-creator/README.md for configuration, dependencies, install scopes, and safety boundaries.
Not sure how to use it? Just ask. Both Kiro and Claude already carry this repo's skills and
steering context, so you don't need to memorize commands. Say something like "how do I create a
patch?" or "what do you need from me to patch this APK?" and the agent explains the workflow
and walks you through the next step.
Using with Other AI Models
The real value is in .kiro/steering/ and .kiro/prompts/ — portable markdown files you can use with any AI tool:
| Directory | Content |
|---|
steering/core/ | Project overview, workspace layout |
steering/patching/ | Patch writing guides, APIs, extension development |
steering/bytecode/ | Smali cheat sheet, fingerprinting, obfuscation guide |
steering/patterns/ | Billing bypass, ad blocking, protection bypass patterns |
steering/community/ | Patterns learned from 10+ community patch repos |
steering/build/ | Build commands, CLI reference, troubleshooting |
prompts/ | Agent role prompts (recon, decompiler, hunter, writer, deployer) |
skills/ | On-demand knowledge (tool reference, FAQ, examples) |
To use with your AI tool:
- Feed the relevant steering
.md files as context/rules
- Use the prompts as system instructions
- Adapt the agent configs to your tool's format (e.g.,
.cursorrules, .github/copilot-instructions.md)
Prerequisites
- Kiro CLI installed and configured
- JDK 21 recommended (aligns with template CI); JDK 17 is the minimum stated in desktop source
- JRE 21+ required to run the CLI
- Android RE tools:
| Tool | Purpose | Install |
|---|
| jadx | Decompile APK → Java source | sudo apt install jadx |
| baksmali | Disassemble DEX → smali (local analysis only) | sudo apt install libsmali-java |
| apktool | Decode/rebuild APK resources | sudo apt install apktool |
| aapt | Read APK manifest/metadata | sudo apt install aapt |
| ripgrep (rg) | Fast regex search | sudo apt install ripgrep |
| adb | Install APKs on device | sudo apt install adb |
| dex2jar | Convert DEX → JAR | sudo apt install dex2jar |
| apkid | Detect obfuscators/packers | uvx apkid (no install needed) |
| kaggle | Remote decompilation API | pip install kaggle |
Note: baksmali from apt is used only for local DEX analysis and manual smali reading.
Patch builds use the Gradle plugin's own pinned baksmali/smali fork automatically.
Quick install all:
sudo apt install -y openjdk-21-jdk jadx libsmali-java apktool aapt ripgrep adb dex2jar
pip install kaggle