From 14460f7cf832805b6f7018204ecaab46ba4dfa4c Mon Sep 17 00:00:00 2001 From: ltadeu6 Date: Sat, 9 May 2026 19:08:48 -0300 Subject: [PATCH] Add OpenCode project guidance --- AGENTS.md | 2 +- OPENCODE.md | 9 +++++++++ opencode.json | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 OPENCODE.md diff --git a/AGENTS.md b/AGENTS.md index 688868a..e1d30af 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -279,7 +279,7 @@ Este modulo concentra: - publica `config.el`, `init.el`, `packages.el` - OpenCode: - publica `~/.config/opencode/opencode.json` - - usa `opencode.json` no root do repo para carregar contexto do projeto + - usa `OPENCODE.md` e `opencode.json` no root do repo para carregar contexto do projeto - usa `ollama/qwen2.5-coder:7b` como modelo padrao - Wofi: - publica `config`, `style.css`, `menu`, `menu.css` diff --git a/OPENCODE.md b/OPENCODE.md new file mode 100644 index 0000000..8426c84 --- /dev/null +++ b/OPENCODE.md @@ -0,0 +1,9 @@ +# OpenCode Project Notes + +This repository is the local NixOS and Home Manager configuration for `ltadeu6`. + +- Treat the current working tree as the source of truth. +- Prefer local files and `read`/`glob`/`grep` tools over `webfetch`. +- Start with `AGENTS.md` for repo rules, then inspect `hosts/Nixos/configuration.nix` and `home/ltadeu6.nix`. +- Do not ask for a GitHub URL unless the user explicitly asks about a remote repository. +- This is a local project, not a template. diff --git a/opencode.json b/opencode.json index 7f830a9..e303747 100644 --- a/opencode.json +++ b/opencode.json @@ -2,8 +2,8 @@ "$schema": "https://opencode.ai/config.json", "model": "ollama/qwen2.5-coder:7b", "instructions": [ + "OPENCODE.md", "AGENTS.md", - "README.md", "home/ltadeu6.nix", "hosts/Nixos/configuration.nix" ]