mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Refactor: centralize AI instructions and opencode config into common dotfiles
This commit is contained in:
@@ -6,7 +6,8 @@ Ansible-driven personal infrastructure repo for Void desktops, Linux workstation
|
|||||||
- 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/`
|
||||||
- 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
|
## Topology
|
||||||
- Void desktops: `ikaros`, `nymph`
|
- Void desktops: `ikaros`, `nymph`
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
owner: "{{ effective_username }}"
|
owner: "{{ effective_username }}"
|
||||||
group: "{{ effective_user_group }}"
|
group: "{{ effective_user_group }}"
|
||||||
mode: "{{ item.mode }}"
|
mode: "{{ item.mode }}"
|
||||||
loop: "{{ common_dotfiles | default([]) }}"
|
loop: "{{ (common_dotfiles | default([])) + (ai_agents_dotfiles | default([])) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.dest }}"
|
label: "{{ item.dest }}"
|
||||||
|
|
||||||
|
|||||||
7
dotfiles/common/.config/opencode/opencode.json
Normal file
7
dotfiles/common/.config/opencode/opencode.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://opencode.ai/config.json",
|
||||||
|
"instructions": [
|
||||||
|
"~/.config/ai/bootstrap.md",
|
||||||
|
"~/.config/ai/rules/safety.md"
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "https://opencode.ai/config.json",
|
|
||||||
"instructions": [
|
|
||||||
"~/.config/opencode/bootstrap.md",
|
|
||||||
"~/.config/opencode/rules/safety.md"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user