Config files
Terminal Delight keeps its settings in ~/.config/terminal-delight/, its records in ~/.local/state/terminal-delight/, rendered pages in ~/.cache/terminal-delight/, the decision-brief kit it hands agents in ~/.local/share/terminal-delight/, and its sockets in your runtime directory. The XDG_ variables move each of them.
The files you might edit by hand are theme.toml and skin.toml, which are picked up the moment you save, plus documents.toml, tool-props.toml and local-agent.toml. Everything else is written by the app when you change something in it: session layouts, launch defaults, notification switches, favourites, and which logo goes with which directory.
Your sessions are in sessions/, with the last ten versions of each kept beside them. Deleting that folder clears what Terminal Delight remembers about your windows.
Technical lists every file, what creates it and when, and what reloads while the app runs.
Files
Files that hold your working directories and resume commands are written whole and then swapped in, owner-only (0600) in owner-only folders (0700), so a crash mid-save never leaves half a file.1
~/.config/terminal-delight/#
| File | Holds | Written by, and when | Read |
|---|---|---|---|
theme.toml | Your own theme, custom. TD_THEME points elsewhere. | Created on first launch if missing, then only by you. | live, within a third of a second |
skin.toml | Your own chrome skin. TD_SKIN points elsewhere. | you | live, within a third of a second |
documents.toml | Which engine draws HTML documents, and its options. | you | when the engine starts |
tool-props.toml | Your additions to the table of which logo a tool shows. | you | once, at start |
local-agent.toml | The command line for a custom local agent in LAUNCH AGENT. | you | each time LAUNCH AGENT opens |
launch.toml | What a new agent opens with: harness, model, effort. | pressing a default on the usage card | when a window opens |
notifications.toml | What a finished agent may do to the desktop. See Attention. | the 🔔 panel's switches | live, every two seconds |
dir-logos.toml | Directory to logo image; the nearest parent directory wins. | Created on first launch with / mapped to Terminal Delight's own mark; rewritten by the logo picker. | live, every two seconds |
logos/terminal-delight.png | That mark. Logos you pick stay where they are and are stored by path. | first launch | |
favourites.toml | Starred palettes and colour sets, in shelf order. | Created on first launch with a starter list; rewritten on each star. | when the paint overlay opens |
briefing.toml | Your answer to the offer to brief agents you start by typing. | answering that offer on an agent's bench | |
plugins/<name>/plugin.json | A plugin. | you, or a plugin's installer | each time plugins are looked for |
marks/<id>.svg | Your own logo for a subscription's usage row. The id is letters, digits, - and _, up to 64 characters. | you | when usage records load |
sessions/<key>.toml | A session: tabs, layout, directories, resume commands, notes, the left bar, MCP policy, theme, skin, language. See Sessions. | The window, on each change to the layout and every 30 seconds; with the session host, the host writes it. | when a window opens |
sessions/backups/<key>/state-<time>.toml | The previous version, before every save. The newest ten are kept. | each save | |
sessions/<key>.toml.last-good | A copy kept when a save that would have lost most of the session was refused. | a refused save | |
sessions/<key>.lock, .host.lock, .hostspawn.lock | Which window and which session host hold the session. | a window, or a session host, starting | |
state.toml | The single session file older builds wrote. | older builds; moved into sessions/ on upgrade | |
hotkey-terminal-key.* | The GNOME Ctrl+Alt+T shortcut's undo record. | scripts/install-hotkey.sh | by that script |
agents.toml | When idle agents rest and sleep. Unset fields mean the defaults: rest after 10 minutes, sleep after 120 minutes of rest. | CONFIG › Agents | when that page opens |
ui/*.toml | Your own UI sets. | you | when a window opens, and by terminal-delight ui --list |
new-window.toml | The look a brand-new window starts in: theme, skin and UI set. With no file, new windows open in Clean. | UI CONFIG; going back to Clean deletes it | when a new session is made |
protected | The marker that makes this machine refuse to uninstall. | terminal-delight admin protect | by ADMIN and the removal worker |
On 0.4.0 the first theme.toml is a copy of the built-in hacker theme; on 0.5.0 it is a copy of Clean.1
~/.local/state/terminal-delight/#
| Path | Holds | Written when |
|---|---|---|
surfaces/<session>/<pane>/ | One pane's workbench mailbox: its surfaces (<name>.json, up to 512 files), actions.jsonl (your button presses), outbound.jsonl (what the bench sent the agent), inbound.jsonl (written by the agent hooks), answers/, bench.json (whether the bench is open), and pastes/ for pictures pasted into the composer. | As work arrives; read every second. Sessions untouched for 30 days are deleted. |
surfaces/<session>/briefing.txt, launches.jsonl | The briefing LAUNCH AGENT hands an agent, and one line per launch. | each launch |
conversations/<root>.ws | The bench's record, kept by conversation so it outlives windows. One JSON object per line. | as turns and surfaces arrive |
handovers/<root>/handed-over.md, opened.jsonl | The list of what an agent handed over, and which rows you opened. | when the list changes or a row is opened |
notes/<name>-<hash>.json, notes/pictures/ | Notes on Markdown documents, and pictures pasted onto a document. See Comments. | each note |
brief-backups/<hash>/ | Copies of a decision brief taken before notes are saved into it. The newest eight are kept. | each save of notes |
agents/usage/<id>.json | One usage record per subscription. See Usage and vitals. | when the usage card opens, and every five minutes |
coordination-attention/ | What you acknowledged or are expecting in the Git signal. | on click |
default-terminal.journal | What default-terminal on replaced, so off can put it back. | terminal-delight default-terminal on; deleted by off |
logs/window.log, logs/host-<session>.log | Error output from the window and each session host. Moved to .log.1 when over 4 MiB at start. | as errors happen |
crashes/ | One record per crash. | a crash |
bug-reports/<time>/report.md | A bug report, on this machine only. | step 1 of the 🐞 panel |
agent-ledger/ | Which conversation each agent process is in. This one is always under ~/.local/state, whatever $XDG_STATE_HOME says. | by the recovery hook; the app only reads it |
conversations/artifact-revisions/ | A copy of each local file an agent handed over as an artifact, up to 16 MiB each, owner-only. | each hand-over |
conversations/unbound/, conversations/artifact-archive.html | Records for panes not yet tied to a conversation, and the searchable archive page. | as records arrive; the page when the archive opens |
threshing-floor/<session>/asks.jsonl, prompt-keys.jsonl | Every ask on the Threshing Floor by stage, recording a question's length and hash and never its words; and receipts that stop a prompt being delivered twice. | each ask and each keyed prompt |
rest-<session>.toml | Which agents are asleep, and which panes are pinned awake. | when an agent rests, sleeps or wakes |
wake/<conversation>.sh | The exact line that wakes a sleeping agent, owner-only. | when an agent falls asleep |
receipts/<component>.receipt, backups/ | What each source installer put on disk, with hashes, and copies of shared files it edited. | by the installers in scripts/ |
A notes file written by 0.5.0 uses a newer format, which 0.4.0 opens read-only. 0.5.0 still reads the asks a build before the Threshing Floor wrote under warroom/, and writes nothing there.
An uninstall writes its receipt, journal and copies of edited files to ~/.local/state/terminal-delight-removal/<time>/, beside the state folder and outside everything it removes.
~/.cache/terminal-delight/ and ~/.local/share/#
| Path | Holds |
|---|---|
~/.cache/terminal-delight/pages/ | Rendered HTML documents, up to 256 MiB, oldest removed first. |
~/.cache/terminal-delight/agent-usage/ | The usage collector scripts, unpacked from the binary and run with python3. |
~/.cache/terminal-delight/admin/ | Uninstall plans and the agent handoff, written for review. |
~/.local/share/terminal-delight/skills/decision-brief/ | The kit agents use to write decision briefs. Rewritten, only where it differs, before each agent launch. |
~/.local/share/terminal-delight/keys.html | The key sheet, from scripts/install-keys-hotkey.sh. |
~/.local/share/terminal-delight/demo-logos/ | Pictures for demo windows. Read only, and only in a demo. |
~/.local/share/context-delight/ | Harvested sessions, as .cdx, written by the context-delight plugin. |
$XDG_RUNTIME_DIR#
| Path | Holds |
|---|---|
terminal-delight/ctl-<pid>.sock | Each window's control socket, used by ctl and the MCP relay. |
terminal-delight/session-<key>.sock, .window, .tag | Each session host's socket, the pid of the window attached to it, and the session's TD_TAG. |
terminal-delight/chromium-<pid>-<n>/ | A profile for the headless browser that draws HTML documents. Removed after use. |
terminal-delight/restricted/<id>/ | One per Restricted run, deleted when it ends. |
terminal-delight-*.png, .svg, -ping.mp3 | Built-in pictures and the finish bell, written out when first needed. |
terminal-delight-assets.manifest | A hash for each of those files, so an uninstall removes only what Terminal Delight wrote. |
The runtime directory is emptied when you log out.
Outside its own folders#
- Claude Code's
settings.jsongets the briefing hook, only after you say yes, with a copy of the old file kept beside it assettings.json.td-backup.<seconds>. ~/.config/xdg-terminals.listis written byterminal-delight default-terminal onandoff, and by nothing else.- A decision brief's own HTML file is rewritten in place when you save notes into it, after a copy goes to
brief-backups/. - Sharing a demo of a layout writes a snapshot to
$TMPDIR/td-demo-<pid>-<time>.toml, owner-only. Nothing deletes it. - A picture a program sends through a temporary file is read and then deleted, as the Kitty graphics protocol asks.
- Resting an agent freezes its pane's cgroup and asks the kernel to push its memory out, through that cgroup's own files under
/sys/fs/cgroup.
It reads, and never writes: agent transcripts under ~/.claude/projects/ and ~/.codex/sessions/; Omarchy's themes, its hidden-themes list and its usage records; and on 0.5.0, Claude Code's ~/.claude/sessions/.2
Where XDG variables are ignored#
agent-ledger/ is always under ~/.local/state, and context-delight/ and demo-logos/ are always under ~/.local/share. Most state paths use $XDG_STATE_HOME only when it is an absolute path; a few accept a relative one. With $XDG_RUNTIME_DIR unset, the control sockets and the session sockets fall back to different folders under /tmp.
What would prove this wrong#
A file Terminal Delight creates that this page doesn't list. The ones under your home folder are found by launching a fresh window with XDG_CONFIG_HOME, XDG_STATE_HOME, XDG_CACHE_HOME and XDG_DATA_HOME pointed at empty folders and listing what appears.
Sources
- The folders: instance.rs; atomic, owner-only writes:
write_atomicin session.rs; each settings file's reader beside it: theme.rs, skin.rs, docview/pref.rs, toolprop.rs, launcher.rs, launchpref.rs, notifpref.rs, dirlogo.rs, fav.rs, briefhook.rs, plugins.rs, slot.rs, androtate_state_backupin main.rs. 0.5.0: agentcfg.rs, uiconfig.rs, uninstall/guard.rs. - Records and the rest: surfacefeed.rs, benchstore.rs, handover.rs, docview/md_notes.rs, docview/notes.rs, docview/cache.rs, usage.rs, coordination/attention.rs, defaultterm.rs, diag.rs, briefkit.rs, hostproto.rs, art.rs. 0.5.0: artifact_archive.rs, askrecord.rs, prompt.rs, agentrest_io.rs, panegroup.rs, restricted.rs, uninstall.rs.