diff --git a/AGENTS.md b/AGENTS.md index 87f445b5b..e875e7c92 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -112,6 +112,7 @@ Deep documentation on specific subsystems is available in `docs/agents/`. Load w - Use `context.Context` for I/O, long-running, or cancelable operations - Organize code into logical packages with clear responsibilities - Prefer composition over inheritance, minimize external dependencies +- Navigate Go symbols with go-to-definition and find-references rather than text search; reserve text search for comments and string literals ### File Patterns @@ -265,6 +266,7 @@ Deep documentation on specific subsystems is available in `docs/agents/`. Load w - Define device capabilities and configuration in templates at `templates/definition/[type]/` - Test templates: `evcc --template-type [type] --template [file]` - Update docs after template changes: `make docs` +- When implementing or debugging against a third-party device library (eebus-go/ship/spine-go, ocpp-go, modbus/SunSpec), consult the library's current upstream documentation before coding rather than relying on recalled API details ### Configuration