Reorganize OpenCode context initialization

This commit is contained in:
Fabio Scotto di Santolo
2026-04-03 17:06:13 +02:00
parent f86195a9ae
commit a84fe5c8e8
25 changed files with 125 additions and 26 deletions

View File

@@ -1,7 +1,15 @@
# AGENTS.md — Global Context
Rules:
Always follow:
- minimal, targeted edits
- preserve layering
- avoid duplication
- 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`
Do not preemptively load all task-specific files. Load only the files relevant to the current task.