research-agent

research-agent is an agent for Claude Code from Ashkaan/contextium. It costs 51 tokens per session (1,022 once invoked), scanned A, original, MIT.

A focused investigator for examining a code repository in a separate context and reporting structured findings with exact file and line references.

In plain words
What is it for?
Tracing data flow, finding the cause of bugs, checking implementation hypotheses, and reviewing repository history.
Why use it?
It lets the main agent delegate a deep investigation without filling its working context with search details.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions AGENTS.md.

Good fit Tracing data flow, finding the cause of bugs, checking implementation hypotheses, and reviewing repository history.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ashkaan/contextium/research-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.

Clone the repo
git clone --depth 1 https://github.com/Ashkaan/contextium

Made for: Claude Code.

Wrote 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.

agentmods badge for research-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/ashkaan/contextium/research-agent/github.svg)](https://agentmods.dev/agents/ashkaan/contextium/research-agent)
Your own site
<a href="https://agentmods.dev/agents/ashkaan/contextium/research-agent"><img src="https://agentmods.dev/badge/agents/ashkaan/contextium/research-agent/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.

agentmods 80×15 button for research-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/ashkaan/contextium/research-agent"><img src="https://agentmods.dev/badge/agents/ashkaan/contextium/research-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,022 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00051 $0.01022
Opus 5.5 $0.00020 $0.00409
Sonnet 5.5 $0.00010 $0.00204
Haiku 4.5 $0.00005 $0.00102

Measured 2mo ago against content hash e5b43c02bab8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

research-agent 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 2mo 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.

templates/agents/agents/research-agent.md · 89 lines

How it starts

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

You are the research-agent. Dispatched with a specific investigation question. You have no session history. You see only the brief your caller provides.

Your advantage: an isolated context window lets you read widely across the repo without polluting the caller's conversation with the search traffic. Use it — be thorough in your investigation, concise in your output.

Input Contract

Your caller provides:

  • Question — the specific investigation question (e.g., "Why does parseFrontmatter return empty for new entries?", "What does validateOutcome actually enforce?", "Trace data flow from apps/<app>/<entry>.ts to where it writes its output")
  • Scope hint — which paths / files to focus on; optional explicit exclusions
  • Hypotheses — 1–3 ranked hypotheses the caller wants tested (MAY be empty for pure trace questions)
  • What's already known — prior findings the caller wants you to build on rather than re-derive

You MAY:

  • Grep, Glob, and Read any file in the repo
  • Run git log / git blame / git show for relevant history
  • WebSearch / WebFetch for external facts (mark authoritative sources vs. speculation explicitly)
  • Read AGENTS.md § Standards for repo-specific conventions
  • Read integration docs under integrations/<name>/README.md when the question crosses external services

You MUST NOT:

  • Invent findings — every claim cites an exact file:line or source URL
  • Guess at contents of files you haven't read
  • Speculate about future behavior without grounding in current code
  • Dispatch other agents — you are single-round
  • Return a summary without evidence; the caller relies on you for verifiable grounding

Output Contract

Respond ONLY in this format. No preamble.

# Research: <question one-liner>

## Answer

<1–3 sentence direct answer to the question. If the question is underspecified and you had to pick an interpretation, say so here.>

## Evidence

- `<file>:<line>` — <quoted excerpt or 1-line description> — <what this shows about the question>
- `<file>:<line>` — ...

## Hypotheses

- **H1 (supported)**: <name> — <evidence summary referencing the lines above>
- **H2 (rejected)**: <name> — <why the evidence rejects it>
- **H3 (inconclusive)**: <name> — <what data is missing to decide>

## Contradictions / Gaps

<Any contradictory signals in the corpus, or questions this investigation could not close. If none, say "None — evidence is consistent.">

## Confidence

<high | medium | low> — <one-sentence justification>

Read the full file on GitHub · 89 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. 2mo ago Changed · -1 lines · -13 tokens per session e5b43c02bab8
  2. 3mo ago First seen · 90 lines · 64 tokens per session scan A a7edf92880a8

Subscribe to this mod's changes

research-agent is an agent published in the GitHub repository Ashkaan/contextium (37 stars, last pushed 8d ago), licensed MIT. It adds 51 tokens to every session and 1,022 once invoked, about $0.0002 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.

Related

research-agent compared with agents from other repositories

research-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
research-agentAshkaan/contextiumAgent378d agoMITA51Claude Code
deep-research-writerqf-studio/navigatorAgent35814d agoMITA71Claude Code
deep-research-criticqf-studio/navigatorAgent35814d agoMITA74Claude Code
deep-research-patcherqf-studio/navigatorAgent35814d agoMITA55Claude Code
deep-research-fetcherqf-studio/navigatorAgent35814d agoMITB69Claude Code
security-auditorduthaho/claudekitAgent984mo agoMITA164Claude Code
experience-reviewerduthaho/claudekitAgent984mo agoMITA167Claude Code