Commit 889f0974e511
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