Skip to content

Commit bfb4676

Browse files
committed
ai: add ast-grep
1 parent eb77a08 commit bfb4676

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/copilot-setup-steps.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ jobs:
3131
- name: Setup Node.js and pnpm
3232
uses: ./.github/actions/setup-node-pnpm
3333

34+
- run: npm i @ast-grep/cli -g
35+
3436
- name: Run lint
3537
run: pnpm lint
3638

AGENTS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ A modern frontend dashboard for displaying different metrics using bar charts. B
6464
- **Note**: Currently no tests are configured, command runs but executes nothing
6565
- Takes under 1 second
6666

67+
- You run in an environment where `ast-grep` is available; whenever a search requires syntax-aware or structural matching, default to `ast-grep --lang rust -p '<pattern>'` (or set `--lang` appropriately) and avoid falling back to text-only tools like `rg` or `grep` unless I explicitly request a plain-text search.
68+
6769
### Repository Structure
6870

6971
```

0 commit comments

Comments
 (0)