TS 컴파일러로 만든 코드 그래프를 활용해 코딩 에이전트의 토큰 소모를 10배 줄일 수 있다.
TypeScript 컴파일러가 해석한 코드 그래프(@ttsc/graph)를 이용해 코딩 에이전트가 질문에 답변할 때의 토큰 소모를 크게 줄일 수 있다. 에이전트는 기존에 파일을 여러 번 열고 import를 추적하는 방식 대신, 미리 해석된 그래프를 통해 효율적으로 의존성 정보를 얻는다. 이를 통해 코드 분석의 속도를 높이고 리소스를 절약하는 효과를 기대할 수 있다.
The code graph created by the TS compiler reduces token consumption of coding agents by tenfold.
By utilizing the code graph interpreted by the TypeScript compiler (@ttsc/graph), coding agents can significantly reduce token consumption when answering questions. Instead of repeatedly opening files and tracking imports, agents can efficiently obtain dependency information through a pre-interpreted graph. This approach is expected to enhance the speed of code analysis while saving resources.