|
|
|
|
|
by AlexC04
63 days ago
|
|
I first leanred about tree sitter a couple months back when I started looking at what was inside the NPM fodler for claude. It's a really cool library. One of the things it made me think about is whether it made sense for using when editing large markdown files would it be more efficient to convert a document form markdown to DOM then back again for the purposes of editing a large markdown file via code agents? (or a json) The theory being that agents are always asking me for pemission to use sed in bash to edit markdown files -- could tree-sitter do the same thing using its code-editing capabilities? And would that difference be materially impactful?
Could I lower the token cost of writing an extensive plan by choosing a format that allows me to use tree sitter? I really haven't explored that much yet since I've been working on other things but it was more just one of those things that make you go hmmmmm... maybe someone else knows :) |
|