Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

ast-grep outline is released! It gives you a fast local map of code structure, between grep and a full language server. Syntax aware, no index to maintain, and extensible through declarative extraction rules.

78,064 görüntüleme • 3 ay önce •via X (Twitter)

40 Yorum

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

See the release blog

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

2/ The problem: agents often open whole files just to answer “what’s inside?” That is expensive and noisy when the next step is only choosing the right source range. outline gives the agent enough structure to navigate before doing a full read.

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

3/ Examples: ast-grep outline src/parser.ts ast-grep outline src ast-grep outline --match Parser --view expanded Same primitive, different navigation question: file shape, folder surface, or focused detail.

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

4/ In benchmarks, `ast-grep outline` reduced file reads by roughly: - Django: 55% - OkHttp: 40% - VS Code: 35% The point is not to replace reading code. It is to make the next read smaller, more targeted, and easier to justify.

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

5/ Design choices are intentionally constrained: No index, so less project state to maintain and better worktree support Local facts only, so it doesn't pretend to know defs, types, or call graphs Declarative extraction, so language coverage stays configurable and extensible

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

6/ The sweet spot is between grep and a full language server: grep: fast, textual, local outline: fast, syntax aware, local LSP: richer, typed, global Use the heavy tool when you need semantics. Use outline when you need a map

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

7/7 The tool is incomplete and still has TODO: stable JSON output, broader built-in extraction, custom extractors, etc. Try ast-grep outline and let me know where it helps or where the extraction rules should be improved!

Dmitriy Kovalenko profil fotoğrafı
Dmitriy Kovalenko3 ay önce

Can ast grep analyze the source line of code if it contains definition or not?

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

hmmm, I'm not sure about the question. but probably finding definition needs a LSP or at least better graph algo

Dmitriy Kovalenko profil fotoğrafı
Dmitriy Kovalenko3 ay önce

I mean simply classify that line literally contains a definition e.g function getUser() vs simply getUser()

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

it definitely does classify

Cat Chen, @catchen@mastodon.world profil fotoğrafı
Cat Chen, @[email protected]3 ay önce

A companion skill is necessary.

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

In the upcoming release!

Mohsen Azimi profil fotoğrafı
Mohsen Azimi3 ay önce

This is amazing! I'll integrate this into yek

James profil fotoğrafı
James3 ay önce

Really like the ast grow you build thanks

Cyrus profil fotoğrafı
Cyrus3 ay önce

@ewind_dev Let’s fucking go

Santosh Yadav profil fotoğrafı
Santosh Yadav3 ay önce

Congratulations buddy 👏

ChadSigmaRizzlord profil fotoğrafı
ChadSigmaRizzlord3 ay önce

Does it work similarly to tree sitter ?

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

generated by @suyanhanx

ChadSigmaRizzlord profil fotoğrafı
ChadSigmaRizzlord3 ay önce

@suyanhanx I see, it looks interesting. I would love to compare it to a tree sitter tool or MCP.....

Sean profil fotoğrafı
Sean3 ay önce

Looks a lot like ast-bro (sb), which doesn’t seem super well known but I really like! I wonder how this compares

Aravind Putrevu profil fotoğrafı
Aravind Putrevu3 ay önce

Congratulations, Herrington!

NΞ∆ profil fotoğrafı
NΞ∆3 ay önce

😌

MoonGotArt profil fotoğrafı
MoonGotArt3 ay önce

YO do y'all really pronounces is ass grep internally?

Marko profil fotoğrafı
Marko3 ay önce

This is very cool. Would never see the claude code and codex folks shipping this because it would reduce token counts. What would be helpful here maybe is that you return the exact lines for a sed command so That the model can see how it can immediately pull out all the code for a full set of functions

Pavitra Golchha profil fotoğrafı
Pavitra Golchha3 ay önce

in your experience, is it better to use as a MCP or CLI+skill?

jswh profil fotoğrafı
jswh3 ay önce

ast-grep有没有官方得agent skill呀?

Chawan Prash profil fotoğrafı
Chawan Prash3 ay önce

Does it not support csharp because it says nothing found

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

Not yet!

Chawan Prash profil fotoğrafı
Chawan Prash3 ay önce

How will your implementation be better than

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

i won't do any callgraph/dep analysis since it requires all language specific coding and semantic analysis. i don't think that's the correct direction. Feeding AI possibly wrong data is one thing, teaching AI to learn these tools is another.

Chawan Prash profil fotoğrafı
Chawan Prash3 ay önce

Actually I was asking about the outline tool only.

Isaac AR ⠊ profil fotoğrafı
Isaac AR ⠊3 ay önce

Does it use ripgrep under the hood?

Herrington Darkholme profil fotoğrafı
Herrington Darkholme3 ay önce

It does use ripgrep's infra like ignore/regex!

跑步进场 profil fotoğrafı
跑步进场3 ay önce

Nice work.

Karthik Sundar profil fotoğrafı
Karthik Sundar3 ay önce

skills are valuable. Especially grill-with-docs and decision mapping, which I is in progress, I really like how ADR's gives you a map of initial decisions and also gives you a clear view of what contradicts your initial decisions as you change based on future decisions

Timur Yessenov profil fotoğrafı
Timur Yessenov3 ay önce

This is the kind of primitive agents need before they read code. I’d use outline as the cheap map, then force the agent to name the exact range it wants to open. Full-file reads should feel like spending budget, not the default.

Bennet profil fotoğrafı
Bennet3 ay önce

Extremely helpful, thanks!

Jose Mejias profil fotoğrafı
Jose Mejias3 ay önce

I'll give it try with thanks!

forever profil fotoğrafı
forever3 ay önce

和lsp有啥区别

Benzer Videolar

We're building self-improving agents to automate tedious, repetitive operational work GREP.AI (YC F26). At IG, a UK online brokerage, Grep agents review compliance alerts, helping over 80% of traders onboard without manual intervention. IG is now a FTSE 100 company. Operational work often means following a specific procedure, gathering information from different sources, checking it against what's needed, and deciding what to do next. The steps are repetitive, but no job is the same, making the work tedious to do by hand and hard to automate with workflows alone. Meanwhile, using frontier agents to reason through every task is often too expensive to scale. gives you an agent workforce that: -> Takes minutes to create and are domain experts with the right skills and tools from day one. -> Learn from every run, moving repeatable steps into code and workflows and saving frontier intelligence for exceptions and unfamiliar cases. -> Get smarter and cheaper as they scale using our AgentRun harness. -> Runs on our managed agent platform with secure sandboxes, audit logs, evals, cost controls, team sharing, and access controls included. Grep AI agents are available on demand and can run on schedules or in batch. Access them via the console, MCP, API, or SDKs that integrate into your existing workflows. Our customers, including IG, Airwallex, Worldpay, FV Bank, and Citizens Bank, have saved more than 250,000 hours of operational work with Grep Al agents across onboarding, doc verification, compliance, underwriting, operations, HR, GT ops, market research, and business intelligence. If operational bottlenecks are slowing your business down, create an agent workforce with Grep to automate them in minutes. P.S. We're in the Y Combinator Fall 2026 batch!

AJ Asver

71,890 görüntüleme • 6 gün önce