Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 3 Monaten •via X (Twitter)

40 Kommentare

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

See the release blog

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

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.

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

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.

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

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.

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

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

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

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

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

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!

Profilbild von Dmitriy Kovalenko
Dmitriy Kovalenkovor 3 Monaten

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

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

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

Profilbild von Dmitriy Kovalenko
Dmitriy Kovalenkovor 3 Monaten

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

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

it definitely does classify

Profilbild von Cat Chen, @catchen@mastodon.world
Cat Chen, @[email protected]vor 3 Monaten

A companion skill is necessary.

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

In the upcoming release!

Profilbild von Mohsen Azimi
Mohsen Azimivor 3 Monaten

This is amazing! I'll integrate this into yek

Profilbild von James
Jamesvor 3 Monaten

Really like the ast grow you build thanks

Profilbild von Cyrus
Cyrusvor 3 Monaten

@ewind_dev Let’s fucking go

Profilbild von Santosh Yadav
Santosh Yadavvor 3 Monaten

Congratulations buddy 👏

Profilbild von ChadSigmaRizzlord
ChadSigmaRizzlordvor 3 Monaten

Does it work similarly to tree sitter ?

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

generated by @suyanhanx

Profilbild von ChadSigmaRizzlord
ChadSigmaRizzlordvor 3 Monaten

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

Profilbild von Sean
Seanvor 3 Monaten

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

Profilbild von Aravind Putrevu
Aravind Putrevuvor 3 Monaten

Congratulations, Herrington!

Profilbild von NΞ∆
NΞ∆vor 3 Monaten

😌

Profilbild von MoonGotArt
MoonGotArtvor 3 Monaten

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

Profilbild von Marko
Markovor 3 Monaten

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

Profilbild von Pavitra Golchha
Pavitra Golchhavor 3 Monaten

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

Profilbild von jswh
jswhvor 3 Monaten

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

Profilbild von Chawan Prash
Chawan Prashvor 3 Monaten

Does it not support csharp because it says nothing found

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

Not yet!

Profilbild von Chawan Prash
Chawan Prashvor 3 Monaten

How will your implementation be better than

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

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.

Profilbild von Chawan Prash
Chawan Prashvor 3 Monaten

Actually I was asking about the outline tool only.

Profilbild von Isaac AR ⠊
Isaac AR ⠊vor 3 Monaten

Does it use ripgrep under the hood?

Profilbild von Herrington Darkholme
Herrington Darkholmevor 3 Monaten

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

Profilbild von 跑步进场
跑步进场vor 3 Monaten

Nice work.

Profilbild von Karthik Sundar
Karthik Sundarvor 3 Monaten

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

Profilbild von Timur Yessenov
Timur Yessenovvor 3 Monaten

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.

Profilbild von Bennet
Bennetvor 3 Monaten

Extremely helpful, thanks!

Profilbild von Jose Mejias
Jose Mejiasvor 3 Monaten

I'll give it try with thanks!

Profilbild von forever
forevervor 3 Monaten

和lsp有啥区别

Ähnliche Videos

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 Aufrufe • vor 7 Tagen