Java package dependencies

Better Java.
Fewer cycles.

A simple tool for Java developers who want to improve their codebase. Your agent gives you one dependency score and finds where to break the cycles.

Get started
Score
D, from 1 to 10
Focus
Java package dependencies
Workflow
Made for your coding agent
License
Apache-2.0

From score to source

Find the cycle.
Choose the cut.

ply-deps reads Java source and measures how dependencies connect packages. Your agent follows cycles to the classes and imports that hold them together, then proposes a dependency to remove or invert.

Measure before and after a change. A single cut can leave other paths intact; the agent checks whether it actually helped.

D runs from 1 to 10; higher is better, with a target of 9. The scale is experimental and uncalibrated. What matters is the change in D, using the same scope and tool version, supported by the source.

A codebase over time

Ten years.
Three turning points.

ThingsBoard’s history shows what happens when dependencies change: a DAO split, an extracted API, and a major expansion of the codebase.

Follow the curve from 2016 to 2026, and the source changes behind its biggest jumps.

ThingsBoard: ten years of dependencies

Get started

Give your agent
ply-deps.

  1. Install the tool.
    cargo install --git https://github.com/plybuild/ply-deps --locked

    Requires Rust/Cargo and a C compiler.

  2. Add the skill in skills/ply-deps to your agent.

    The README includes Claude Code setup instructions.

  3. Ask your agent to measure package dependencies, investigate cycles, or compare a change.