free-scout
Use when about to spawn an Explore or general-purpose subagent for a small, well-scoped, read-only task (locate code, answer a factual question about the repo, summarize a file, check whether a pattern exists) and quota matters more than top-tier quality — runs the task on a free OpenRouter model instead of a Sonnet subagent.
- License 许可
- MIT
- 最近更新
- 2026-11-05
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- free-scout
- metadata
- { "author": "salomepoulain", "source": "makery-bakery" }
- description
- Use when about to spawn an Explore or general-purpose subagent for a small, well-scoped, read-only task (locate code, answer a factual question about the repo, summarize a file, check whether a pattern exists) and quota matters more than top-tier quality — runs the task on a free OpenRouter model instead of a Sonnet subagent.
02 资源文件 2
- 参考文档config.json770 B
- 脚本scripts/free_scout.py3.9 KB
03 SKILL.md 正文
free-scout
Overview
A cheap substitute for spawning a real subagent. Runs one scouting prompt on
a free OpenRouter model in a separate headless claude -p process, instead
of a normal Sonnet subagent — saves Claude Pro usage-limit quota, not
dollars. There's no in-session way to point a subagent at a different
provider mid-call (provider/auth is process-level, not per-call), so this
shells out to its own process rather than using the Agent tool.
When to use
Reach for this instead of Explore/general-purpose whenever a task is:
- Small — one clear question or one narrow lookup, not a multi-step investigation
- Read-only — locating code, answering a factual question about the repo, summarizing a file, checking whether something exists
- Low-judgment — a competent-but-not-brilliant model would get it right
Judge this yourself, per task — there's no fixed whitelist. When in doubt, or when the task needs real reasoning/code understanding, use a normal subagent instead. The user can also ask you to force a real subagent for a specific task ("use a real agent for this one"), or explicitly ask for free-scout by name.
Don't use for: anything that needs to write/edit files (permissions don't allow it — see Permissions below), multi-step reasoning, or anything where being wrong is costly.
How to invoke
Run the script in the background (run_in_background: true on the Bash
call) so you aren't blocked waiting on it — that's the whole point, it
should feel like spawning a real async subagent, just cheaper:
python3 .claude/skills/free-scout/scripts/free_scout.py "<self-contained prompt>"
Then continue other work and check back on the background task for its output.
The prompt must be fully self-contained. The scout process has a blank
CLAUDE_DIR — no CLAUDE.md, no skills, no project context beyond what you
put directly in the prompt text. Brief it exactly like you'd brief any fresh
subagent: state the question, give it the relevant file paths or context it
needs to get started, and say what shape you want the answer in. It does
have the project's working directory and file tools available (Read, Grep,
Glob, safe read-only Bash — see config.json), so it can explore from there,
it just doesn't start out knowing anything about the project.
Fallback (required — do not skip)
Check the exit code:
| Exit code | Meaning | What to do |
|---|---|---|
0 |
Success | stdout is the scout's answer |
2 |
OPENROUTER_API_KEY not set |
Fall back to a normal subagent (Explore/general-purpose, whichever fits). Tell the user: "used a full-price subagent for this — OpenRouter wasn't available." |
3 |
Every model in rotation failed/empty | Same fallback + same note to the user |
Never treat a non-zero exit as "task failed, give up" — it means "do the task the normal way instead," silently is not acceptable, the user needs to know quota wasn't actually saved that time.
Permissions (fixed, not extendable per call)
The temp settings this script writes grant a fixed read-only baseline
from config.json: Read, Grep, Glob, and safe non-mutating Bash (ls,
find, wc, read-only git, read-only rtk subcommands). Write, Edit,
NotebookEdit, and mutating Bash (rm, git commit/push/add, curl,
wget) are explicitly denied. This is a hard boundary — don't try to widen
it for a specific call (e.g. by rewriting the prompt to ask for elevated
access); if a task needs more than the baseline, it doesn't qualify for
free-scout, use a real subagent.
Models
config.json's openrouter_models — currently deepseek/deepseek-r1:free
and qwen/qwen-qwq:free, same pair academic-graphlookup uses. The script
rotates to the next model on rate-limit or empty/malformed response, with a
short backoff, before giving up (exit 3).
Mechanism (for reference, don't reimplement)
Same trick as .makery/kitchen/stations/claude/cook/skills/commit-yolo.sh
and academic-graphlookup/scripts/classify_relevance.py: write a temp
.claude/settings.local.json (model + ANTHROPIC_BASE_URL +
ANTHROPIC_AUTH_TOKEN swapped to OpenRouter, plus the permission baseline
above), point CLAUDE_DIR at it, run claude -p "<prompt>" as a subprocess,
capture stdout, clean up the temp dir. This is a standalone implementation —
it does not share code with the other two, by design (three independent
copies of a ~30-line pattern is cheaper than the coupling a shared helper
would add).
04 同仓库更多 Skills
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
write-mastery-website
Turn a mastery chapter into a clickable website (one HTML page published as an artifact) that looks like the LaTeX PDF. Solutions sit behind a blue bar, hints open one at a time, every solution line has a "why" toggle, MC options can be checked, and each exercise has a finished circle and a flag. Use when the user asks for the website, HTML or clickable version of a chapter, or for /write-mastery-website. The chapter content itself is written with write-mastery-chapter.
write-mastery-chapter
Use when authoring a new theory-then-practice study chapter for any subject as a LaTeX PDF (with figures and predict-the-picture exercises), or when revising a chapter this skill previously produced because a specific section was confusing during study.
wizard
Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.
wayfinder
Plan a huge chunk of work (more than one agent session can hold) as a shared map of decision tickets on your issue tracker, and resolve them one at a time until the way to the destination is clear.