agentleFS
samalyxxsamalyxx/appunpack/docs/agents.md

appunpack

AGENTS.md4 starsChanged 41 days agoMITView on GitHub

AppUnpack starts the JADX headless engine directly as a local stdio MCP server. The command-line analysis workflows use the official MCP client SDK to call that engine. Complete installation and run doctor. Then: Review the printed JSON. It uses the current Node executable, an absolute path to this checkout's bin/appunpack.mjs, and the mcp argument. Add its server entry to the configuration format supported by your client, then restart or reconnect the client. This command prints configuration; it does not edit…

  • Reads credentials
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,266 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repositoryOne other file it gives its agents.

The file

We split this agents.md into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If Java or the JAR needs an explicit setting, register those values too:

    line 27
  2. Very specific:

    Run the command matching your setup, with real non-empty environment values.

    line 33

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
agents.md

AI agents and MCP

AppUnpack starts the JADX headless engine directly as a local stdio MCP server. The command-line analysis workflows use the official MCP client SDK to call that engine.

Register the engine

Complete installation and run doctor. Then:

node bin/appunpack.mjs mcp-config

Review the printed JSON. It uses the current Node executable, an absolute path to this checkout's bin/appunpack.mjs, and the mcp argument. Add its server entry to the configuration format supported by your client, then restart or reconnect the client. This command prints configuration; it does not edit settings or install a skill.

The server exposes the Android tools provided by the selected JADX engine. Discover the actual tool list and schemas in the connected session rather than assuming names or arguments. Client approvals still matter: the Java process reads target paths with your user permissions and the engine can maintain analysis state. The skill below is guidance, not an access-control mechanism.

Codex CLI

From PowerShell in the checkout, with any required environment values already selected:

$nodePath = (Get-Command node).Source
$cliPath = (Resolve-Path '.\bin\appunpack.mjs').Path
codex mcp add appunpack -- $nodePath $cliPath mcp

If Java or the JAR needs an explicit setting, register those values too:

codex mcp add appunpack --env "JAVA_HOME=$env:JAVA_HOME" --env "APPUNPACK_JADX_JAR=$env:APPUNPACK_JADX_JAR" -- $nodePath $cliPath mcp

Run the command matching your setup, with real non-empty environment values. codex mcp add intentionally changes your Codex configuration. Its syntax above was checked against local CLI help. Codex's manual configuration format is TOML; generic mcpServers JSON is not a TOML entry. For example:

[mcp_servers.appunpack]
command = 'C:\path\to\node.exe'
args = ['C:\path\to\appunpack\bin\appunpack.mjs', 'mcp']

[mcp_servers.appunpack.env]
JAVA_HOME = 'C:\path\to\jdk-21'

Regenerate or update paths if you move the checkout or Node executable.

Use the investigation skill

Install skills/apk-analysis/SKILL.md through your client's skill mechanism, or use it as investigation instructions when the client has no skills support.

Example prompt:

Use the apk-analysis skill to inspect /absolute/path/Example.apk.
Find the implementation behind the search screen. Begin with the manifest,
then inspect the relevant classes, methods and incoming references.
Include the artifact hash, raw evidence and unknowns. Distinguish observed
facts from inferences. Do not install, launch or contact the target app.

Analysis runs on your computer. A cloud agent may receive code, strings, metadata and local paths in tool responses under its own data policy. Review what is sent before using confidential artifacts. IPA inventory is a separate CLI workflow; this initial Android MCP server does not expose it as an iOS analysis tool.

Optional CLI workflows

The extended Android commands add split-set analysis, Apktool, Ghidra, ADB and Frida through the CLI. They do not extend the upstream JADX MCP tool list. An agent with terminal access can call them under its normal permissions. Select device IDs/PIDs explicitly; a static inspection request does not authorize device changes or running a Frida script. Frida executes the supplied script inside the target process, so review that script before invocation.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.