Skip to content

Commit 48b9c94

Browse files
committed
docs: add new journal entry and page for ast-grep tool
- Created a journal entry for ast-grep, highlighting its utility in structural search and code validation. - Added a dedicated page for ast-grep, including links, tags, and examples of its application in coding practices.
1 parent 36d5006 commit 48b9c94

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

journals/2025_10_20.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- #Filed
2+
- [[ast-grep]]

pages/Person___Peter Steinberger___Blog___25___10___Just Talk to It - no-bs Agentic Engineering.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ readwise-link:: https://readwise.io/reader/shared/01k7xyxn4w4vvh6gsh6zhcd2jb
3333
- He says he uses [[Chrome/DevTools/MCP]] to replace [[Playwright/MCP]] "as my go-to MCP for web debugging ... I don't need to do it lots but when I do, it's quite useful to close the loop."
3434
- > I **designed my website** so that I can **create api keys** that **allow my model to query any endpoint via curl**, which is faster and more token-efficient in almost all use cases, so even that MCP isn’t something I need daily.
3535
- *I've not heard about this [[AI/Coding/Technique]] before... I'd love to read a more detailed description*
36+
- [Flo Crivello on X: "How I prompt my agents https://t.co/N4bm5e3VVw" / X](https://x.com/Altimor/status/1975752110164578576) #LOL #Terrible
37+
- he mentions that [[Claude Code]] responds well to "yelling" but [[OpenAI/Codex/CLI]] does not, and this is better for his mental health
3638
- #Refactoring
3739
- [[New/To/Me]]
3840
- [[jscpd]]

pages/ast-grep.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
tags:: [[CLI/Tool]], [[Code/Mod]]
2+
3+
- [ast-grep | structural search/rewrite tool for many languages](https://ast-grep.github.io/)
4+
- #via [[Person/Peter Steinberger]]
5+
- [Peter Steinberger on X: "Adding ast-grep has been a huge win for my codebase. Keeps agents from boundary violations and writing crappy code. https://t.co/xBVzLptl8b Supports pretty much all languages! Some examples: - Add AST-grep rules to flag .insertInto('profiles') outside lib/db/** to prevent" / X](https://x.com/steipete/status/1963411717192651154)
6+
- I don't totally understand Peter's examples, but it sounds generally useful to provide validators to [[LLMs]]
7+
- > Some #Examples
8+
- > Add AST-grep rules to flag `.insertInto('profiles')` outside `lib/db/**` to prevent drift.
9+
- > Codec boundaries (no `new Date` / `toISOString` outside validators)
10+
- > JSONB hygiene (Disallow `JSON.stringify(...)` in `.set`)
11+
- [[My Notes]] I wonder how this compares with
12+
- [[Py/Lib/LibCST]], [[GritQL]]

0 commit comments

Comments
 (0)