Running Prethink recipes on the Moderne Platform
Prethink recipes generate structured context that gives AI coding agents a clear, accurate understanding of your codebase. Instead of forcing AI agents to infer your architecture from raw code, Prethink provides pre-resolved knowledge about service endpoints, dependencies, test coverage, and more.
In this guide, we will walk you through everything you need to know to get started with them in the Moderne Platform.
For a deeper understanding of what Prethink is and how it works, see our Prethink recipes documentation.
Prerequisites
This doc assumes that you are familiar with finding and running recipes in the Moderne Platform.
Prethink recipes
There are two key Prethink recipes in the Moderne Platform:

Update Prethink context (with AI)
This recipe generates comprehensive context files - including AI-powered code comprehension, test coverage mapping, dependency inventory, and FINOS CALM architecture diagrams.
If you want the richest possible context about your code, use this recipe.
This recipe requires configuring an LLM provider (OpenAI, Gemini, or Poolside) to generate code descriptions and test summaries.
Update Prethink context (no AI)
This recipe generates context without requiring an LLM provider. It will discover architectural patterns, map tests to implementation methods, generate dependency inventory, and create CALM architecture diagrams - without using AI.
Use this for a quick start or when AI comprehension isn't needed.
Example results



Committing the results
Once you're satisfied with the generated context, commit the changes to your repositories.