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 trace-harvestgit 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/trace-harvest)<a href="https://agentmods.dev/skills/0xmariowu/autosearch/trace-harvest"><img src="https://agentmods.dev/badge/skills/0xmariowu/autosearch/trace-harvest/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/trace-harvest"><img src="https://agentmods.dev/badge/skills/0xmariowu/autosearch/trace-harvest.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.00082 | $0.00981 |
| Opus 5.5 | $0.00033 | $0.00392 |
| Sonnet 5.5 | $0.00016 | $0.00196 |
| Haiku 4.5 | $0.00008 | $0.00098 |
Grade A, and why
autosearch:trace-harvest 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 3mo 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 — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Trace Harvest — Distill Successful Sessions
MiroThinker's collect-trace + DeepResearchAgent's general_memory_system patterns adapted for autosearch. Analyzes a session's tool-call trace, identifies what worked, and turns it into promote-candidate patterns for experience-capture to store.
Input
A completed autosearch session's trace:
trace:
session_id: str
query: str
clarify_result: ClarifyResult (from run_clarify)
tool_calls: list[{name, args, result_summary, success, latency_ms, cost}]
final_answer: str | null
user_feedback: "accepted" | "rejected" | "unknown" | null
rubrics_passed: list[str]
rubrics_failed: list[str]
Selection Rules
Only harvest traces where ANY of:
user_feedback == "accepted"(explicit positive).len(rubrics_passed) >= 0.6 * (rubrics_passed + rubrics_failed)(objective quality gate).- Session finished within budget AND generated >= 5 unique evidence citations.
Reject traces where:
- User rejected the final answer.
- Session hit a budget-exhausted error.
- More than 3 tool calls failed consecutively.
Harvest Output
Per successful trace, emit patterns keyed by leaf skill:
{
"ts": "...",
"session_id": "...",
"skill": "search-xiaohongshu",
"winning_pattern": "brand + pain_word + recent_date_window",
"good_query": "品牌 痛点词 近30天",
"context": {
"task_domain": "product-research",
"clarify_had_rubrics": 4,
"subsequent_channels_used": ["search-douyin", "search-zhihu"]
},
"metrics": {
"relevant_out_of_returned": "9/18",
"led_to_user_acceptance": true
},
"promote_candidate": true,
"trace_ref": "traces/<session_id>.jsonl"
}
Each emitted pattern is appended via experience-capture to the relevant skill's patterns.jsonl. Trace-harvest does NOT write experience.md directly — that's experience-compact's job.
When Run
- At session end (if session had
user_feedbacksignal). - Batch mode: process the trace archive nightly, harvest successful sessions from the last 24h.
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.
- 3mo ago First seen · 105 lines · 82 tokens per session scan A 6987d606b3ce
autosearch:trace-harvest is a skill published in the GitHub repository 0xmariowu/Autosearch (57 stars, last pushed 7d ago), licensed MIT. It adds 82 tokens to every session and 981 once invoked, about $0.0003 per session on Opus 5.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.
autosearch:trace-harvest compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| autosearch:trace-harvest0xmariowu/Autosearch | Skill | 57 | 7d ago | MIT | A | 82 | Claude Code |
| wenlan-handoffwenlan-app/wenlan | Skill | 502 | yesterday | Apache-2.0 | A | 46 | Claude Code, Codex |
| wenlan-recallwenlan-app/wenlan | Skill | 502 | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| forgetwenlan-app/wenlan | Skill | 502 | yesterday | Apache-2.0 | A | 48 | Claude Code, Codex |
| prior-art-searchRobThePCGuy/Claude-Patent-Creator | Skill | 219 | 4d ago | MIT | A | 42 | Claude Code |
| sanity-form-component-suspensesanity-io/agent-toolkit | Skill | 203 | yesterday | MIT | A | 149 | Claude Code |
| wenlan-syncwenlan-app/wenlan | Skill | 502 | yesterday | Apache-2.0 | A | 55 | Claude Code, Codex |