---
title: "Architecture"
description: "Dependency direction and runtime ownership across Cortavyn modules."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cortavyn.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Architecture

Cortavyn's module graph protects its portability: Graph, Chat, and provider modules depend only on the APIs they need; Deep Agent composes Graph and the model API; no core module depends on a provider SDK.

<pre class="mermaid">{`
flowchart LR
  Core[cortavyn-core] --> Graph[cortavyn-graph]
  Model[cortavyn-model-api] --> Chat[cortavyn-chat]
  Graph --> Chat
  Graph --> Deep[cortavyn-deep]
  Model --> Deep
  Chat --> Deep
  Model --> Providers[cortavyn-provider-*]
`}</pre>

The versioned Structurizr C4 model lives in the [source repository](https://github.com/Cortavyn/Cortavyn/tree/main/architecture). The `cortavyn-architecture` module enforces dependency directions with ArchUnit.

Source: https://docs.cortavyn.org/architecture/overview/index.mdx
