Skip to content

Commit d376a11

Browse files
BoshenCopilot
authored andcommitted
ai: add ast-grep (#13539)
1 parent f1e42cd commit d376a11

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
with:
3333
cache-key: warm
3434
save-cache: false
35-
tools: just,watchexec-cli,cargo-insta,typos-cli,cargo-shear,dprint
35+
tools: just,cargo-insta,typos-cli,cargo-shear,dprint,ast-grep
3636
components: clippy rust-docs rustfmt
3737

3838
- uses: oxc-project/setup-node@f42e3bda950c7454575e78ee4eaac880a077700c # v1.0.0

AGENTS.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@ Prerequisites: Rust (MSRV: 1.87.0), Node.js, pnpm, just
3939

4040
**Setup Notes:**
4141

42-
- All tools already installed (`cargo-insta`, `typos-cli`, `cargo-shear`, `dprint`)
42+
- All tools already installed (`cargo-insta`, `typos-cli`, `cargo-shear`, `dprint`, `ast-grep`)
4343
- Rust components already installed (`clippy`, `rust-docs`, `rustfmt`)
4444
- Run `just ready` after commits for final checks
45+
- 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.
4546

4647
### Essential Commands
4748

CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ Oxc (The Oxidation Compiler) is a high-performance JavaScript/TypeScript toolcha
1010

1111
- Agent-specific guide: See [AGENTS.md](AGENTS.md)
1212
- Architecture details: See [ARCHITECTURE.md](ARCHITECTURE.md)
13+
14+
## Development
15+
16+
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.

0 commit comments

Comments
 (0)