The primary purpose of agents is to save token space in your main context by offloading work and only retaining the relevant output in the context rather than the entire conversation history. They also allow for parallelization and choosing specific models for specific tasks, but the biggest thing is the context encapsulation. The key things to know about agents: - Agents only receive the prompt that the outer context chooses to give them. They do NOT receive the full conversation prior to the agent being called. This means their responsibility needs to be well-defined and the main context should have a clear understanding of what to give them. This is especially relevant for agents that you want to write code for you, as code often requires a lot of context to write correctly. I personally only have agents write very simple code or make sure that they can get all the context they need by passing in pre-prepared plans in markdown files. - The main context only sees the last message of the agent in its context stream. This is usually the final summary report from its task, but sometimes it can do things like update a TodoWrite as a final step and this messes up what the outer context sees. My recommendations, based on my experience working with them: - Agents are _great_ for data gathering and consolidation (i.e. read-only tasks). I have a standard agent I use any time I want to gather context for a complicated task and this has helped a lot with removing all the codebase exploration from the working context of the main Claude. - Agents are also great for wrapping tool calls that generate a lot of output, like building and unit tests. I have a standard build-test-engineer I use whose only job is run build/test, then consolidate the output to just what's relevant to the main Claude. I've found this has substantially improved performance during extended debugging of its own changes, as it keeps the actual work closer in context so that it doesn't get stuck trying to hack around bugs without a good memory of why it's trying to do that in the first place. - To get the best results, use slash commands to automate requesting it to explicitly use specific agents. It's not always great on deciding to use agents on its own. - I also include some explicit instructions for agent use cases in the `CLAUDE.md`. So far I've gotten Claude to reliably use `build-test-engineer` and I also have it using `batch-editor` reasonably often (this is my agent for applying simple edits across a bunch of files, like for refactoring/cleanup tasks.) Answer from Jarlyk on reddit.com
๐ŸŒ
Anthropic
anthropic.com โ€บ engineering โ€บ building-agents-with-the-claude-agent-sdk
Building agents with the Claude Agent SDK
September 29, 2025 - In this post, we'll highlight why we built the Claude Agent SDK, how to build your own agents with it, and share the best practices that have emerged from our teamโ€™s own deployments. The key design principle behind Claude Code is that Claude needs the same tools that programmers use every day.
๐ŸŒ
Claude
code.claude.com โ€บ docs โ€บ en โ€บ sub-agents
Subagents - Claude Code Docs
Plugins can provide custom subagents that integrate seamlessly with Claude Code. Plugin agents work identically to user-defined agents and appear in the /agents interface. Plugin agent locations: plugins include agents in their agents/ directory (or custom paths specified in the plugin manifest).
Discussions

