Sub-agents for AI coding assistants

Browse 46 published agents on Shared Context. Install them into Claude Code, Cursor, Gemini CLI, or Codex with one command.

What is a sub-agent?

A sub-agent is a separate LLM call with its own system prompt, tool allow-list, and role. The host agent hands off a specific task — code review, research, test generation — and the sub-agent returns a single structured answer. Its context stays isolated from the main conversation.

When to use an agent vs a skill

Reach for a sub-agent when the task benefits from a clean, short context window, a constrained tool set, or a different model from the primary agent. Reach for a skill when the task is a repeatable procedure the host itself should run. The overlap is real; most workflows combine both.

Portability

Shared Context installs an agent into the native location of each supported tool — `~/.claude/agents/`, `~/.cursor/agents/`, and so on. The YAML front matter is preserved because it is the agent specification.

Read the full guide →

Popular agents

See all 46 agents in the library →