general-purpose

general-purpose is an agent for Claude Code from shahidshabbir-se/my-pi-setup. It costs 56 tokens per session (498 once invoked), scanned A, a copy of general-purpose, MIT.

A general-purpose coding agent for researching difficult questions, searching large codebases, and carrying out multi-step tasks. It searches broadly when the location of relevant code is unknown and reads specific files when the path is known.

In plain words
What is it for?
Use it to investigate complex repository questions, find code across many directories, analyse architecture, or complete a multi-step coding task.
Why use it?
It reduces the effort of finding related code and understanding unfamiliar repositories. It also avoids creating documentation files unless they are necessary for the task.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions subagents.

Good fit Use it to investigate complex repository questions, find code across many directories, analyse architecture, or complete a multi-step coding task.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/shahidshabbir-se/my-pi-setup/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/shahidshabbir-se/my-pi-setup

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/shahidshabbir-se/my-pi-setup/general-purpose/github.svg)](https://agentmods.dev/agents/shahidshabbir-se/my-pi-setup/general-purpose)
Your own site
<a href="https://agentmods.dev/agents/shahidshabbir-se/my-pi-setup/general-purpose"><img src="https://agentmods.dev/badge/agents/shahidshabbir-se/my-pi-setup/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/shahidshabbir-se/my-pi-setup/general-purpose"><img src="https://agentmods.dev/badge/agents/shahidshabbir-se/my-pi-setup/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 498 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 89% 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.00056 $0.00498
Opus 5.5 $0.00022 $0.00199
Sonnet 5.5 $0.00011 $0.00100
Haiku 4.5 $0.00006 $0.00050

Measured 2d ago against content hash 26c6612fdb0b, 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 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.

Origin

This is a copy

89% identical to general-purpose — 20 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.

agent/agents/general-purpose.md · 29 lines

What it actually says

You are an agent for Pi, an agentic coding CLI. 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. 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.

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:

  • Prefer PI Lens for code intelligence. Read pi-lens-lsp-navigation for typed navigation and diagnostics and pi-lens-ast-grep for structural search/replacement. Discover skills by name through the inherited catalog or configured skill locations, including installed packages; keep their procedures authoritative.
  • Use Lens discovery and targeted body reads to understand code before editing. After changes, actively check changed paths with lens_diagnostics (source: "lsp", scope: "paths"), then run the task's tests/build. Cached or unavailable diagnostics are not evidence of clean code.
  • Use mutation-capable Lens tools only within the assigned implementation scope. For filenames use find; for literal text use grep.
  • 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.
  • You are already the dedicated agent for this task. Do the work directly — do not re-delegate your entire assignment to another single subagent.
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 Changed · +1 lines 26c6612fdb0b
  2. 5d ago Changed · +2 lines c789e6377bb1
  3. 19d ago First seen · 26 lines · 56 tokens per session scan A 3f5b4e97dded

Subscribe to this mod's changes

general-purpose is an agent published in the GitHub repository shahidshabbir-se/my-pi-setup (2 stars, last pushed 2d ago), licensed MIT. It adds 56 tokens to every session and 498 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 89% identical to general-purpose, differing in 20 lines, and is treated as a copy.

Related

Other agents, from other repositories

test-engineer

Test engineer agent for bug reproduction and verification. Spawn this agent to reproduce a user-reported bug end-to-end or to verify that a fix resolves the issue. It reads code and docs to understand the bug, then runs the CLI in headless or interactive mode to confirm the behavior. It can write test scripts as a…

QwenLM/qwen-code · 119 tokens

go-expert

Go concurrency, error handling, stdlib patterns, Chi/Echo web frameworks specialist. Use when writing Go code, designing concurrent systems, or building Go web services. Trigger phrases: Go, Golang, goroutine, channel, Chi, Echo, stdlib, context, error handling, interface, module, go test.

travisjneuman/.claude · 69 tokens

product-analytics-specialist

PostHog, Mixpanel, Amplitude event tracking, funnels, cohorts, and A/B testing specialist. Use when implementing analytics, designing event schemas, or setting up experimentation. Trigger phrases: analytics, tracking, PostHog, Mixpanel, Amplitude, Segment, events, funnel, cohort, A/B test, feature flag, conversion…

travisjneuman/.claude · 80 tokens

architecture-analyst

Analyzes system architecture, identifies patterns/anti-patterns, and provides strategic recommendations. Use for architectural reviews, refactoring planning, or system design decisions.

travisjneuman/.claude · 36 tokens

monetization-expert

Expert in revenue models, pricing strategy, and business monetization.

travisjneuman/.claude · 18 tokens

devops-engineer

Handles deployment configs, CI/CD pipelines, Docker, infrastructure, and cloud operations. Use for deployment reviews and infrastructure tasks.

faizkhairi/claude-code-blueprint · 29 tokens