Hard to use across machines: state outside repo, absolute paths in generated launcher, per-repo config sprawl
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 15/100
- Issue 类型
- 功能
- 描述清晰度
- 需要澄清
- 活跃度
- 活跃
- 领域
- devtools
调研方向
This is a design discussion, not a single change: state location (~/.tokeneconomizer), the generated launcher ~/.tokeneconomizer/bin/te with its hardcoded plugin-cache path, and the per-repo .claude/settings.local.json deny rules are the places it touches. Settle the intended storage layout and runtime path resolution with the maintainers before any code is written; done means an agreed design, not a patch.
由索引模型根据 Issue 内容生成。
描述
Feedback after using TokenEconomizer 0.1.0 (Claude Code plugin, Windows) across several repositories on two PCs, with ~/.claude synced through git. I ended up uninstalling it. These are the problems that led to that.
1. Not friendly to cloud/git sync
- Learned state lives in
~/.tokeneconomizer(repos/,index.json,sessions/,locks/), outside~/.claudeand outside the repository. It cannot travel with a synced config or with the repo, so every machine relearns from scratch. - Per-repo state folders have hashed names (e.g.
my-repo-73d35aa8b6, plus.bak-<timestamp>copies), so they cannot be matched or merged across machines by a person.
2. Absolute paths baked into generated files
- The launcher written at session start,
~/.tokeneconomizer/bin/te, is a script likeexec 'C:\Users\<name>\.claude\plugins\cache\tokeneconomizer\tokeneconomizer\0.1.0\scripts\te' "$@". It hardcodes the plugin cache path including user name and plugin version, so it is only valid on one machine and breaks on every plugin update or on a different profile folder. - Please resolve the plugin location at runtime (e.g. via
CLAUDE_PLUGIN_ROOTor relative to the script) instead of writing it into a generated file.
3. Hard to see what is enabled where
- Per-repo behaviour is spread over several places:
.claude/settings.local.jsondeny rules in each repo, anextraKnownMarketplacesentry in each project's.claude/settings.json, project-scope plugin installs, and the state under~/.tokeneconomizer. - In two of my repos the tool pruning had silently added about 250 entries to
permissions.deny(Artifact, scheduled-tasks, Teams/Outlook/SharePoint connectors, Power Automate tools, ...). Nothing in the project made it obvious why those tools were missing. Support for finding out which repos are affected was limited to a command that must be run inside each repo. - With a user-level install plus project-level installs, the plugin list shows the same plugin several times, which made it hard to tell which copy applies where.
Suggestions
- Keep state inside the repo (or an opt-in, relocatable directory), in a readable, mergeable format.
- No absolute paths in generated files.
- One place that shows which repos are enabled and what has been pruned, and prune via an explicit, visible, reversible step rather than a large silent deny list.
- 主要语言
- Python
- 星标
- 5.6k
- 派生
- 344
- 平均合并
- 17 小时 41 分钟
- 30 天内合并 PR
- 73
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/TokenEconomizer 的其他 Issue
-
trace: Pi's 1-hour cache writes are priced at 1.25x, but billed at 2x可能已有人在做 @Shizoqua 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
microsoft/TokenEconomizer#221 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 25/100
microsoft/TokenEconomizer#205 ·
维护者通常 1 天内回复
-
Copilot CLI hooks fail on Windows: command runs under PowerShell, which can't execute te-hook可能已有人在做 @sykuang 于 3 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 72/100
microsoft/TokenEconomizer#204 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
microsoft/TokenEconomizer#193 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 20/100
microsoft/TokenEconomizer#186 ·
维护者通常 1 天内回复
查看 microsoft/TokenEconomizer 的全部 Issue
相似的 Issue
-
bug
难度 1/5 1 小时以内 新手友好度 78/100
splunk/security_content#4418 ·
维护者通常 1 天内回复
-
[Bug / Enhancement]: Improve teleop_robot CLI with configurable timeout, robust input validation, and clean ROS shutdown可能已有人在做 @muskan-creates352 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 3 天内回复
-
bug(pipelines): shortcode stripping deletes text between a {{< >}} shortcode and the next {{% %}}可能已有人在做 @Ashborne-lab 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
kubeflow/docs-agent#293 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
Imbad0202/academic-research-skills#1093 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
pierreaubert/gpui-toolkit#114 ·
维护者通常 1 天内回复