Skip to content

Add ctok - Claude token estimator extension#6293

Open
KP-MobileTechie wants to merge 3 commits into
zed-industries:mainfrom
KP-MobileTechie:add-ctok-extension
Open

Add ctok - Claude token estimator extension#6293
KP-MobileTechie wants to merge 3 commits into
zed-industries:mainfrom
KP-MobileTechie:add-ctok-extension

Conversation

@KP-MobileTechie
Copy link
Copy Markdown

Summary

Adds the ctok extension - a Claude token estimator for Zed.

  • Estimates token count and cost for any text or current file
  • Refines prompts to reduce tokens while preserving intent
  • Scans a project directory and reports token usage by file

Extension details

Slash commands provided

Command Description
/ctok-check Estimate token count and cost
/ctok-refine Refine a prompt to reduce tokens
/ctok-scan Scan project directory for token usage

Checklist

  • Extension has a valid extension.toml at the repo root
  • Extension compiles against zed_extension_api = "0.2"
  • Repository is public
  • Submodule added to extensions/ctok

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 30, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @KP-MobileTechie on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 30, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @KP-MobileTechie on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@KP-MobileTechie KP-MobileTechie changed the title feat: add ctok - Claude token estimator extension Add ctok - Claude token estimator extension May 30, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented May 30, 2026

We require contributors to sign our Contributor License Agreement, and we don't have @KP-MobileTechie on file. You can sign our CLA at https://zed.dev/cla. Once you've signed, post a comment here that says '@cla-bot check'.

@KP-MobileTechie
Copy link
Copy Markdown
Author

Hi, I'm unable to sign the CLA at zed.dev/cla - my account is blocked from signing up (Cloudflare error: 'This account is blocked from signing up'). I've emailed billing-support@zed.dev to get it resolved. Could a maintainer manually approve the CLA for GitHub user KP-MobileTechie? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant