Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By Amatsuka-kobov0.2.1-devIn 1 marketplace
ユーザー入力待ちの直前に、次に必要となる読み取り主体の作業をバックグラウンドで先行実行し、回答後の待ち時間を短縮する
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
ユーザー入力待ちの直前に、回答後に高確率で必要となる読み取り主体の探索をバックグラウンドで先行実行し、回答後の立ち上がり時間を短縮する Claude Code プラグインです。
CPU の投機実行と同様に、「次に必要になりそうで、外れても副作用がない作業」だけを先に進めます。予測が外れた場合や先行探索が失敗した場合は成果を破棄し、通常フローへ戻ります。
フックとスクリプトは Node.js で動作します。node が PATH 上にあり、バージョンが 22 以上である必要があります。
Claude Code 本体はネイティブバイナリで配布され Node.js を同梱しないため、未導入の場合は別途インストールしてください。
Claude Code で Marketplace を追加します。
/plugin marketplace add https://github.com/Amatsuka-kobo/amatsuka-claude-plugins
Marketplace から prefetch をインストールします。
/plugin prefetch
プロジェクト単位またはユーザー単位で導入する場合はスコープを指定します。
/plugin prefetch --scope project
/plugin prefetch --scope user
インストールまたはフック設定の更新後は、Claude Code のセッションを再起動してフックを反映してください。
.gitignore の設定prefetch の成果はプロジェクトルートの .prefetch/ に保存されます。これはセッションローカルな投機成果であり、リポジトリへコミットしません。利用プロジェクトの .gitignore に次の 1 行を追加してください。
.prefetch/
プラグインは .gitignore を自動変更しません。
Claude が次のようなユーザー入力待ちに入る直前、回答後に必要となる読み取り主体の作業を予測します。
どの回答でも必要になる影響範囲調査、既存実装パターンの確認、関連テストケースの洗い出しなどの no-regret な作業を優先します。有用な予測がなければ何も起動しません。
予測した作業をバックグラウンドサブエージェントへ渡し、ユーザーが回答を考えている間に実行します。
.prefetch/<task-id>/result.md のみに保存haiku、複数モジュール間の契約を追う深い探索だけ sonnetrunning を含む合計も最大 3 件次のユーザー入力を受けたターンの冒頭で .prefetch/manifest.md を確認します。
harvested にするdiscarded にするfailed にして通常フローへ戻るUserPromptSubmit フックは manifest に running または done がある場合だけ回収リマインダーをコンテキストへ注入します。manifest がない場合や全件回収済みの場合は何も出力しません。
.prefetch/manifest.md は次の形式です。
# prefetch manifest
| task-id | 予測内容 | 有効条件 | 状態 | 成果パス |
|---|---|---|---|---|
| fr-001 | 対象モジュールの既存実装パターンを調査する | 提示した設計案が承認された場合 | running | .prefetch/fr-001/result.md |
状態は次の順に遷移します。
running → done → harvested
→ discarded
running → failed
manifest を更新するのはメインエージェントだけです。先行サブエージェントは manifest に触れず、自分の result.md だけを書きます。
.prefetch/ 以外へ先行書き込みを行いませんplugins/prefetch/
├── .claude-plugin/
│ └── plugin.json
├── hooks/
│ └── hooks.json
├── src/
│ └── check-prefetch-manifest.ts
├── scripts/
│ └── check-prefetch-manifest.mjs
├── skills/
│ └── prefetch/
│ └── SKILL.md
├── build.ts
├── package.json
└── README.md
このプラグインは Markdown、JSON、Node 標準ライブラリのみで構成され、外部パッケージに依存しません。利用者はインストールしたそのまま使えます(ビルド不要)。
src/(TypeScript)。pnpm build で scripts/*.mjs にバンドル(git 管理)pnpm test、pnpm typecheck、pnpm lintBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub amatsuka-kobo/amatsuka-claude-plugins --plugin prefetchPlugins from other owners that cover similar ground