Wire Cline, Codex, OpenCode, and Claude to the shared AI context

This commit is contained in:
2026-11-08 23:05:25 +01:00
parent 9bc8e9bf72
commit bc01cd3863
6 changed files with 40 additions and 7 deletions

View File

@@ -104,7 +104,7 @@ gemini_cli_uninstall_enabled: false
claude_code_install_enabled: false claude_code_install_enabled: false
claude_code_uninstall_enabled: true claude_code_uninstall_enabled: true
cline_install_enabled: true cline_install_enabled: true
cline_deploy_enabled: false cline_deploy_enabled: true
cline_uninstall_enabled: false cline_uninstall_enabled: false
# npm registry requests can be interrupted transiently. Keep retries bounded # npm registry requests can be interrupted transiently. Keep retries bounded
@@ -188,6 +188,18 @@ ai_agents_dotfiles:
mode: preserve mode: preserve
agents: agents:
- claude_code - 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: ai_agents_templates:
- name: Codex config - name: Codex config

View File

@@ -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`

View File

@@ -3,3 +3,7 @@
Import the shared coding agent bootstrap context: Import the shared coding agent bootstrap context:
@~/.config/ai/bootstrap.md @~/.config/ai/bootstrap.md
Import the shared task-specific file dispatcher (knowledge, rules, and ChatGPT memory):
@~/.config/ai/AGENTS.md

View File

@@ -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).

View File

@@ -1,4 +1,4 @@
# AGENTS.md — Global Context # AGENTS.md — Global Context (dispatcher)
Always follow: Always follow:
- minimal, targeted edits - minimal, targeted edits
@@ -7,9 +7,12 @@ Always follow:
- validate before applying changes - validate before applying changes
Task-specific file loading: Task-specific file loading:
- For infra or Ansible work, read `~/.config/opencode/knowledge/infra.md` and `~/.config/opencode/rules/ansible.md` - For general background on the user, the environment, and stable preferences, read `~/.config/ai/memory/chatgpt/knowledge/00-profilo.md`
- For desktop work, read `~/.config/opencode/knowledge/desktop.md` - For infra or Ansible work, read `~/.config/ai/knowledge/infra.md` and `~/.config/ai/rules/ansible.md`
- For dotfiles work, read `~/.config/opencode/knowledge/dotfiles.md` and `~/.config/opencode/patterns/dotfiles_layering.md` - For desktop work, read `~/.config/ai/knowledge/desktop.md`
- For system programming work, read `~/.config/opencode/knowledge/system_programming.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 "<keyword>" ~/.config/ai/memory/chatgpt/transcripts/`
Do not preemptively load all task-specific files. Load only the files relevant to the current task. Do not preemptively load all task-specific files. Load only the files relevant to the current task.

View File

@@ -2,7 +2,8 @@
"$schema": "https://opencode.ai/config.json", "$schema": "https://opencode.ai/config.json",
"instructions": [ "instructions": [
"~/.config/ai/bootstrap.md", "~/.config/ai/bootstrap.md",
"~/.config/ai/rules/safety.md" "~/.config/ai/rules/safety.md",
"~/.config/ai/AGENTS.md"
], ],
"plugin": [ "plugin": [
"opencode-mobile@latest" "opencode-mobile@latest"