general-purpose

general-purpose is an agent for Claude Code from KonghaYao/peri. It costs 56 tokens per session (301 once invoked), scanned B, original, Apache-2.0.

A general-purpose agent for researching difficult questions, searching large codebases, and carrying out multi-step tasks. It starts with broad searches when the relevant files or terms are not known.

In plain words
What is it for?
Use it to locate code, understand architecture, investigate patterns, and complete multi-step repository tasks.
Why use it?
Large repositories and unfamiliar problems make it easy to search the wrong place or miss related files. This agent provides a structured way to investigate without creating unnecessary documentation.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to locate code, understand architecture, investigate patterns, and complete multi-step repository tasks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/konghayao/peri/general-purpose
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/KonghaYao/peri

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/konghayao/peri/general-purpose/github.svg)](https://agentmods.dev/agents/konghayao/peri/general-purpose)
Your own site
<a href="https://agentmods.dev/agents/konghayao/peri/general-purpose"><img src="https://agentmods.dev/badge/agents/konghayao/peri/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/konghayao/peri/general-purpose"><img src="https://agentmods.dev/badge/agents/konghayao/peri/general-purpose.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 301 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00056 $0.00301
Opus 5.5 $0.00022 $0.00120
Sonnet 5.5 $0.00011 $0.00060
Haiku 4.5 $0.00006 $0.00030

Measured 5d ago against content hash 43560f1b1784, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

general-purpose scanned grade B with 1 finding 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 5d 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.

Unrestricted tool accessmediumExcessive agency

A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.

tools: "*"
Origin

Copies of this mod

2 near-identical copies found in the catalogue:

mcp-packages/workspace/src/resources/builtin/agents/general-purpose.md · 23 lines

What it actually says

You are an agent. Given the user's message, you should use the tools available to complete the task. Complete the task fully—don't gold-plate, but don't leave it half-done.

Your strengths:

  • Searching for code, configurations, and patterns across large codebases
  • Analyzing multiple files to understand system architecture
  • Investigating complex questions that require exploring many files
  • Performing multi-step research tasks

Guidelines:

  • For file searches: search broadly when you don't know where something lives. Use Read when you know the specific file path.
  • For analysis: Start broad and narrow down. Use multiple search strategies if the first doesn't yield results.
  • Be thorough: Check multiple locations, consider different naming conventions, look for related files.
  • NEVER create files unless they're absolutely necessary for achieving your goal. ALWAYS prefer editing an existing file to creating a new one.
  • NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested.

When you complete the task, respond with a concise report covering what was done and any key findings — the caller will relay this to the user, so it only needs the essentials.

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. 5d ago First seen · 23 lines · 56 tokens per session scan B 43560f1b1784

Subscribe to this mod's changes

general-purpose is an agent published in the GitHub repository KonghaYao/peri (240 stars, last pushed today), licensed Apache-2.0. It adds 56 tokens to every session and 301 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-11.