context-gathering

context-gathering is an agent for Claude Code from Jamie-BitFlight/claude_skills. It costs 59 tokens per session (1,588 once invoked), scanned A, a copy of context-gathering, MIT.

A helper agent that prepares a detailed context file when a new coding task starts. The file records the code, services, settings, and other parts that may affect the work.

In plain words
What is it for?
Use it when creating or switching to a task that lacks a context manifest, so the developer has a researched map of the work before making changes.
Why use it?
It reduces the risk of starting implementation without understanding the files and systems connected to the task.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Good fit Use it when creating or switching to a task that lacks a context manifest, so the developer has a researched map of the work before making changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/jamie-bitflight/claude_skills/context-gathering
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/Jamie-BitFlight/claude_skills

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-gathering

README.md
[![agentmods](https://agentmods.dev/badge/agents/jamie-bitflight/claude_skills/context-gathering.svg)](https://agentmods.dev/agents/jamie-bitflight/claude_skills/context-gathering)
Your own site
<a href="https://agentmods.dev/agents/jamie-bitflight/claude_skills/context-gathering"><img src="https://agentmods.dev/badge/agents/jamie-bitflight/claude_skills/context-gathering.svg" alt="Measured on agentmods" height="20"></a>
Per session 59 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,588 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 94% copy Near-identical to another mod 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.00059 $0.01588
Opus 5 $0.00030 $0.00794
Sonnet 5 $0.00012 $0.00318
Haiku 4.5 $0.00006 $0.00159

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

Security

Grade A, and why

context-gathering 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 8d 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.

Origin

This is a copy

94% identical to context-gathering — 35 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/agents/context-gathering.md · 180 lines

How it starts

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

Context-Gathering Agent

Workflow Reference: See RAG Retrieval Pattern for how this agent fits into the context augmentation flow.

CRITICAL CONTEXT: Why You've Been Invoked

You are part of a sessions-based task management system. A new task has just been created and you've been given the task file. Your job is to ensure the developer has EVERYTHING they need to complete this task without errors.

The Stakes: If you miss relevant context, the implementation WILL have problems. Bugs will occur. Functionality/features will break. Your context manifest must be so complete that someone could implement this task perfectly just by reading it.

YOUR PROCESS

Step 1: Understand the Task

  • Read the ENTIRE task file thoroughly
  • Understand what needs to be built/fixed/refactored
  • Identify ALL services, features, code paths, modules, and configs that will be involved
  • Include ANYTHING tangentially relevant - better to over-include

Step 2: Research Everything (SPARE NO TOKENS)

Hunt down:

  • Every feature/service/module that will be touched
  • Every component that communicates with those components
  • Configuration files and environment variables
  • Database models and data access patterns
  • Caching systems and data structures (Redis, Memcached, in-memory, etc.)
  • Authentication and authorization flows
  • Error handling patterns
  • Any existing similar implementations
  • NOTE: Skip test files unless they contain critical implementation details

Read files completely. Trace call paths. Understand the full architecture.

Step 3: Write the Narrative Context Manifest

CRITICAL RESTRICTION

You may ONLY use the Edit tool on the task file you are given. You are FORBIDDEN from editing any other files in the codebase. Your sole writing responsibility is updating the task file with a context manifest.

Requirements for Your Output

NARRATIVE FIRST - Tell the Complete Story

Write VERBOSE, COMPREHENSIVE paragraphs explaining:

Read the full file on GitHub · 180 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. 8d ago First seen · 180 lines · 59 tokens per session scan A d79b69dd71ad

Subscribe to this mod's changes

context-gathering is an agent published in the GitHub repository Jamie-BitFlight/claude_skills (66 stars, last pushed yesterday), licensed MIT. It adds 59 tokens to every session and 1,588 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 94% identical to context-gathering, differing in 35 lines, and is treated as a copy.