Add OpenCode project guidance

This commit is contained in:
ltadeu6 2026-05-09 19:08:48 -03:00
parent b5d2c2ad8f
commit 14460f7cf8
No known key found for this signature in database
GPG key ID: FB9FDAB6B6F3418D
3 changed files with 11 additions and 2 deletions

View file

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

9
OPENCODE.md Normal file
View file

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

View file

@ -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"
]