FrankenTerm

The .ft Directory and Platform Layout

125 words1 min read4 subsectionsFrom the README at ft 0.15.21

On this page4
Workspace Layout (/.ft/)Platform Default LocationsWorkspace vs Global StateDirectory Initialization

ft manages workspace-local state under .ft/ in the workspace root, while global defaults and shared tooling follow OS platform conventions.

Workspace Layout (<workspace>/.ft/)

.ft/
├── config.toml              # workspace-local config (overrides platform default)
├── ft.db                    # SQLite database (default relative db_path)
├── ft.db-wal                # SQLite WAL file
├── ft.db-shm                # SQLite shared-memory index
├── watch.lock               # single-writer watcher file lock
├── ipc.sock                 # local IPC domain socket
├── logs/
│   └── ft-watch.log         # watcher service log
├── crash/                   # crash dumps and reproduction bundles
├── diag/                    # diagnostics bundles
├── recordings/              # session recordings (.war files)
├── mission/
│   ├── active.json          # current mission contract
│   └── tx-active.json       # current tx contract
└── recorder-log/
    ├── events.log           # append-log recorder backend
    └── state.json           # recorder state snapshot

Platform Default Locations

Platform Default Config File Default Data Directory (data_dir)
Linux / XDG ~/.config/ft/ft.toml (or $XDG_CONFIG_HOME/ft/ft.toml) ~/.local/share/ft/ ($XDG_DATA_HOME is not consulted)
macOS ~/Library/Application Support/ft/ft.toml ~/Library/Application Support/ft/
Windows %USERPROFILE%\.config\ft\ft.toml (or %XDG_CONFIG_HOME%\ft\ft.toml) %APPDATA%\ft\ (Roaming)

Workspace vs Global State

  • Workspace state (.ft/): contains workspace-scoped database, session checkpoints, watch locks, active contracts, and logs for that directory tree.
  • Global / System state (data_dir): holds global templates, cross-workspace backups (backups/), and tool caches.

Directory Initialization

Workspace directories (.ft/, logs/, crash/, diag/) are initialized when the workspace layout is ensured by ft runtime dispatch. Absolute storage.db_path or general.data_dir overrides can relocate specific stores outside the workspace root.