agent-patterns

agent-patterns is an agent for Claude Code from duc01226/EasyPlatform. It costs 0 tokens per session (4,085 once invoked), scanned A, original, MIT.

A guide to patterns for choosing and using different software-development agents, with examples for searches, relationships, and other workflows.

In plain words
What is it for?
Use it when deciding how to delegate codebase exploration or combine agents in a larger development workflow. Categories: agents-meta, education.
Why use it?
It helps you select a suitable agent and structure its instructions for a particular task.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions subagents; mentions AGENTS.md.

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/duc01226/easyplatform/agent-patterns
Clone the repo
git clone --depth 1 https://github.com/duc01226/EasyPlatform

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 agent-patterns

README.md
[![agentmods](https://agentmods.dev/badge/agents/duc01226/easyplatform/agent-patterns.svg)](https://agentmods.dev/agents/duc01226/easyplatform/agent-patterns)
Your own site
<a href="https://agentmods.dev/agents/duc01226/easyplatform/agent-patterns"><img src="https://agentmods.dev/badge/agents/duc01226/easyplatform/agent-patterns.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,085 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.1 $0.00000 $0.04085
Opus 5 $0.00000 $0.02042
Sonnet 5 $0.00000 $0.00817
Haiku 4.5 $0.00000 $0.00409

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

Security

Grade A, and why

agent-patterns 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/docs/agents/agent-patterns.md · 692 lines

How it starts

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

Agent Patterns

When and how to use each agent type effectively

Overview

This guide provides detailed patterns for using each agent type, including decision trees, real-world examples, and composition strategies for complex workflows.


Exploration Agents

Scout Agent

Purpose: Fast file discovery using pattern matching.

Best For:

  • Finding files by name patterns
  • Locating implementations before changes
  • Understanding file distribution across directories

Invocation:

Task({
    subagent_type: 'scout',
    prompt: 'Find all files related to employee validation in ServiceB',
    description: 'Find employee validation files'
});

Pattern: Targeted Search

// Specific file type in specific service
Task({
    subagent_type: 'scout',
    prompt: 'Find all *CommandHandler.cs files in ServiceA/UseCaseCommands/',
    description: 'Find ServiceA command handlers'
});

Pattern: Relationship Discovery

// Find related files across boundaries
Task({
    subagent_type: 'scout',
    prompt: 'Find all files that reference EmployeeEntity - include consumers, producers, DTOs, and tests',
    description: 'Find EmployeeEntity dependencies'
});

When to Use Scout vs Direct Tools:

Need Use Scout Use Direct Tools
Find by name pattern Multiple directories Single known directory
Find by content Cross-service Known file
Understand structure Yes No
Quick lookup No Yes

Explore Agent

Purpose: Thorough codebase exploration with context.

Best For:

  • Understanding how features work
  • Mapping service boundaries
  • Answering architectural questions

Invocation:

Task({
    subagent_type: 'Explore',
    prompt: 'How does the leave request approval workflow work? Trace from API endpoint to final state change.',
    description: 'Explore leave approval workflow'
});

Read the full file on GitHub · 692 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 · 692 lines · 0 tokens per session scan A b21c67c86734

Subscribe to this mod's changes

agent-patterns is an agent published in the GitHub repository duc01226/EasyPlatform (9 stars, last pushed 16d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,085 tokens. 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-09-03.