Enhancing AI Code Governance with Prethink

Moderne Unveils Prethink to Boost AI Code Governance

Moderne has launched Prethink, a new feature designed to provide AI agents with precomputed, structured knowledge about an organisation’s software estate before they generate code changes or recommendations.

Addressing Gaps in AI Code Applications

Prethink specifically targets gaps that arise when applying AI tools to large, mature repositories. These environments often consist of:

  • Long-running services
  • Dense dependency graphs
  • Internal frameworks and conventions
  • Complex build and deployment configurations

Many AI coding systems typically ingest code as files and text, leading models to infer architectural intent and operating constraints. This limitation can result in measurable costs. A study by the Model Evaluation and Threat Research (METR) group found that experienced developers were 19% slower using AI tools, primarily due to time spent reviewing and reworking outputs lacking architectural awareness. Prethink aims to reduce this review burden by surfacing system structure and constraints at the outset.

Structured Context for AI Agents

Prethink provides AI agents with a structured knowledge layer derived from code and architecture. Instead of reconstructing context from raw files during a session, agents begin with an explicit map of:

  • Dependencies
  • Service boundaries
  • Configurations
  • Other constraints

This innovation shifts token use from comprehension to analysis and implementation. According to Moderne, a shared knowledge layer can also reduce hallucinations and inconsistent results, enabling agents to reason against known relationships rather than infer from incomplete inputs.

Importance of Governance in Code Changes

In large organisations, architectural governance is as critical as syntactically correct code. Changes that compile can still violate design intent, create operational risks, or conflict with internal standards. Such errors can:

  • Slow delivery cycles
  • Increase review requirements
  • Raise compute consumption due to repeated model revisions

Prethink leverages Moderne’s Lossless Semantic Tree code model, known for its compiler accuracy. This model captures types, dependencies, and metadata while exposing crucial information such as:

  • Service boundaries
  • Endpoints
  • Dependencies
  • Architectural relationships

The knowledge is stored alongside the code, available for both human and AI use, allowing teams to determine what facts and constraints are generated and shared, especially relevant for organisations with strict policies or regulated environments.

Platform Positioning and Future Directions

Prethink is part of Moderne’s broader platform for managing change across extensive, multi-repository codebases. The platform has focused on deterministic automation for codebase evolution, including structured refactoring and policy-driven change at scale. Prethink extends this approach into AI agent workflows, providing models with the same foundational representation used throughout the platform.

For engineering leaders, the challenge often lies not in generating code but in safely coordinating changes across multiple teams and repositories. In environments with thousands of repositories, even small misunderstandings can lead to significant failures. A change might impact shared libraries, service contracts, or internal platform components, or conflict with conventions not immediately apparent from individual files.

Moderne asserts that Prethink is built for these complexities, framing the AI agent as a participant in a governed delivery system rather than a standalone assistant making suggestions without full context.

“Moderne is evolving into an agent tools company, and it’s our mission to be your AI agent’s best coding partner,” stated the CEO and co-founder of Moderne.

Prethink is now available on the Moderne Platform.

More Insights

Revolutionizing Drone Regulations: The EU AI Act Explained

The EU AI Act represents a significant regulatory framework that aims to address the challenges posed by artificial intelligence technologies in various sectors, including the burgeoning field of...

Revolutionizing Drone Regulations: The EU AI Act Explained

The EU AI Act represents a significant regulatory framework that aims to address the challenges posed by artificial intelligence technologies in various sectors, including the burgeoning field of...

Embracing Responsible AI to Mitigate Legal Risks

Businesses must prioritize responsible AI as a frontline defense against legal, financial, and reputational risks, particularly in understanding data lineage. Ignoring these responsibilities could...

AI Governance: Addressing the Shadow IT Challenge

AI tools are rapidly transforming workplace operations, but much of their adoption is happening without proper oversight, leading to the rise of shadow AI as a security concern. Organizations need to...

EU Delays AI Act Implementation to 2027 Amid Industry Pressure

The EU plans to delay the enforcement of high-risk duties in the AI Act until late 2027, allowing companies more time to comply with the regulations. However, this move has drawn criticism from rights...

White House Challenges GAIN AI Act Amid Nvidia Export Controversy

The White House is pushing back against the bipartisan GAIN AI Act, which aims to prioritize U.S. companies in acquiring advanced AI chips. This resistance reflects a strategic decision to maintain...

Experts Warn of EU AI Act’s Impact on Medtech Innovation

Experts at the 2025 European Digital Technology and Software conference expressed concerns that the EU AI Act could hinder the launch of new medtech products in the European market. They emphasized...

Ethical AI: Transforming Compliance into Innovation

Enterprises are racing to innovate with artificial intelligence, often without the proper compliance measures in place. By embedding privacy and ethics into the development lifecycle, organizations...

AI Hiring Compliance Risks Uncovered

Artificial intelligence is reshaping recruitment, with the percentage of HR leaders using generative AI increasing from 19% to 61% between 2023 and 2025. However, this efficiency comes with legal...