ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 saksham10arora-dotcom

frugal

讓 Claude 把精力花在思考而非雜務上:Explore 等輔助子代理使用 Haiku,大型檔案和記錄可透過 summarize_free 交給免費 Gemini,摘要結果顯示在提示列上方。

saksham10arora-dotcom@saksham10arora-dotcom

saksham10arora-dotcom/claude-frugal

原貼文圖片1
已翻譯

關於這個 mod

frugal 為 Claude Code 提供近乎零成本的工作模式。Explore 等輔助子代理使用 Haiku;summarize_free 工具可把大型檔案或記錄交給免費 Gemini,而不是全部讀入 Claude。透過 /frugal on、off、status 控制並查看統計。需要早期存取的函式掛鉤。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add saksham10arora-dotcom/claude-frugal
claude plugin install frugal
原文 / README

frugal

Spend Claude on thinking, not chores. A Claude Code mod.

frugal summarising a 6,000 line log with free Gemini

A real, unedited session: Claude hands a 6,000 line log to free Gemini and gets back a timeline.

Two ways to spend Claude on thinking instead of chores:

  1. Helper subagents (Explore and friends) that don't ask for a model run on Haiku.
  2. summarize_free, a tool Claude can call to hand a big file or log to a free Gemini model and get back only what it needs. Gemini models are tried in order (Lite first), so one being busy doesn't stop it.

A line above the prompt counts what went where; /frugal status adds all-time totals.

An honest note from making the demo: for "find the error" questions Claude reaches for Grep, which is cheaper still. summarize_free earns its place on summaries, timelines and questions grep can't answer, or whenever you ask for it.

Setup

Get a free key at aistudio.google.com, then either set GEMINI_API_KEY or run /plugin configure frugal@nerfsaksham-frugal (the key goes to secure storage).

Commands and settings

  • /frugal on, /frugal off, /frugal status
  • Settings: Gemini models in order, helper model (haiku or sonnet), which subagent types count as helpers

What it touches

The file you ask it to summarise, one call to Gemini per summary, and GEMINI_API_KEY.

Install

Claude Code 2.1.287 or newer runs mods out of the box. On 2.1.273 to 2.1.286, start it with CLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1 first.

claude plugin marketplace add saksham10arora-dotcom/claude-frugal
claude plugin install frugal@nerfsaksham-frugal

Every option has a default, so the installer's "userConfig options not yet set" note is safe to ignore.

Or try it without installing:

git clone https://github.com/saksham10arora-dotcom/claude-frugal && claude --plugin-dir claude-frugal

Develop

claude plugin validate .
claude plugin test .

More mods

Part of a set: teach-me · vhs · frugal · lofi. More community mods: awesome-claude-mods.

MIT. Made by Saksham Arora (@nerfsaksham).

更多類似作品