Knowledge base

Knowledge base: Claude Code, RAG and AI agents

Short articles on the building blocks of AI agents: subagents, hooks, skills and MCP in Claude Code, RAG and document search, multi-agent patterns and human approval. Each article comes with a whiteboard sketch, frequently asked questions and the public sources its facts come from.

Updated

Claude Code

How to split work between agents, stop an action before it runs, and give an agent tools and instructions.

RAG and document search

How a model finds information in your documents and shows where it came from.

Agents and control

How several agents work together and where a person steps into the decision.

What to use when in Claude Code

What to use when in Claude Code
MechanismWhat it isWhen to use it
SubagentA separate assistant with its own context, prompt and tools that returns only a summary.When a task produces verbose output you don't need in the conversation, or needs restricted tools.
HookA handler that runs automatically at a session event, for example before a tool call.When something must happen, or be blocked, regardless of what Claude decides.
SkillA folder with a SKILL.md: the description is always in context, the instructions load when used.For procedures you repeat and long instructions you only need some of the time.
MCPAn open standard that connects an AI application to external systems.For data and actions in other systems when there is no command-line tool for them.
CLAUDE.mdInstructions read at the start of every session, treated as context rather than enforced configuration.For what always holds: build commands, conventions, project layout.

Sources

Related services