跳到正文
GitHub·· 8 天前AI 评分38

tokalator:面向 AI 编程的上下文工程工具包,含 VS Code 扩展与 Claude Code 插件

vfaraji89/tokalator

AI 导读

tokalator 是一套面向 AI 编程的上下文工程工具包,包含网站、VS Code 扩展、Claude Code 插件和可复用提示词。其 VS Code 侧边栏实时追踪 token 用量并以 LOW / MEDIUM / HIGH 显示,按相关性对打开文件排序,支持一键关闭无关文件与固定重要文件。

正文

A context engineering toolkit for AI coding. Website + VS Code extension + Claude Code plugin + reusable prompts

Site: tokalator.ai Extension: VS Code Marketplace Claude Code Plugin: tokalator-glossary


Why

AI assistants have finite context windows. When you have 30 tabs open, your assistant's attention gets diluted across irrelevant files. You can't see what's happening -- how many tokens you're using, which files matter, when context rot starts to kick in.

A set of calculators and tools for understanding AI token economics:

  • Token calculator with real-time pricing across updated models
  • Model comparison -- context windows, costs, capabilities side by side
  • Caching calculator for estimating prompt caching savings
  • Conversation estimator that predicts when context rot will hit
  • Context optimizer for building token budgets
  • A interactive course on context engineering
  • A wiki with +40 terms defined.

The Extension

A VS Code sidebar that tracks your context budget in real time:

  • Shows token usage as LOW / MEDIUM / HIGH
  • Ranks open files by relevance to what you're actually working on
  • One click to close the noise
  • Pin important files so they're always counted
  • Chat commands via @tokalator — count, optimize, pin, breakdown, instructions, model

Scores files based on language match, import relationships, path proximity, edit recency, and diagnostics.

Claude Code Plugin

Auto-generates a codebase glossary (symbol index) after /init. Saves tokens by giving Claude a compressed map of your codebase.

/plugin marketplace add vfaraji89/tokalator-glossary
/plugin install tokalator-glossary

Commands: /tokalator-glossary:glossary, /tokalator-glossary:glossary-lookup, /tokalator-glossary:glossary-stats, /tokalator-glossary:glossary-refresh

Getting Started

# website
git clone https://github.com/vfaraji89/tokalator.git
cd tokalator && npm install && npm run dev

# extension
cd tokalator-extension-vs && npm install && npm run compile
# then F5 in VS Code

License

MIT

来源:GitHub · github.com