Documentation
Start at the top and go as deep as you need: getting started takes five minutes, the guides cover every task, the reference is generated from the binary itself, and the advanced section is the full design.
1Getting started#
What jdx is, how to install it, your first queries, and wiring it into your AI agent.
- Introductionjdx is an IDE for AI agents, as a command line tool. It answers the questions an IDE answers for a human — what members a class has, what a method does, who…
- InstallationInstall the jdx CLI and MCP server with one command on Linux, macOS or Windows. Needs JDK 21+. Read members, method bodies and usages from any jar.
- QuickstartFive minutes, two classpaths: the JDK (no setup at all) and a library pulled by its Maven coordinate. Every output below is real — it was produced by…
- Use with AI agentsWire jdx into Claude Code, Cursor, Codex, GitHub Copilot, Antigravity, OpenCode, Kilo Code, Cline or any MCP client with one command — or let any…
2Guides#
Task-oriented guides: naming symbols, choosing a classpath, reading Maven and Gradle dependency source, reading and navigating code, finding which jar contains a class, decompiling a jar, reading Javadoc from a jar, reading a Kotlin library API from a jar, a javap alternative, a JD-GUI alternative, smaller answers for agents, Minecraft mod jars, finding which mod in a modpack, which mod adds an item or translation key, mixin targets, Minecraft and mod version diffs, upgrades, output, the Java MCP server, and serving.
- Symbol referencesEvery jdx command takes a symbol reference in Javadoc style. jdx is generous about what it accepts and canonical about what it prints, so any reference it…
- Classpath & workspacesjdx answers from a classpath made of jars, class directories, source directories, Maven coordinates and the JDK. This guide covers every way to supply one —…
- Reading codeLook at a type, list what you can call on it, read one method, or search the whole classpath — each with one command that returns only what was asked. This…
- Agent context for JavaHelp an AI agent read Java dependencies with outline, members, and one method body, to reduce token use without a source dump.
- Find a class in a JARFind which jar contains a class with jdx. Search jar files, a Maven coordinate, or the JDK and print the jar file name on the same line as each class.
- Read and decompile a JARDecompile a jar from the command line: list its classes, read one method, and view source. jdx is a javap alternative that returns only what you asked for.
- Read Javadoc from a jarRead the Javadoc of a class or method in a jar, a Maven dependency, or the JDK from the terminal. jdx doc prints that comment for you and for AI agents.
- Dependency sourceView source code of a Maven dependency from the terminal with jdx. Read Gradle dependency source the same way, and see library source without an IDE.
- Kotlin API from a jarRead a Kotlin library API from a compiled jar: suspend, nullability, properties, default arguments, and class-file signatures from @Metadata.
- javap alternativejdx is a javap alternative for reading class file signatures, one method, callers, and implementors from a jar, a coordinate, or the JDK.
- JD-GUI alternativeJD-GUI alternative: a command line Java decompiler. Decompile a jar without a GUI, search classes across jars, and read one method from the shell with jdx.
- Usages, hierarchy & callsFind who uses a symbol, what implements a type, who calls a method and what it calls, and real call sites to learn from — across every jar on the classpath,…
- API diff for upgradesBefore bumping a dependency, ask what the new version breaks. jdx diff compares the public API of two artifacts — jars, class directories or Maven…
- Minecraft modsInspect a Minecraft mod jar with jdx: list members, read the source, or decompile one method from the terminal. Pass the Loom-mapped jar. jdx does not remap.
- Which mod in a modpackFind which mod in a Minecraft modpack logs a message, ships a duplicate class, mixes into a class, or implements an interface, with jdx from the terminal.
- Items & translation keysFind which mod in a Minecraft modpack adds an item or block by its in-game name, or which mod owns a translation key, with jdx from the terminal.
- Find a mixin targetFind a mixin target method, the Minecraft method descriptor, and a mixin injection point by inspecting a Minecraft class from the terminal.
- Minecraft version diffSee what a Minecraft or mod upgrade changed in the public API: two Loom-mapped jars in one mapping namespace, then the member, its signature, and its body.
- Output, JSON & exit codesjdx output is designed to be read by a language model with a finite context window: compact text by default, a complete JSON envelope on request, and exit…
- Java MCP serverjdx mcp is a Java MCP server and a Kotlin MCP server over stdio: an MCP server for a JVM jar that returns one member, not a file dump.
- MCP, daemon, HTTP & batchThe one-shot CLI starts in about a quarter of a second. When an agent asks dozens of questions, keep jdx warm instead: an MCP server, a background daemon, a…
3Reference#
Every command and flag, generated from the jdx binary itself on every build.
- Command catalogueEvery jdx command with its IDE equivalent, generated from the binary. A CLI and MCP server that reads members, bodies and usages from Java and Kotlin jars.
- Agent cheat sheetThe compact jdx block to paste into CLAUDE.md, AGENTS.md or a system prompt: every command, the ref syntax and the exit codes.
- MCP toolsEvery tool the jdx MCP server exposes to Claude Code, Cursor, Codex and other MCP clients, with parameters — generated from jdx mcp.
Each command's page is linked, with the one-line summary from jdx help, under command pages on the catalogue.
Commands: version upgrade doctor show members outline body source signature doc search resolve ls tree usages annotated hierarchy implementors callers calls samples literals services modules manifest resources diff batch bench serve setup mcp help daemon ws cache kotlin
4Advanced#
The full design specification, the testing strategy, and how this agent-built project is run.
- Design specificationThe full jdx design: symbol grammar, command surface, output design, index, decompilation, Kotlin support, serving, security.
- Testing strategyHow jdx is tested: TDD core, javap-differential, property-based, metamorphic, fault-injection and corpus soak tests, mutation gates.
- Built by agentsjdx is a tool for AI agents that is itself written almost entirely by AI agents, working under rules a human owner sets. This page describes how that works…
- AGENTS.mdThe rules every contributor — human or AI agent — follows in the jdx repository: principles, locked decisions, exit codes, build and test gates.
- ContributingHow to contribute to jdx: conventions, code style, the command checklist, testing and documentation discipline.