Commit 889f0974e511

Vincent Demeester <vincent@sbr.pm>
2026-02-10 07:36:04
docs: simplified ast-grep section in AGENTS.md
Condensed verbose ast-grep documentation from ~60 lines to 4 lines while keeping essential information. Removed incorrect reference to non-existent 'make lint' target. Details remain in docs/code-analysis/ast-grep-guide.md.
1 parent 84da065
Changed files (1)
AGENTS.md
@@ -20,7 +20,7 @@ This is my homelab git repository. It is a comprehensive NixOS and home-manager
   - Cohesive long phrase or paragraph unless multiple points are needed.
   - Use bullet points only if necessary for clarity.
   - Past tense.
-  - State **what** and **why** only (no “how”).
+  - State **what** and **why** only (no "how").
 
 - **IMPORTANT: Never use `home-manager switch` or `nixos-rebuild` commands directly. Always use `make switch` or the appropriate make targets.**
 
@@ -85,6 +85,14 @@ Examples of what to ask:
 
 **Never deploy automatically** - even if it seems like the logical next step. Remote deployments can have significant impact on running services.
 
+## Code Analysis Tools
+
+### ast-grep
+
+AST-based structural search for code patterns. Fast, accurate, works across Nix/Bash/Go/Python/YAML/JSON.
+
+**Usage:** Run from repo root (`~/src/home`). Use `ast-grep scan` or see `docs/code-analysis/ast-grep-guide.md` for details. Pre-configured rules in `.ast-grep/`.
+
 ## File Management Guidelines
 
 ### Temporary Files