Skip to main content

Module layout

Module layout 

Source
Expand description

Product-scoped persistent storage layout.

StorageLayout computes paths for all Synwire subsystems using a consistent hierarchy rooted at the platform data and cache directories.

§Path Layout

$XDG_DATA_HOME/<product>/       (Linux/XDG)
~/Library/Application Support/<product>/   (macOS)
%APPDATA%/<product>/            (Windows)

├── sessions/<session_id>.db        — checkpoint databases
├── experience/<worktree_key>.db    — per-worktree experience pool
├── skills/                         — global agent skills
├── logs/                           — rotating log files
├── daemon.pid                      — daemon PID file
├── daemon.sock                     — daemon UDS socket
└── global/
    ├── registry.json
    ├── experience.db
    ├── dependencies.db
    └── config.json

$XDG_CACHE_HOME/<product>/
├── indices/<worktree_key>/         — vector + BM25 indices
├── graphs/<worktree_key>/          — code dependency graphs
├── communities/<worktree_key>/     — community detection state
├── lsp/<worktree_key>/            — LSP caches
├── models/                         — embedding model cache
└── repos/<owner>/<repo>/          — cloned repositories

Structs§

StorageConfig
Configuration override for StorageLayout.
StorageLayout
Computes all Synwire storage paths for a given product name.