tscg: Token-Context compiler that expands agent tool capacity
tscg, from SKZL AI, is a deterministic compiler that optimizes AI agents' context budget for agentic workflows. It compresses complex JSON tool schemas into a token-efficient grammar so models can reference larger toolsets and RAG data without overflowing context windows. The tool reports 50–72% token savings for verbose tool definitions and targets AI engineers deploying local or constrained LLMs who need compact, predictable tool representations.
What tasks can you actually use it for?
The tool ships as an MCP server and an npm package, and it targets Node.js-based deployments on MCP-compatible hosts such as Claude Desktop, Cursor, and Windsurf. Integrations include support for LangChain and the Vercel AI SDK, which makes it usable where agent code assembles tool calls or RAG chains. In practice, teams apply it to reduce prompt overhead when agents must list or reference many external tools during runtime.
How much does it affect model behavior and accuracy?
Independent tests and developer notes report that using tscg reduces prompt 'noise' and prevents context-window overflow, outcomes that can improve tool-call accuracy for smaller local models such as Phi-4. The implementation is proven to enable agentic systems to handle very large tool sets in experiments, including runs with more than 800 tools, where models otherwise failed to use the full toolset.
What are the runtime and privacy characteristics?
tscg is implemented in TypeScript with no external dependencies and executes quickly, with reported runtime around 2.4 milliseconds for a 50-tool set. It runs on standard CPUs without GPU requirements and performs its compilation locally, with no external API calls required, which supports offline or private deployments. The package includes provider-aware formatting for Anthropic, OpenAI, and Ollama hosts.
Practical for engineers focused on tool-count limits, not a localization suite
tscg is a practical option for AI engineers who need to expand the number of callable tools inside constrained models; it is highly regarded in the agentic AI research community for resolving the tool-context trade-off. Its specialization in schema compression means teams seeking localization-specific features should consider whether this focused scope matches their objectives.





