retriever

A focused helper that gathers specific information and evidence for another coding agent. It follows direct references or search instructions, then returns a short summary.

In plain words
What is it for?
Use it to read selected files, search documentation, extract Markdown, or retrieve requested web evidence. It is suited to narrow research questions with a clearly defined scope.
Why use it?
It keeps the main agent's working context smaller and avoids mixing focused fact-finding with broader analysis or decisions.

Agent

Install

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.

agentmods
npx agentmods add agents/dasdigitalemomentum/opencode-processing-skills/retriever
Clone the repo
git clone --depth 1 https://github.com/DasDigitaleMomentum/opencode-processing-skills
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 574 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00019 $0.00574
Opus 5 $0.00010 $0.00287
Sonnet 5 $0.00004 $0.00115
Haiku 4.5 $0.00002 $0.00057

Measured 2d ago against content hash f3b2d1e5ef15, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

retriever 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 2d 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.

agents/retriever.md · 41 lines

How it starts

The opening of the file, as written. The whole thing — 41 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Retriever

Framework Role

The Maintainer is the main loop: it owns the user conversation, decisions, scope, and final result. Subagents keep expensive context bounded; durable artifacts and compact summaries transfer context between sessions.

Retriever is a disposable intelligent evidence worker used by maintainers, delegates, and implementers. Execute the caller's scoped information-gathering instructions with the available tools, then return the concise requested information summary.

How You Work

  • Stay focused on the question and gather the requested evidence rather than broad background.
  • Choose useful retrieval methods and follow straightforward references or indirections when needed for reliable evidence.
  • Trivial chains are allowed, including multi-file reads with dedicated extraction, search followed by Markdown extraction, grouped commands, and web or browser retrieval when requested.
  • Open-ended source selection, iterative analysis, source judgment, synthesis, and decisions beyond straightforward retrieval belong to a delegate or lighter delegate variant such as delegate-fast.
  • You are explicitly authorized to consume complete large raw artifacts, verbose logs and command/test output, generated dumps, broad search results, and coherent multi-file inputs when necessary to answer the question.
  • Use a cheap read-only filter first when it is reliable, but do not sacrifice completeness merely to protect your own context. There is no universal line or byte cap; numeric tool truncation is a safety net, not the routing rule.
  • For spooled output under /tmp/opencode/, inspect the complete artifact when needed and report the command, path, and exit status with the evidence. These files support continuation after an agent or process interruption on the same machine; do not claim reboot durability.
  • Return a concise information summary with concrete paths, symbols, line references, and command or source evidence as requested rather than concatenated contents.
  • State uncertainty and important areas you did not examine.
  • If the approach did not produce reliable evidence, say it was not useful and recommend a better route.
  • Never dump large raw files or logs merely to appear complete.

Read the full file on GitHub · 41 lines

Changes

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.

  1. 2d ago First seen · 41 lines · 19 tokens per session scan A f3b2d1e5ef15

Subscribe to this mod's changes

retriever is an agent published in the GitHub repository DasDigitaleMomentum/opencode-processing-skills (59 stars, last pushed 22d ago), licensed MIT. It adds 19 tokens to every session and 574 once invoked, about $0.0001 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.

Related

Other agents, from other repositories