From 8312a19b4e1f9849aae9912433824b19e03a8daf Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 11 Feb 2026 20:48:01 +0200 Subject: refactor: consolidate cache and state into .local/hexai directory Move all cache and state files under ~/.local/hexai/ with subdirectories: - ~/.local/hexai/cache/ (was ~/.cache/hexai/) - ~/.local/hexai/state/ (was ~/.local/state/hexai/) - ~/.local/hexai/data/ (was ~/.local/share/hexai/) This centralizes all non-config hexai files under a single .local/hexai directory, making it easier to manage and back up user data. Amp-Thread-ID: https://ampcode.com/threads/T-019c4e03-73db-70a2-ae27-3e1cc31d59c3 Co-authored-by: Amp --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 5a6417b..18f6c6f 100644 --- a/README.md +++ b/README.md @@ -47,15 +47,15 @@ hexai follows the XDG Base Directory Specification: - **Configuration:** `~/.config/hexai/config.toml` (or `$XDG_CONFIG_HOME/hexai/`) - Global settings, provider credentials, and preferences - Project-specific: `.hexaiconfig.toml` at repository root -- **Cache:** `~/.cache/hexai/` (or `$XDG_CACHE_HOME/hexai/`) +- **Cache:** `~/.local/hexai/cache/` (or `$XDG_CACHE_HOME/hexai/`) - `stats.json` - LLM usage tracking (regenerable) - `stats.lock` - File lock for stats access -- **State & Logs:** `~/.local/state/hexai/` (or `$XDG_STATE_HOME/hexai/`) +- **State & Logs:** `~/.local/hexai/state/` (or `$XDG_STATE_HOME/state/`) - `tmux-edit-history.jsonl` - History of text submitted via tmux popup - `hexai-lsp.log` - LSP server debug logs - `hexai-tmux-edit.log` - Tmux edit debug logs - `hexai-mcp-server.log` - MCP server debug logs -- **Data:** `~/.local/share/hexai/` (or `$XDG_DATA_HOME/hexai/`) +- **Data:** `~/.local/hexai/data/` (or `$XDG_DATA_HOME/`) - `prompts/default.jsonl` - Built-in prompts for MCP server - `prompts/user.jsonl` - User-created custom prompts - **Temporary Files:** `/tmp/` (OS temp directory) -- cgit v1.2.3