Store learned repo state inside the repository (opt-in), so it can be committed and shared across machines
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Start by locating the code that stores micro-skills facts, tool-pruning counters, and loop-guard state, then trace how it resolves TOKENECONOMIZER_HOME. The issue proposes an opt-in repository directory and separates portable data from private, machine-specific data, but does not name files or tests. Done means portable state can be shared safely, merges by fact id, and the local-only files have a documented .gitignore snippet.
索引モデルが issue の本文から書いたものです。
説明
Problem
Everything TokenEconomizer learns about a repository (micro-skills facts, tool-pruning counters, loop-guard state) is stored under ~/.tokeneconomizer (or $TOKENECONOMIZER_HOME), outside the repository. It cannot be committed, reviewed, shared with teammates, or follow the repo to another machine. Anyone who works on the same repo from several PCs, or in a team, has to re-learn the same facts from scratch on each one, which is the cost the tool exists to reduce.
Request
Support an opt-in, per-repository state directory, for example <repo>/.tokeneconomizer/:
- A setting (or auto-detection when that directory already exists) that makes the learned, repo-specific data live inside the repository instead of the user home.
- Keep machine-specific and private data (errors.log, session transcripts, cost ledgers, absolute paths) in the home directory, and put only portable data (confirmed facts, pruned-tool list, thresholds) in the repo, in a diff-friendly format (JSON or Markdown, stable key order, no absolute paths).
- Make it safe to commit: no secrets or transcript excerpts, and a documented
.gitignoresnippet for the parts that should stay local. - Merge-friendly: facts keyed by id so concurrent updates from two machines merge cleanly in git.
Why TOKENECONOMIZER_HOME is not enough
It is one global directory per user, not per repository, and it has to be an absolute path, so it cannot be set in a committed .claude/settings.json and work for different users or machines.
Context
Seen with the Claude Code plugin on Windows, where the same repo is used from several machines with different user names.
- 主要言語
- Python
- スター
- 5.6k
- フォーク
- 344
- 平均マージ
- 14時間 41分
- マージ済み PR(30日)
- 54
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/TokenEconomizer のほかの issue
-
pricing: Claude's 1-hour cache writes are priced at 1.25x, but billed at 2x対応中かも @anascherif が 1 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
microsoft/TokenEconomizer#191 ·
メンテナーはふだん 1 日以内に返信
-
trace: Claude Code's `<synthetic>` notices count as requests and can make a Claude session price on the fallback curve対応中かも @1AbdullahButt が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 20/100
microsoft/TokenEconomizer#189 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
microsoft/TokenEconomizer#186 ·
メンテナーはふだん 1 日以内に返信
-
plugin: the agent-output readers crash on a JSON line that is not an object対応中かも @rahul05ranjan が 1 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
microsoft/TokenEconomizer#182 ·
メンテナーはふだん 1 日以内に返信
-
trace: the cursor readers crash on a JSON line that is not an object対応中かも @rahul05ranjan が 1 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 25/100
microsoft/TokenEconomizer#180 ·
メンテナーはふだん 1 日以内に返信
microsoft/TokenEconomizer の issue をすべて見る
似ている issue
-
bug triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mealie-recipes/mealie#9117 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
freelawproject/courtlistener#8406 ·
メンテナーはふだん 2 日以内に返信
-
good first issue help wanted level 1 wocs
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
GianlucaBave/murmury#49 ·
メンテナーはふだん 1 日以内に返信
-
regression skipped skipped_bmg
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
intel/torch-xpu-ops#6142 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
good first issue help wanted python up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
andrewsiah/agentswarm-data-tasks#122 ·
メンテナーはふだん 1 日以内に返信