MCPFast / Tools / Agentic code context engine with pre-compiled AST

GitHubMCP★★★★☆

Agentic code context engine with pre-compiled AST

An agentic code context engine that pre-compiles an LLM-described AST in .tost format to reduce token costs.

View on GitHub

Agentic Code Context Engine with Pre-compiled AST

This tool provides an agentic code context engine designed to optimize LLM interactions by pre-compiling Abstract Syntax Trees (ASTs). By transforming code into a structured, LLM-understandable format (.tost), it significantly reduces token consumption, leading to lower costs and faster processing for AI builders working with code.

What it Does

The core functionality is to parse source code and generate an AST. This AST is then pre-compiled into a custom format, .tost , which is optimized for consumption by Large Language Models (LLMs). Instead of feeding raw code or verbose AST representations, developers can leverage this pre-compiled format to provide concise and structured context to their AI agents. This dramatically cuts down on the number of tokens required for each LLM call, making complex code analysis and generation tasks more efficient and cost-effective.

Key Features

Who it's For

This tool is ideal for AI builders , software engineers , and developers who are actively working with LLMs for code-related tasks. This includes those developing AI agents for code generation, refactoring, analysis, debugging, or any application where understanding and processing code context is crucial. If you are looking to reduce the operational costs of your AI coding tools or improve the performance of your LLM-driven code assistants, this agentic code context engine is a valuable addition to your toolkit.