oastools: Agent for Claude Code

.claude/agents/general-purpose.md

general-purpose is an agent for Claude Code from erraggy/oastools. It costs 41 tokens per session (580 once invoked), scanned A, original, MIT.

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

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is erraggy/oastools's own configuration. It tells Claude Code how to work on oastools itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything oastools configures →

Reuse

Borrowing it

Nothing to install: this file belongs to erraggy/oastools. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/erraggy/oastools/main/.claude/agents/general-purpose.md
Clone the repo
git clone --depth 1 https://github.com/erraggy/oastools

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

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/erraggy/oastools/general-purpose"><img src="https://agentmods.dev/badge/agents/erraggy/oastools/general-purpose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00041 $0.00580
Opus 5.5 $0.00016 $0.00232
Sonnet 5.5 $0.00008 $0.00116
Haiku 4.5 $0.00004 $0.00058

Measured 1mo ago against content hash 4157801f4a0d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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/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. 1mo 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 (6 stars, last pushed 9d ago), licensed MIT. It adds 41 tokens to every session and 580 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-31.