TCalc
Local-first workspace token calculator and model recommender for coding agents, with repo maps, VS Code, CLI, and MCP.
Install / Use
claude mcp add Sandesh13fr -- npx -y github:Sandesh13fr/TCalcIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
AI & Machine LearningSupported Platforms
Tags
Our assessment of TCalc
TCalc scores 82/100 on our quality scale, 701st of 953 AI & Machine Learning skills we index.
Its MCP Server is 7.7 KB long, well organised into 11 sections with 4 code examples: a thorough specification that gives an agent plenty to work with.
It has 43 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 21 days ago, so TCalc is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
TCalc compared with similar skills
All 4 of these similar skills score higher than TCalc; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| TCalc (this skill)by Sandesh13fr | 82 | 43 | 21d ago | MCP Server |
| claude-memby thedotmack | 100 | 112.7k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 108.8k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 90.5k | 9d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 78.8k | today | CLAUDE.md |
Frequently asked questions
- How do I install TCalc?
- Run
claude mcp add Sandesh13fr -- npx -y github:Sandesh13fr/TCalc. The install tabs above show the steps for each supported agent. - Which AI agents does TCalc work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is TCalc safe to use?
- It is MIT-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is TCalc still maintained?
- The repository was last updated 21 days ago, so TCalc is actively maintained.
Skill content
View source on GitHubSee the workspace before your agent does
<img src="./docs/assets/screenshots/dashboard.png" width="100%" alt="TCalc dashboard showing workspace token totals, model recommendations, and token-heavy files and folders">TCalc respects workspace ignore rules, estimates tokens by file, folder, and language, then recommends models against the actual context and your current goal.
| Compare models against the scan | Generate a budgeted repo map | | --- | --- | | <img src="./docs/assets/screenshots/model-comparison.png" alt="TCalc model comparison with fit, context, and estimated cost"> | <img src="./docs/assets/screenshots/repo-map.png" alt="A TCalc repo map generated within a token budget"> |
One scan, three useful decisions
| | Decision | TCalc produces | | --- | --- | --- | | 01 | What is consuming context? | Included and excluded files, token-heavy paths, folders, languages, and warnings. | | 02 | Which model is enough? | Cheapest-sufficient, balanced, and high-confidence options with context fit and estimated cost. | | 03 | What should the agent read? | Budgeted repo maps, goal-aware agent rules, reports, and ready-to-use MCP configuration. |
The scanner, recommender, report generator, and integrations share the same local-first core. Model catalogs stay provider-neutral, and recommendations change with the task rather than hard-coding one model as “best.”
Start in VS Code
Install TCalc from the VS Code Marketplace or Open VSX, then run:
Command Palette → TCalc: Quick Start
The guided flow scans the open workspace, sets a goal, compares models, and opens the dashboard. You can also install a downloaded release directly:
code --install-extension tcalc-*.vsix
See the VSIX installation guide for the local package workflow. A source-built JetBrains plugin is also available as an MVP for IntelliJ-based IDEs.
Use the CLI
Build once, then scan, compare, or generate only the context you need:
pnpm install
pnpm build
pnpm cli scan ./my-project
pnpm cli recommend ./my-project --goal build-mvp
pnpm cli repo-map ./my-project --budget 8000
pnpm cli rules ./my-project --target codex --mode repo-map-first
Other commands generate Markdown/JSON reports, validate model catalogs, create MCP configs, and start the local MCP server. Run pnpm cli --help for the complete command list.
Connect your coding agent
TCalc can expose the same scan, recommendation, repo-map, rules, and report capabilities over stdio MCP. It also generates agent rule files and client configuration without uploading source code.
| Tool | Integration | Guide |
| --- | --- | --- |
| Cursor | MCP + .cursorrules | Setup |
| Continue | MCP | Setup |
| Claude Desktop | MCP | Setup |
| Claude Code | MCP + CLAUDE.md | Setup |
| Cline | MCP | Setup |
| Roo | MCP | Setup |
| Any stdio MCP client | MCP | Generic setup |
# Generate a client config
pnpm cli mcp-config --target cursor
pnpm cli mcp-config --target continue --output continue-mcp.yaml
# Start the experimental local server
pnpm cli mcp
<img src="./docs/assets/screenshots/agent-rules.png" width="100%" alt="Goal-aware AGENTS.md rules generated by TCalc for a scanned workspace">
[!NOTE] The MCP server is an experimental MVP: stdio transport only, with no hosted mode. Repo maps are structural and do not expose full source file bodies. See the MCP documentation for tools, resources, prompts, security boundaries, and current limits.
Repository map
<details> <summary><strong>Packages and applications</strong></summary>| Package | Role |
| --- | --- |
| @wma/core | Shared types, configuration, and constants |
| @wma/scanner | Workspace discovery, ignores, and classification |
| @wma/tokenizers | Heuristic and provider-specific token estimation |
| @wma/model-catalog | Model metadata and catalog validation |
| @wma/recommender | Goal-aware fit, scoring, and cost estimates |
| @wma/repo-map | Context-budgeted structural maps and symbols |
| @wma/agent-rules | Rules for Codex, Claude Code, Cursor, and other agents |
| @wma/reports | Markdown and JSON reports |
| @wma/mcp-server | Local stdio MCP tools, resources, and prompts |
| apps/cli | Commander-based CLI |
| apps/vscode-extension | VS Code dashboard and commands |
| apps/jetbrains-plugin | IntelliJ Platform plugin MVP |
| apps/dashboard | Next.js website, documentation, local report viewer, and optional report service |
Project guides
Troubleshooting VS Code test output
-
Missing
catalogs/models.jsonor.tcalc/models.jsonfiles are optional workspace overrides; TCalc uses the catalogue bundled with the extension when neither exists. -
Messages that reference
embeddings.vscode-cdn.netcome from VS Code/Copilot semantic tooling, not TCalc. Update VS Code and Copilot, then run Developer: Reload Window. TCalc does not fetch remote embeddings. VS Code documents both its CDN network endpoint and that embedding-backed features require connectivity.
License
Related Skills
claude-mem
112.7kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
108.8kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
90.5kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
headroom
78.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
