Development & Code Intelligence Tool

The Architecture Inference Tool

Derive a repository’s components and the relationships between them from its structure and imports — the high-level architecture an agent needs to reason about the system, recovered automatically and on infrastructure you control.

Explore VDF AI Agents
ComponentsInferred from structure
RelationsCross-component links mapped
RecoveredArchitecture, not guesswork
100%On-prem analysis
The Architecture Problem

The architecture diagram is always out of date

The real architecture lives in the code, but the diagram lives in a slide from two years ago. When the documented design and the actual structure diverge, every decision built on the diagram is suspect.

01

Docs drift from code

Architecture diagrams are stale the moment the code changes.

02

Structure is implicit

The real components and boundaries are buried in the file layout and imports.

03

Onboarding is slow

New engineers reconstruct the architecture from scratch.

04

Agents lack the big picture

Without a component map, an agent reasons file-by-file, not system-wide.

How the Tool Works

Architecture recovered from the code

Components

Infer the building blocks

From structure and imports.

The tool groups the repository into components based on its structure and import patterns, recovering the building blocks of the system as it actually exists rather than as it was once drawn.

  • Component grouping
  • Structure-based inference
  • Import-driven boundaries
  • Per-ref analysis
Map
Components

From real code

ComponentsStructureImportsBoundaries

Relationships

How components connect

The edges, not just the nodes.

It derives the cross-component relationships, so an agent can see how the system’s parts depend on one another — the context needed to reason about change at the architecture level.

Edges
Relations

Cross-component

RelationsDependenciesFlowSystem

Governance

On-premise analysis

Source stays internal.

Inference runs against a snapshot inside your perimeter with audit logging, so architecture recovery never exposes code.

100%
On-Prem

IP-safe, logged

On-premIP-safeAudit logPrivate
Inputs

Parameters

The architecture_inference tool accepts these inputs when an agent calls it. Required inputs are flagged.

Name Type Required Description
owner string Optional GitHub repository owner.
repo string Optional GitHub repository name.
ref string Optional Branch, tag, or commit SHA. Defaults to the default branch.
user_id integer Optional User ID for resolving a stored GitHub token.
Where it pays back

Where architecture inference pays back

Living architecture

Replace the stale slide with an inferred, current view.

Onboarding

Give new engineers the real component map on day one.

Refactor planning

See component boundaries before reshaping them.

Modernization

Understand a legacy system before migrating it.

Doc generation

Feed inferred architecture into the architecture-doc generator.

Agent reasoning

Let an agent reason at the system level, not just per file.

How VDF AI connects it

Assigned to agents, orchestrated as networks

On VDF AI, an industry’s use cases map to agents, and you assign tools like this one to those agents. Compose multiple agents into a governed, on-premise network.

ROI Snapshot

What changes after you assign it

Current
Architecture matches the code
System-wide
Agents see the big picture
Faster
Onboarding and planning
100%
Analyzed on-prem
FAQ

Questions about the Architecture Inference tool

What does the architecture inference tool do?

It derives a repository’s components and the relationships between them from its structure and import patterns, recovering the system’s real architecture automatically. Assigned to an agent, it provides the system-level context needed to reason about change.

How is it different from the dependency analyzer?

The dependency analyzer maps packages and module imports; architecture inference steps up a level to group code into components and map how those components relate.

Will it match our documented design?

It reflects the architecture as it exists in the code, which often reveals where the documented design has drifted from reality.

Is our code exposed?

No. Inference runs on-premise with audit logging; source never leaves your perimeter.

How does it pair with other tools?

It builds on the dependency analyzer and repository map and feeds the architecture-doc generator for living documentation.

Recover your architecture from the code

See architecture inference give an engineering agent a current component map — on-premise.