Claude code /agents mode - could someone explain how it works and what are your experiences?
The primary purpose of agents is to save token space in your main context by offloading work and only retaining the relevant output in the context rather than the entire conversation history. They also allow for parallelization and choosing specific models for specific tasks, but the biggest thing is the context encapsulation. The key things to know about agents: - Agents only receive the prompt that the outer context chooses to give them. They do NOT receive the full conversation prior to the agent being called. This means their responsibility needs to be well-defined and the main context should have a clear understanding of what to give them. This is especially relevant for agents that you want to write code for you, as code often requires a lot of context to write correctly. I personally only have agents write very simple code or make sure that they can get all the context they need by passing in pre-prepared plans in markdown files. - The main context only sees the last message of the agent in its context stream. This is usually the final summary report from its task, but sometimes it can do things like update a TodoWrite as a final step and this messes up what the outer context sees. My recommendations, based on my experience working with them: - Agents are _great_ for data gathering and consolidation (i.e. read-only tasks). I have a standard agent I use any time I want to gather context for a complicated task and this has helped a lot with removing all the codebase exploration from the working context of the main Claude. - Agents are also great for wrapping tool calls that generate a lot of output, like building and unit tests. I have a standard build-test-engineer I use whose only job is run build/test, then consolidate the output to just what's relevant to the main Claude. I've found this has substantially improved performance during extended debugging of its own changes, as it keeps the actual work closer in context so that it doesn't get stuck trying to hack around bugs without a good memory of why it's trying to do that in the first place. - To get the best results, use slash commands to automate requesting it to explicitly use specific agents. It's not always great on deciding to use agents on its own. - I also include some explicit instructions for agent use cases in the `CLAUDE.md`. So far I've gotten Claude to reliably use `build-test-engineer` and I also have it using `batch-editor` reasonably often (this is my agent for applying simple edits across a bunch of files, like for refactoring/cleanup tasks.) More on reddit.com
๐ŸŒ r/ClaudeCode
8
8
August 19, 2025
Claude Code Agents Directory
Mobile on those modals...... Have claude do a responsiveness pass on this code. Mobile and desktop at least More on reddit.com
๐ŸŒ r/ClaudeAI
7
4
July 29, 2025
Claude Code Subagents Collection: 35 Specialized AI Agents.
Sweet thanks for sharing! I'm still figuring out how we will implement sub agents - but great to have this resource handy. We currently use use differnt AI's to check code (ie CodeRabbit checks Claude Code's work.) but wondering if there is a role for sub agents in the workflow. In either case thanks for sharing this! More on reddit.com
๐ŸŒ r/ClaudeAI
14
43
July 29, 2025
Claude Code now supports Custom Agents
Setting up a team of 5 at the moment: โ”‚ bug-detective-tdd โ”‚ code-review-architect โ”‚ sprint-architect-planner โ”‚ system-architect-tdd โ”‚ tdd-advocate The wizard is nice, allows you to specify a description which then auto generates a system prompt and description, or you can manually set these. Choose which tools you want to make available for the agent and the colour of the agent. The only thing I think this is missing is the ability to override the model. For example, with a model selection you could've had Opus as an architect agent and Sonnet for implementation related agents. More on reddit.com
๐ŸŒ r/ClaudeAI
204
471
July 24, 2025
๐ŸŒ
GitHub
github.com โ€บ hesreallyhim โ€บ a-list-of-claude-code-agents
GitHub - hesreallyhim/a-list-of-claude-code-agents: A list of Claude Code Sub-Agents submitted by the community.
EquilateralAgents Open Core by HappyHippo.ai 22 self-learning AI agents with memory and community standards contribution. Features agent memory (tracks last 100 executions), pattern recognition, and workflow optimization for security, quality, deployment, and compliance. Claude Code Subagents Collection by Seth Hobson.
Starred by 1.1K users
Forked by 106 users
๐ŸŒ
Claude
claude.com โ€บ solutions โ€บ agents
AI agents | Claude
1 month ago - Claude Code is an agentic tool where developers work with Claude directly from their terminalโ€”delegating tasks from code migrations to bug fixes.
๐ŸŒ
Subagents
subagents.app โ€บ agents
Claude Code Sub Agents Directory - AI-Powered Development Tools
Browse and discover powerful Claude Code sub agents. Specialized AI assistants for code review, debugging, testing, and development workflow automation.
๐ŸŒ
Reddit
reddit.com โ€บ r/claudecode โ€บ claude code /agents mode - could someone explain how it works and what are your experiences?
r/ClaudeCode on Reddit: Claude code /agents mode - could someone explain how it works and what are your experiences?
August 19, 2025 -

Hi,
could someone explain how the /agents mode in Claude Code actually works? Iโ€™m wondering if itโ€™s more of a coding sandbox step-by-step, or closer to autonomous agents handling tasks. What are your experiences with using this mode?

Top answer
1 of 2
6
The primary purpose of agents is to save token space in your main context by offloading work and only retaining the relevant output in the context rather than the entire conversation history. They also allow for parallelization and choosing specific models for specific tasks, but the biggest thing is the context encapsulation. The key things to know about agents: - Agents only receive the prompt that the outer context chooses to give them. They do NOT receive the full conversation prior to the agent being called. This means their responsibility needs to be well-defined and the main context should have a clear understanding of what to give them. This is especially relevant for agents that you want to write code for you, as code often requires a lot of context to write correctly. I personally only have agents write very simple code or make sure that they can get all the context they need by passing in pre-prepared plans in markdown files. - The main context only sees the last message of the agent in its context stream. This is usually the final summary report from its task, but sometimes it can do things like update a TodoWrite as a final step and this messes up what the outer context sees. My recommendations, based on my experience working with them: - Agents are _great_ for data gathering and consolidation (i.e. read-only tasks). I have a standard agent I use any time I want to gather context for a complicated task and this has helped a lot with removing all the codebase exploration from the working context of the main Claude. - Agents are also great for wrapping tool calls that generate a lot of output, like building and unit tests. I have a standard build-test-engineer I use whose only job is run build/test, then consolidate the output to just what's relevant to the main Claude. I've found this has substantially improved performance during extended debugging of its own changes, as it keeps the actual work closer in context so that it doesn't get stuck trying to hack around bugs without a good memory of why it's trying to do that in the first place. - To get the best results, use slash commands to automate requesting it to explicitly use specific agents. It's not always great on deciding to use agents on its own. - I also include some explicit instructions for agent use cases in the `CLAUDE.md`. So far I've gotten Claude to reliably use `build-test-engineer` and I also have it using `batch-editor` reasonably often (this is my agent for applying simple edits across a bunch of files, like for refactoring/cleanup tasks.)
2 of 2
1
Use /agents Use claude recommended method to create an agent Then @agent and give it a task It basically spins up a new instance in background and works through the task, fresh context, orchestrated by claude
๐ŸŒ
Claude Code Agents
subagents.cc
Claude Code Agents
Browse, share, and discover powerful agents for Claude Code.
Find elsewhere
๐ŸŒ
Reddit
reddit.com โ€บ r/claudeai โ€บ claude code agents directory
r/ClaudeAI on Reddit: Claude Code Agents Directory
July 29, 2025 -

Anthropic just announced the /agents command for Claude Code so I made https://www.subagents.cc/ to help organize and distribute all of the agent files we'll be producing! This should make it easy to upload and download all the best agent files that people come up with. Please check it out and let me know if there is anything I can make easier. Also, consider uploading any agent files you've already made!

๐ŸŒ
Anthropic
anthropic.com โ€บ engineering โ€บ effective-harnesses-for-long-running-agents
Effective harnesses for long-running agents
1 month ago - For example, Claude canโ€™t see browser-native alert modals through the Puppeteer MCP, and features relying on these modals tended to be buggier as a result. With all of the above in place, every coding agent is prompted to run through a series of steps to get its bearings, some quite basic but still helpful: Run pwd to see the directory youโ€™re working in.
๐ŸŒ
Claudecodeagents
claudecodeagents.com
Claude Code Agents
Directory of Claude Code agents and tools
๐ŸŒ
GitHub
github.com โ€บ wshobson โ€บ agents
GitHub - wshobson/agents: Intelligent automation and multi-agent orchestration for Claude Code
2 weeks ago - claude-agents/ โ”œโ”€โ”€ .claude-plugin/ โ”‚ โ””โ”€โ”€ marketplace.json # 67 plugins โ”œโ”€โ”€ plugins/ โ”‚ โ”œโ”€โ”€ python-development/ โ”‚ โ”‚ โ”œโ”€โ”€ agents/ # 3 Python experts โ”‚ โ”‚ โ”œโ”€โ”€ commands/ # Scaffolding tool โ”‚ โ”‚ โ””โ”€โ”€ ...
Starred by 23.2K users
Forked by 2.6K users
Languages ย  Python 68.0% | Shell 32.0%
๐ŸŒ
Reddit
reddit.com โ€บ r/claudeai โ€บ claude code subagents collection: 35 specialized ai agents.
r/ClaudeAI on Reddit: Claude Code Subagents Collection: 35 Specialized AI Agents.
July 29, 2025 -

Ready to transform Claude Code from a smart generalist into a powerhouse team of AI specialists? ๐Ÿš€

I'm thrilled to share - Claude Code Subagents, a collection of 35 specialized AI agents designed to supercharge your development workflows.

Instead of a single AI, imagine an orchestrated team of experts automatically delegated to tasks based on context. This collection extends Claude's capabilities across the entire software development lifecycle.

Key Features:
๐Ÿค– Intelligent Auto-Delegation: Claude automatically selects the right agent for the job.
๐Ÿ”ง Deep Domain Expertise: 35 agents specializing in everything from backend-architecture and security-auditing to react-pro and devops-incident-responder.
๐Ÿ”„ Seamless Orchestration: Agents collaborate on complex tasks, like building a feature from architecture design to security review and testing.
๐Ÿ“Š Built-in Quality Gates: Leverage agents like code-reviewer and qa-expert to ensure quality and robustness.

Whether you're designing a RESTful API, optimizing a database, debugging a production incident, or refactoring legacy code, thereโ€™s a specialist agent ready to help.

Check out the full collection of 35 agents on GitHub! I'd appreciate a star โญ if you find it useful, and contributions are always welcome.

GitHub Repo: https://github.com/lst97/claude-code-sub-agents

๐ŸŒ
Claude
claude.ai โ€บ public โ€บ artifacts โ€บ 2b5f610d-a357-498a-b8f6-02a83d7ed1be
AI Agent Tools Directory
A comprehensive guide to tools and services for building AI agents across various domains. LangChain ecosystem (orchestration, memory, chains) Python libraries (Pandas, NumPy, Matplotlib, scikit-learn) ... This directory represents a comprehensive collection of tools and services available ...
๐ŸŒ
Sshh
blog.sshh.io โ€บ p โ€บ how-i-use-every-claude-code-feature
How I Use Every Claude Code Feature - by Shrivu Shankar
November 2, 2025 - The single most important file in your codebase for using Claude Code effectively is the root CLAUDE.md. This file is the agentโ€™s โ€œconstitution,โ€ its primary source of truth for how your specific repository works.
๐ŸŒ
YouTube
youtube.com โ€บ watch
Claude Code just Built me an AI Agent Team (Claude Code + Skills + MCP) - YouTube
Download the FREE โ€œIn AI We Trust Reportโ€ here ๐Ÿ‘‰ https://clickhubspot.com/071bf2 Claude Codeโ€™s too powerful to ignore if you want to use AI to build an AI w...
Published ย  1 week ago
๐ŸŒ
Superprompt
superprompt.com โ€บ blog โ€บ best-claude-code-agents-and-use-cases
Best Claude Code Agents and Their Use Cases: Complete Guide for Developers - Superprompt.com
July 29, 2025 - Create directories for user-level (~/.claude/agents/) and project-level (.claude/agents/) subagents. ... Choose from multiple repositories with specialized agent collections. # Complete automation suite (35 agents) git clone https://github....
๐ŸŒ
Jannesklaas
jannesklaas.github.io โ€บ ai โ€บ 2025 โ€บ 07 โ€บ 20 โ€บ claude-code-agent-design.html
Agent design lessons from Claude Code | Jannesโ€™ Blog
July 20, 2025 - As more agents are built for any and all tasks, it is helpful to learn some lessons from the best. Claude Code is relatively simple. It is a single agent loop, with 14 tools available.
๐ŸŒ
Anthropic
anthropic.com โ€บ engineering โ€บ equipping-agents-for-the-real-world-with-agent-skills
Equipping agents for the real world with Agent Skills
October 16, 2025 - A skill is a directory containing a SKILL.md file that contains organized folders of instructions, scripts, and resources that give agents additional capabilities. To see Skills in action, letโ€™s walk through a real example: one of the skills that powers Claudeโ€™s recently launched document ...