Refactor: centralize AI instructions and opencode config into common dotfiles

This commit is contained in:
Fabio Scotto di Santolo
2026-04-27 19:17:14 +02:00
parent ab294f4cb7
commit 003679f499
25 changed files with 10 additions and 9 deletions

View File

@@ -6,7 +6,8 @@ Ansible-driven personal infrastructure repo for Void desktops, Linux workstation
- Main orchestration: `ansible/site.yml`
- Inventory and layering inputs: `ansible/inventory/hosts.yml`, `ansible/inventory/group_vars/*.yml`, `ansible/inventory/host_vars/*.yml`
- Dotfiles live under `dotfiles/`
- OpenCode loads global instructions from `dotfiles/desktop/.config/opencode/opencode.json`
- AI agent instructions (bootstrap, rules, knowledge) are centralized in `dotfiles/common/.config/ai/` and shared between Opencode, Codex, and Gemini CLI.
- OpenCode loads its entrypoint configuration from `dotfiles/common/.config/opencode/opencode.json`.
## Topology
- Void desktops: `ikaros`, `nymph`

View File

@@ -33,7 +33,7 @@
owner: "{{ effective_username }}"
group: "{{ effective_user_group }}"
mode: "{{ item.mode }}"
loop: "{{ common_dotfiles | default([]) }}"
loop: "{{ (common_dotfiles | default([])) + (ai_agents_dotfiles | default([])) }}"
loop_control:
label: "{{ item.dest }}"

View File

@@ -0,0 +1,7 @@
{
"$schema": "https://opencode.ai/config.json",
"instructions": [
"~/.config/ai/bootstrap.md",
"~/.config/ai/rules/safety.md"
]
}

View File

@@ -1,7 +0,0 @@
{
"$schema": "https://opencode.ai/config.json",
"instructions": [
"~/.config/opencode/bootstrap.md",
"~/.config/opencode/rules/safety.md"
]
}