Skip to main content

Comprehend code

io.moderne.knowledge.ComprehendCode

Use LLMs to add inferred knowledge to the code.

Recipe source

This recipe is only available to users of Moderne.

This recipe is available under the Moderne Proprietary License.

Usage

This recipe has no required configuration options. Users of Moderne can run it via the Moderne CLI:

You will need to have configured the Moderne CLI on your machine before you can run the following command.

shell
mod run . --recipe ComprehendCode

If the recipe is not available locally, then you can install it using:

mod config recipes jar install org.openrewrite.recipe:rewrite-comprehension:0.6.0

See how this recipe works across multiple open-source repositories

Run this recipe on OSS repos at scale with the Moderne SaaS.

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.

Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.

Data Tables

Class descriptions written by an LLM

io.moderne.knowledge.table.ClassDescriptions

The inferred knowledge about classes in the codebase, as provided by an LLM.

Column NameDescription
Class nameThe fully qualified name of the class
Time to inferThe time taken by the LLM to infer the knowledge, in milliseconds.
DescriptionThe description of the inferred knowledge, as provided by the LLM.
ResponsibilityThe responsibility of the class, as inferred by the LLM.
Pattern in use 1An architectural pattern in use in the class.
Pattern in use 2An architectural pattern in use in the class.
Pattern in use 3An architectural pattern in use in the class.

Contributors

Jonathan Schneider, justine, justine-gehring, Tim te Beek