Document the shared AI memory and Cline wiring

This commit is contained in:
2026-11-08 23:05:25 +01:00
parent bc01cd3863
commit 0bd0a4589b
3 changed files with 29 additions and 3 deletions

View File

@@ -6,9 +6,10 @@ Ansible-driven personal infrastructure repo for Fedora and Void desktops, Fedora
- Main orchestration: `ansible/site.yml` - Main orchestration: `ansible/site.yml`
- Inventory and layering inputs: `ansible/inventory/hosts.yml`, `ansible/inventory/group_vars/*.yml`, `ansible/inventory/host_vars/*.yml` - Inventory and layering inputs: `ansible/inventory/hosts.yml`, `ansible/inventory/group_vars/*.yml`, `ansible/inventory/host_vars/*.yml`
- Dotfiles live under `dotfiles/` - Dotfiles live under `dotfiles/`
- AI agent instructions (bootstrap, rules, knowledge) are centralized in `dotfiles/common/.config/ai/` and shared between OpenCode, Codex, and Gemini CLI. - AI agent instructions (bootstrap, dispatcher, knowledge, rules, patterns) are centralized in `dotfiles/common/.config/ai/` and shared between OpenCode, Codex, Gemini CLI, and Cline.
- OpenCode loads its entrypoint configuration from `dotfiles/common/.config/opencode/opencode.json`. - OpenCode loads its entrypoint configuration from `dotfiles/common/.config/opencode/opencode.json`; Codex global instructions deploy from `dotfiles/common/.codex/AGENTS.md`; Cline global instructions deploy from the cross-tool `dotfiles/common/.agents/AGENTS.md` (to `~/.agents/AGENTS.md`).
- Codex config is rendered from `dotfiles/common/.codex/config.toml.j2` so `model_instructions_file` points to the deployed `~/.config/ai/bootstrap.md`. - Codex config is rendered from `dotfiles/common/.codex/config.toml.j2` so `model_instructions_file` points to the deployed `~/.config/ai/bootstrap.md`.
- ChatGPT conversation memory is stored in `dotfiles/common/.config/ai/memory/chatgpt/` and regenerated incrementally by `scripts/chatgpt_export_to_memory.py` from an official ChatGPT data export.
## Topology ## Topology
- Current personal desktop: `ikaros = platform_fedora + role_personal_workstation + graphical_desktop + desktop_gnome` - Current personal desktop: `ikaros = platform_fedora + role_personal_workstation + graphical_desktop + desktop_gnome`

View File

@@ -754,7 +754,7 @@ Allo stato attuale `ansible/site.yml` espone questi tag:
| Tag | Scopo | Ambito principale | | Tag | Scopo | Ambito principale |
| --- | --- | --- | | --- | --- | --- |
| `always` | pre-task sempre eseguiti, inclusi caricamento vault e validazioni preliminari | common | | `always` | pre-task sempre eseguiti, inclusi caricamento vault e validazioni preliminari | common |
| `ai_agents` | installazione agenti AI condivisi | Fedora, WSL | | `ai_agents` | installazione agenti AI condivisi e distribuzione del contesto condiviso (bootstrap, regole, memoria ChatGPT) | Fedora, WSL |
| `atlas` | account, storage, condivisioni e container Atlas | NAS Atlas | | `atlas` | account, storage, condivisioni e container Atlas | NAS Atlas |
| `backend_phase1` | Quadlet rootless Navidrome e Syncthing | NAS Atlas | | `backend_phase1` | Quadlet rootless Navidrome e Syncthing | NAS Atlas |
| `containers` | Quadlet rootful Atlas | NAS Atlas | | `containers` | Quadlet rootful Atlas | NAS Atlas |

View File

@@ -602,6 +602,31 @@ On WSL (`deadalus`), Codex installation and dotfile deployment are disabled thro
host overrides; the managed `@openai/codex` npm package is selected for removal. host overrides; the managed `@openai/codex` npm package is selected for removal.
Existing Codex configuration, credentials, and user data are left untouched. Existing Codex configuration, credentials, and user data are left untouched.
The shared agent context is centralized in `dotfiles/common/.config/ai/` and
deployed to `~/.config/ai/` for every enabled agent: `bootstrap.md` (operating
context), `AGENTS.md` (task-specific file dispatcher), plus `knowledge/`,
`rules/`, and `patterns/`. Each agent is wired to it: OpenCode through the
`instructions` array in `opencode.json`, Codex through `model_instructions_file`
plus the global `~/.codex/AGENTS.md`, Gemini CLI through its settings context
files, Claude Code through the `@` imports in `~/.claude/CLAUDE.md`, and Cline
through the cross-tool `~/.agents/AGENTS.md` pointer (deployed with
`cline_deploy_enabled: true`).
ChatGPT conversation memory lives in
`dotfiles/common/.config/ai/memory/chatgpt/`: one Markdown transcript per
conversation, a generated `INDEX.md`, and topic-distilled knowledge files under
`memory/chatgpt/knowledge/` that agents load through the dispatcher. Regenerate
it incrementally from an official ChatGPT data export with:
```bash
python3 scripts/chatgpt_export_to_memory.py --export-dir ~/Downloads/<export>
```
Binary and personal assets (PDFs, images) are deliberately not imported;
textual ones are copied under `memory/chatgpt/assets/`. Non-technical personal
conversations are excluded from import by a privacy blocklist in the script,
which also prunes any previously imported copy.
The `opencode-mobile` npm package is no longer installed on managed hosts: its The `opencode-mobile` npm package is no longer installed on managed hosts: its
agent entry sets `install_enabled: false` and `uninstall_enabled: true`, so the agent entry sets `install_enabled: false` and `uninstall_enabled: true`, so the
playbook removes the managed package. The plugin declaration and `/mobile` playbook removes the managed package. The plugin declaration and `/mobile`