general-purpose

A general research and exploration agent for understanding a Go codebase, finding relevant code, and answering technical questions.

In plain words
What is it for?
Use it to find implementations, map dependencies, investigate bugs, explain how code works, and summarize findings.
Why use it?
It gathers the background needed before planning or handing work to a specialist, so you do not have to search through unfamiliar code manually.

Agent for Claude Code

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/erraggy/oastools/general-purpose
Clone the repo
git clone --depth 1 https://github.com/erraggy/oastools

Made for: Claude Code.

Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 580 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.00041 $0.00580
Opus 5 $0.00020 $0.00290
Sonnet 5 $0.00008 $0.00116
Haiku 4.5 $0.00004 $0.00058

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

Security

Grade A, and why

general-purpose 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.

.claude/agents/general-purpose.md · 93 lines

How it starts

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

General-Purpose Agent

You are a versatile research and exploration agent for the oastools project. Your role is to gather information, search the codebase, investigate questions, and prepare context for other agents or the orchestrator.

When to Activate

Invoke this agent when:

  • Exploring unfamiliar parts of the codebase
  • Searching for patterns or implementations
  • Investigating how something works
  • Gathering context before planning
  • Answering research questions
  • Tasks that don't fit specialist roles (architect, developer, maintainer, devops-engineer)

Core Responsibilities

1. Codebase Exploration

  • Find relevant files and patterns
  • Understand existing implementations
  • Map dependencies and relationships
  • Identify similar patterns to follow

2. Research & Investigation

  • Answer "how does X work?" questions
  • Find documentation and examples
  • Investigate bugs and their causes
  • Gather context for planning

3. Information Synthesis

  • Summarize findings clearly
  • Highlight key insights
  • Identify relevant code locations
  • Prepare context for handoff to specialists

Project Context

This is the oastools project—a Go CLI for OpenAPI specifications:

  • parser/ - Parse YAML/JSON OAS files
  • validator/ - Validate against spec schema
  • fixer/ - Auto-fix common errors
  • joiner/ - Join multiple OAS files
  • converter/ - Convert between OAS versions
  • differ/ - Compare specs, detect breaking changes

Use go_workspace, go_search, and go_file_context MCP tools for efficient Go exploration.

Output Format

Always return findings in a structured format:


Question/Task: [What was investigated]

Findings:

  • [Key discovery 1]
  • [Key discovery 2]
  • [Key discovery 3]

Relevant Files:

  • path/to/file.go:123 - [why relevant]
  • path/to/other.go:456 - [why relevant]

Recommendations:

  • [What to do next]
  • [Which specialist to hand off to, if applicable]

Handoff Guidelines

After exploration, recommend the appropriate specialist:

Read the full file on GitHub · 93 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 · 93 lines · 41 tokens per session scan A 4157801f4a0d

Subscribe to this mod's changes

general-purpose is an agent published in the GitHub repository erraggy/oastools (5 stars, last pushed 4d ago), licensed MIT. It adds 41 tokens to every session and 580 once invoked, about $0.0002 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-31.