diff --git a/ansible/inventory/group_vars/all.yml b/ansible/inventory/group_vars/all.yml index 8fabfb9..32deae2 100644 --- a/ansible/inventory/group_vars/all.yml +++ b/ansible/inventory/group_vars/all.yml @@ -104,7 +104,7 @@ gemini_cli_uninstall_enabled: false claude_code_install_enabled: false claude_code_uninstall_enabled: true cline_install_enabled: true -cline_deploy_enabled: false +cline_deploy_enabled: true cline_uninstall_enabled: false # npm registry requests can be interrupted transiently. Keep retries bounded @@ -188,6 +188,18 @@ ai_agents_dotfiles: mode: preserve agents: - claude_code + - name: Codex global AGENTS instructions + src: .codex/AGENTS.md + dest: .codex/AGENTS.md + mode: "0644" + agents: + - codex + - name: Cline cross-tool AGENTS instructions + src: .agents/AGENTS.md + dest: .agents/AGENTS.md + mode: "0644" + agents: + - cline ai_agents_templates: - name: Codex config diff --git a/dotfiles/common/.agents/AGENTS.md b/dotfiles/common/.agents/AGENTS.md new file mode 100644 index 0000000..a401bbd --- /dev/null +++ b/dotfiles/common/.agents/AGENTS.md @@ -0,0 +1,6 @@ +# Cline Global Context + +Load and follow the shared coding-agent context stored under `~/.config/ai/`: + +- Operating context: read `~/.config/ai/bootstrap.md` +- Task-specific knowledge, rules, patterns, and ChatGPT memory loading: read `~/.config/ai/AGENTS.md` diff --git a/dotfiles/common/.claude/CLAUDE.md b/dotfiles/common/.claude/CLAUDE.md index 11b3e2b..d4b7fc5 100644 --- a/dotfiles/common/.claude/CLAUDE.md +++ b/dotfiles/common/.claude/CLAUDE.md @@ -3,3 +3,7 @@ Import the shared coding agent bootstrap context: @~/.config/ai/bootstrap.md + +Import the shared task-specific file dispatcher (knowledge, rules, and ChatGPT memory): + +@~/.config/ai/AGENTS.md diff --git a/dotfiles/common/.codex/AGENTS.md b/dotfiles/common/.codex/AGENTS.md new file mode 100644 index 0000000..a6d7761 --- /dev/null +++ b/dotfiles/common/.codex/AGENTS.md @@ -0,0 +1,7 @@ +# Codex Global Context + +Import the shared coding agent bootstrap context: + +@~/.config/ai/bootstrap.md + +Follow the task-specific file loading described in `~/.config/ai/AGENTS.md` (knowledge, rules, and ChatGPT memory). diff --git a/dotfiles/common/.config/ai/AGENTS.md b/dotfiles/common/.config/ai/AGENTS.md index 6cf0cf3..fe1c369 100644 --- a/dotfiles/common/.config/ai/AGENTS.md +++ b/dotfiles/common/.config/ai/AGENTS.md @@ -1,4 +1,4 @@ -# AGENTS.md — Global Context +# AGENTS.md — Global Context (dispatcher) Always follow: - minimal, targeted edits @@ -7,9 +7,12 @@ Always follow: - validate before applying changes Task-specific file loading: -- For infra or Ansible work, read `~/.config/opencode/knowledge/infra.md` and `~/.config/opencode/rules/ansible.md` -- For desktop work, read `~/.config/opencode/knowledge/desktop.md` -- For dotfiles work, read `~/.config/opencode/knowledge/dotfiles.md` and `~/.config/opencode/patterns/dotfiles_layering.md` -- For system programming work, read `~/.config/opencode/knowledge/system_programming.md` +- For general background on the user, the environment, and stable preferences, read `~/.config/ai/memory/chatgpt/knowledge/00-profilo.md` +- For infra or Ansible work, read `~/.config/ai/knowledge/infra.md` and `~/.config/ai/rules/ansible.md` +- For desktop work, read `~/.config/ai/knowledge/desktop.md` +- For dotfiles work, read `~/.config/ai/knowledge/dotfiles.md` and `~/.config/ai/patterns/dotfiles_layering.md` +- For system programming work, read `~/.config/ai/knowledge/system_programming.md` +- For prior ChatGPT discussion context (past decisions, history, preferences, projects), start from `~/.config/ai/memory/chatgpt/INDEX.md`, then read the matching topic file under `~/.config/ai/memory/chatgpt/knowledge/`; search the full transcripts with `rg -i "" ~/.config/ai/memory/chatgpt/transcripts/` Do not preemptively load all task-specific files. Load only the files relevant to the current task. + diff --git a/dotfiles/common/.config/opencode/opencode.json b/dotfiles/common/.config/opencode/opencode.json index d1a7ada..58ea36c 100644 --- a/dotfiles/common/.config/opencode/opencode.json +++ b/dotfiles/common/.config/opencode/opencode.json @@ -2,7 +2,8 @@ "$schema": "https://opencode.ai/config.json", "instructions": [ "~/.config/ai/bootstrap.md", - "~/.config/ai/rules/safety.md" + "~/.config/ai/rules/safety.md", + "~/.config/ai/AGENTS.md" ], "plugin": [ "opencode-mobile@latest"