3 ms·
Here is another technique to save tokens: allow the model to read a skeleton of the source code before reading the code, to give it an index into the code so it
by ryuuseijin 29d ago
Here is another technique to save tokens: allow the model to read a skeleton of the source code before reading the code, to give it an index into the code so it can read targeted chunks.
There is a tool that uses ripgrep and treesitter that does this [1], adapted from the maki coding agent.
[1]: https://github.com/ninjaxtools/treesitter-index https://github.com/ninjaxtools/treesitter-index