Home
cd ../playbooks
Developer ToolsIntermediate

Agent Design Philosophy

A mental model for designing AI agents in any domain — the model already knows how to be an agent, so design is about capabilities, knowledge, and context, added only as far as a Progressive Complexity ladder (basic → planning → subagents → skills) that real usage actually demands.

10 minutes
By shareAI-labSource
#agent-design#ai-agents#architecture#claude-code#subagents#design-philosophy

Most agent-building advice jumps straight to architecture diagrams and tool schemas before answering the one question that actually determines whether the thing works: what 3-5 capabilities does it truly need, and what should it be trusted to figure out on its own?

Who it's for: developers building their first AI agent or subagent, teams over-engineering agent architecture before real usage data exists, anyone designing a Claude Code subagent or custom tool set, product builders scoping an agent for customer service, research, operations, or creative work

Example

"Design an agent for handling support tickets" → A purpose/domain/trust pass before any code, a starting set of 3-5 capabilities (search tickets, read history, draft reply, escalate, close) rather than a dozen speculative ones, knowledge loaded on-demand instead of front-loaded into every turn, and an explicit call to stay at Level 1 (Basic) until real usage actually shows the need for progress tracking or subagents

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add agent-design-philosophy
# Agent Design Philosophy

A mental model for designing AI agents across any domain — customer service, research, operations, creative work, or specialized business processes. The core idea: the model already knows how to be an agent. Your job is to get out of the way.

## The Core Philosophy

An agent is not complex engineering. It's a simple loop that invites the model to act:

```
LOOP:
  Model sees: context + available capabilities
  Model decides: act or respond

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

A compact mental model for agent design built on one core claim: the model already knows how to be an agent, so the code's job is a simple loop — see context and capabilities, decide to act or respond, execute and continue. Design work is really about three elements: capabilities (start with 3-5 atomic actions, expand only on demonstrated need), knowledge (loaded on-demand, never front-loaded into every turn), and context (precious — isolate noisy subtasks, truncate verbose output, protect clarity over completeness).

The Progressive Complexity ladder is the practical guardrail: start at Basic (3-5 capabilities), add Planning only when multi-step tasks lose coherence, add Subagents only when exploration pollutes context, add Skills only when domain expertise is needed but not always. Most agents never need to go past Level 2 — and the anti-patterns table (over-engineering, too many capabilities, rigid workflows, front-loaded knowledge, micromanagement) names exactly the mistakes that come from skipping the ladder and building for imagined future needs instead of what real usage has actually shown.


Quick Start

Step 1: Create a Project Folder

mkdir agent-design && cd agent-design

Step 2: Download the Template

Click Download above, then:

mv ~/Downloads/CLAUDE.md ./

Step 3: Scope Your Agent

claude

Describe the agent or subagent you want to build — its purpose and domain — and ask Claude to work through the Agent Design Thinking questions (purpose, domain, capabilities, knowledge, trust) before writing any implementation.


Tips & Best Practices

  • Resist writing a step-by-step script for a new agent before writing its capability list — script first and you've already over-constrained what the model could have reasoned through on its own.
  • If a subagent keeps failing on the same missing action, that's the signal to add a capability — not to write it a longer, more detailed prompt trying to compensate for the gap.
  • When context is getting cluttered with exploration or research noise, that's the Progressive Complexity signal to split the noisy subtask into a subagent, not to keep adding truncation rules to the main thread.

Limitations

  • A design philosophy, not a scaffolding tool — it hands you the questions and defaults to apply before writing code, not the code itself.
  • Genuinely regulated or safety-critical domains (financial transactions, medical decisions) often need more explicit workflow constraints than "trust the model" — treat this as the default starting posture, not a rule that overrides domain-specific compliance needs.
  • Complements, rather than replaces, an implementation-focused agent-building guide — this is the mental model for what to build and why; the concrete how is a separate concern.

$Related Playbooks

Developer Tools

Agent Prompt Architect

A compact seven-field skeleton (Role, Goal, Inputs, Constraints, Process, Output, Verification, Fallback) and a fast refinement loop for turning vague intent into a prompt an agent can execute reliably every time.

5 minutes
Beginner
Developer Tools

Agent SDK App Builder

Scaffold new Claude Agent SDK applications in TypeScript or Python, and verify existing ones against official SDK patterns before you ship.

10 minutes
Intermediate
Developer Tools

Brandkit Generator: Premium Identity Board Creator

An image-direction rule set that produces a complete brand-guidelines board in one image: logo concept, color system, typography, and applications, grounded in brand strategy instead of random logo generation

5 minutes
Beginner
Developer Tools

Brutalist UI Skill: Industrial & Tactical Interface Design

A design language that forces Claude to build raw, mechanical interfaces — Swiss industrial print or CRT terminal telemetry, with rigid grids and zero rounded corners

5 minutes
Intermediate
Developer Tools

Programmatic Screen Capture

Capture screenshots programmatically on macOS — find window IDs, control application windows via AppleScript, and capture specific windows for documentation and visual workflows.

10 minutes
Intermediate
Developer Tools

Continue Claude Work

Recover actionable context from local .claude session artifacts and continue interrupted work — without running claude --resume — by inspecting history first.

10 minutes
Intermediate
Developer Tools

AI Agent Builder

Build AI agents with tools, memory, and multi-step reasoning - ChatGPT, Claude, Gemini integration patterns

10 minutes
Advanced
Developer Tools

Browser Automation Assistant

Automate web browser interactions, scraping, testing, and workflow automation with Puppeteer/Playwright

10 minutes
Advanced
Developer Tools

Composio SDK with Claude Code: Connect 250+ APIs in Minutes

Connect Claude Code to 250+ APIs using Composio SDK. Build AI agents that send emails, create GitHub issues, and post to Slack — not just generate text.

15 minutes
Advanced
Developer Tools

Auth & Authorization Patterns

A battle-tested checklist for implementing authentication and authorization correctly — password hashing, short-lived JWTs with refresh tokens, OAuth2 Authorization Code + PKCE, the four token claims to always validate, RBAC/ABAC at the service layer, and session-fixation and cookie-flag defenses, each with the why behind it.

5 minutes
Intermediate
Developer Tools

Android Restore Credentials

Implement Android's Restore Credentials feature with androidx.credentials — the two-tier background/foreground restoration architecture, the createCredential fallback for devices without end-to-end encryption, sign-in and deletion flows with real Kotlin code, and the backend guidelines a client-side implementation must hand off to the developer, not implement itself.

10 minutes
Intermediate
Developer Tools

Autonomous Skill Optimizer

Evaluate and iteratively improve SKILL.md files with a research-grounded 9-dimension rubric and a critical insight most self-improvement loops miss: absolute LLM-judge scores are too noisy (±8 points on unchanged text) for keep/revert decisions — only a same-judge, same-call paired comparison between two versions cancels that noise out reliably.

15 minutes
Advanced

Browse all Developer Tools playbooks →