Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add 0xmariowu/Autosearch --skill reflective-search-loopgit clone --depth 1 https://github.com/0xmariowu/AutosearchWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/0xmariowu/autosearch/reflective-search-loop)<a href="https://agentmods.dev/skills/0xmariowu/autosearch/reflective-search-loop"><img src="https://agentmods.dev/badge/skills/0xmariowu/autosearch/reflective-search-loop/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/0xmariowu/autosearch/reflective-search-loop"><img src="https://agentmods.dev/badge/skills/0xmariowu/autosearch/reflective-search-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00069 | $0.01309 |
| Opus 5 | $0.00034 | $0.00655 |
| Sonnet 5 | $0.00014 | $0.00262 |
| Haiku 4.5 | $0.00007 | $0.00131 |
Grade A, and why
autosearch:reflective-search-loop scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 125 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Reflective Search Loop — Explicit Loop State
Most autosearch leaf skills are one-shot: call, get evidence, done. This meta skill codifies a multi-round loop that the runtime AI drives when the task is deeper than one query round can settle.
Loop State
loop:
round: int # 0, 1, 2, ...
budget_remaining:
rounds: int # hard cap, e.g. 5
cost_usd: float
latency_seconds: int
context:
query: str # original user query
rubrics: list[str] # from run_clarify
progress:
gaps: list[str] # outstanding sub-questions, grows/shrinks
answered_gaps: list[str] # resolved this round
all_questions: list[str] # every question asked across all rounds
visited_urls: list[str] # URLs already fetched
bad_urls: list[str] # URLs that 404'd / were blocked / returned junk
evidence: list[dict] # accumulated Evidence items
evaluator_failures: list[str] # rubric/quality failures from previous round
decision:
next_action: "search_more" | "fetch_more" | "finalize" | "escalate_budget" | "abort"
next_queries: list[str] | null
next_urls_to_fetch: list[str] | null
stop_reason: str | null
Round Structure
Each loop iteration:
- Reflect (Best tier LLM): given current
loopstate, decidenext_action. - Act: call
run_channel(...)orfetch-jina/fetch-crawl4aifor the chosen next step. - Integrate: update
progress(visited URLs, evidence list, new gaps discovered). - Evaluate (if enabled): run
check-rubricsorevaluate-delivery; record failures inevaluator_failures. - Loop or stop: check budget + stop conditions.
Stop Conditions
ANY of:
round >= budget_remaining.rounds(hard cap).len(gaps) == 0ANDlen(evaluator_failures) == 0(task complete).len(new_evidence_this_round) == 0for 2 consecutive rounds (stalled).cost_usd> allocated budget.- User explicitly aborts.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago First seen · 125 lines · 69 tokens per session scan A 957b9de96893
autosearch:reflective-search-loop is a skill published in the GitHub repository 0xmariowu/Autosearch (44 stars, last pushed 1mo ago), licensed MIT. It adds 69 tokens to every session and 1,309 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
prior-art-search
Systematic 7-step methodology for comprehensive patent prior art searches and patentability assessments using BigQuery and CPC classification.
sanity-best-practices
Sanity development best practices for schema design, GROQ queries, TypeGen, Visual Editing, images, Portable Text, Studio structure, localization, migrations, Sanity Functions, webhooks, Blueprints, and framework integrations such as Next.js, Nuxt, Astro, Remix, SvelteKit, Angular, Hydrogen, and the App SDK. Use this…
portable-text-serialization
Render and serialize Portable Text to React, Svelte, Vue, Astro, HTML, Markdown, and plain text. Use when implementing Portable Text rendering in any frontend framework, building custom serializers for non-standard block types, converting Portable Text to HTML strings server-side, converting Portable Text to Markdown…
development-assistant
Guides through adding new features, MCP tools, analyzers, and extending the patent creator system.
mpep-search
Expert system for searching USPTO MPEP, 35 USC statutes, 37 CFR regulations, and post-Jan 2024 updates.
video-perception
Use when the user mentions a video file (.mp4, .mov, .avi, .mkv, .webm), a YouTube URL, asks to watch/analyze/review a video, or references video content in conversation.