arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.08290cs.SE
收藏

Tokalator:一个用于人工智能代码助手的上下文工程工具包

Tokalator: A Context Engineering Toolkit for Artificial Intelligence Coding Assistants

Kariyer.net, R&D Center(Kariyer.net 研发中心);Stanford University and iLab, Stanford, CA, U.S.A.(斯坦福大学及iLab);Centre Tecnològic de Telecomunicacions de Catalunya (CTTC/CERCA)(加泰罗尼亚电信技术中心)

Vahid Farajijobehdar, İlknur Köseoğlu Sarı, Nazım Kemal Üre, Engin Zeydan

AI总结:

Tokalator为AI辅助开发提供上下文管理工具,包含实时预算监控、11个命令、九个计算器及17种大语言模型支持,通过50名开发者的调研发现指令文件注入和低相关性标签是主要预算消耗来源。

摘要:

人工智能辅助编码环境受限于有限的上下文窗口(128,000-1,000,000个标记),现有工具对监控和优化标记消耗支持有限。随着开发者打开多个文件,模型注意力稀释,API成本随对话长度增长而增加。Tokalator是一个开源的上下文工程工具包,包含VS Code扩展、九个网络计算器、社区代理目录、MCP服务器、CLI、Python计量学API和PostgreSQL后端跟踪器。系统支持17种大语言模型,通过124个单元测试验证,初始部署在Visual Studio Marketplace记录313次购买,转换率206.02%。50名开发者的调研表明,指令文件注入和低相关性标签是典型AI辅助开发会话中的主要隐形预算消耗来源。

英文摘要:

Artificial Intelligence (AI)-assisted coding environments operate within finite context windows of 128,000-1,000,000 tokens (as of early 2026), yet existing tools offer limited support for monitoring and optimizing token consumption. As developers open multiple files, model attention becomes diluted and Application Programming Interface (API) costs increase in proportion to input and output as conversation length grows. Tokalator is an open-source context-engineering toolkit that includes a VS Code extension with real-time budget monitoring and 11 slash commands; nine web-based calculators for Cobb-Douglas quality modeling, caching break-even analysis, and $O(T^2)$ conversation cost proofs; a community catalog of agents, prompts, and instruction files; an MCP server and Command Line Interface (CLI); a Python econometrics API; and a PostgreSQL-backed usage tracker. The system supports 17 Large Language Models (LLMs) across three providers (Anthropic, OpenAI, Google) and is validated by 124 unit tests. An initial deployment on the Visual Studio Marketplace recorded 313 acquisitions with a 206.02\% conversion rate as of v3.1.3. A structured survey of 50 developers across three community sessions indicated that instruction-file injection and low-relevance open tabs are among the primary invisible budget consumers in typical AI-assisted development sessions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