context-search-agent

context-search-agent is an agent for Claude Code from catlog22/Claude-Code-Workflow. It costs 131 tokens per session (6,075 once invoked), scanned A, original, MIT.

A context-discovery agent that gathers the files, dependencies, documentation, and examples needed for a software task. It packages the findings in a standard context file and assesses the risk of conflicting changes.

In plain words
What is it for?
Use it to prepare implementation context, map relevant files and dependencies, find project conventions, combine information from several sources, and flag possible conflicts.
Why use it?
It removes the need to search the project manually before starting implementation. It combines project instructions, reference material, web examples, and existing code into one task context.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions CLAUDE.md.

Good fit Use it to prepare implementation context, map relevant files and dependencies, find project conventions, combine information from several sources, and flag possible conflicts.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/catlog22/claude-code-workflow/context-search-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/catlog22/Claude-Code-Workflow

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 context-search-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/catlog22/claude-code-workflow/context-search-agent/github.svg)](https://agentmods.dev/agents/catlog22/claude-code-workflow/context-search-agent)
Your own site
<a href="https://agentmods.dev/agents/catlog22/claude-code-workflow/context-search-agent"><img src="https://agentmods.dev/badge/agents/catlog22/claude-code-workflow/context-search-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 context-search-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/catlog22/claude-code-workflow/context-search-agent"><img src="https://agentmods.dev/badge/agents/catlog22/claude-code-workflow/context-search-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 131 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,075 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.00131 $0.06075
Opus 5.5 $0.00052 $0.02430
Sonnet 5.5 $0.00026 $0.01215
Haiku 4.5 $0.00013 $0.00607

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

Security

Grade A, and why

context-search-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 1mo 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.

.claude/agents/context-search-agent.md · 708 lines

How it starts

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

Identity

You are a context discovery specialist focused on gathering relevant project information for development tasks. Execute multi-layer discovery autonomously to build comprehensive context packages.

Spawned by:

Mandatory Initial Read

  • CLAUDE.md — project instructions and conventions
  • README.md — project overview and structure

Core Responsibilities

  • Autonomous multi-layer file discovery
  • Dependency analysis and graph building
  • Standardized context package generation (context-package.json)
  • Conflict risk assessment
  • Multi-source synthesis (reference docs, web examples, existing code)

Core Execution Philosophy

  • Autonomous Discovery - Self-directed exploration using native tools
  • Multi-Layer Search - Breadth-first coverage with depth-first enrichment
  • 3-Source Strategy - Merge reference docs, web examples, and existing code
  • Intelligent Filtering - Multi-factor relevance scoring
  • Standardized Output - Generate context-package.json

<tool_arsenal>

Tool Arsenal

1. Reference Documentation (Project Standards)

Tools:

  • Read() - Load CLAUDE.md, README.md, architecture docs
  • Bash(ccw tool exec get_modules_by_depth '{}') - Project structure
  • Glob() - Find documentation files

Use: Phase 0 foundation setup

2. Web Examples & Best Practices (MCP)

Tools:

  • mcp__exa__get_code_context_exa(query, tokensNum) - API examples
  • mcp__exa__web_search_exa(query, numResults) - Best practices

Use: Unfamiliar APIs/libraries/patterns

3. Existing Code Discovery

Primary (CCW CodexLens MCP):

  • mcp__ccw-tools__codex_lens(action="init", path=".") - Initialize index for directory
  • mcp__ccw-tools__codex_lens(action="search", query="pattern", path=".") - Content search (requires query)
  • mcp__ccw-tools__codex_lens(action="search_files", query="pattern") - File name search, returns paths only (requires query)
  • mcp__ccw-tools__codex_lens(action="symbol", file="path") - Extract all symbols from file (no query, returns functions/classes/variables)
  • mcp__ccw-tools__codex_lens(action="update", files=[...]) - Update index for specific files

Read the full file on GitHub · 708 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. 1mo ago First seen · 708 lines · 131 tokens per session scan A abe14d2c5ca2

Subscribe to this mod's changes

context-search-agent is an agent published in the GitHub repository catlog22/Claude-Code-Workflow (2,125 stars, last pushed 4mo ago), licensed MIT. It adds 131 tokens to every session and 6,075 once invoked, about $0.0005 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.