# Agents > How AI agents actually work, one idea at a time. Subagents, skills, workflows, and memory, built and explained by Ryan Cuff. Written by Ryan Cuff, a computer engineer. https://ryancuff.com Each entry explains one idea about how AI agents work, from tool calls to subagents, skills, workflows and memory. Every entry is also available as markdown at its own url plus .md. The full text of every entry is at https://agents.ryancuff.com/llms-full.txt. Agents can also search and read entries over MCP at https://agents.ryancuff.com/mcp, using Streamable HTTP with no auth. ## How AI Works - [What happens when an agent calls a tool](https://agents.ryancuff.com/how-ai-works/what-happens-when-an-agent-calls-a-tool.md): What actually happens when an AI agent calls a tool, from tool_use to tool_result, where MCP fits in, and why the model never runs anything itself. ## Subagents - [What a subagent is and when to use one](https://agents.ryancuff.com/subagents/what-a-subagent-is-and-when-to-use-one.md): A subagent is a separate Claude with its own context, tools and prompt. What it gets, what it costs, and when to use subagents in Claude Code. ## Skills - [How skill files work, and why some never get used](https://agents.ryancuff.com/skills/how-skill-files-work.md): A SKILL.md file teaches Claude a task. Only its name and description load up front, so the description decides if Claude ever uses the skill. ## Workflows - [Plan first, then build](https://agents.ryancuff.com/workflows/plan-first-then-build.md): How I get better results from coding agents. Ask for a plan, say what stays the same, answer its questions, then build. Plus Claude Code plan mode. ## Memory - [How AI agents remember things between sessions](https://agents.ryancuff.com/memory/how-ai-agents-remember-things.md): AI models forget everything between sessions. How agent memory really works, from CLAUDE.md and auto memory to the API memory tool and MCP servers. ## Guides - [How to install Claude Code and get started](https://agents.ryancuff.com/guides/how-to-install-claude-code.md): Install Claude Code on Mac, Windows or Linux, sign in, run your first session, and learn the commands and permission modes that matter. ## Work with Ryan - [Make your product usable by AI agents](https://agents.ryancuff.com/work#agent-ready): I build what lets Claude, Cursor and other agents use your product directly, so people who work through agents can find you and use you. Starting at $1,500. - [Make your agent setup safe](https://agents.ryancuff.com/work#agent-safety): A careful look at what your coding agents are allowed to do, and fixes for the places they could do something you'd regret. Starting at $500. ## Optional - [Goodies](https://agents.ryancuff.com/goodies): Docs, reading, MCP servers, courses and tools for building with agents. - [Claude Code docs](https://code.claude.com/docs/en/overview): Subagents, skills, hooks, plan mode and the rest, from the source. - [Claude API docs](https://platform.claude.com/docs/en/home): Tool use, the memory tool and everything else in the API. - [Model Context Protocol](https://modelcontextprotocol.io): The spec for how agents talk to tools and data. - [Agent Skills](https://agentskills.io/home): The open format behind skill files. - [OpenAI Agents SDK](https://openai.github.io/openai-agents-python/): OpenAI's take on agents, handoffs and guardrails. - [AI SDK](https://ai-sdk.dev): Vercel's TypeScript toolkit for building with any model. - [LangGraph](https://docs.langchain.com/oss/python/langgraph/overview): Agents as graphs, for when you want every step spelled out. - [Building effective agents](https://www.anthropic.com/research/building-effective-agents): When you need an agent and when a plain workflow is enough. - [Effective context engineering](https://www.anthropic.com/research/effective-context-engineering-for-ai-agents): What to put in the context window, and what to leave out. - [Writing tools for agents](https://www.anthropic.com/research/writing-tools-for-agents): How to design a tool an agent can actually use well. - [LLM powered autonomous agents](https://lilianweng.github.io/posts/2023-06-23-agent/): Lilian Weng's early map of planning, memory and tool use. - [Simon Willison](https://simonwillison.net): Hands on notes about LLMs, almost every day. - [Latent Space](https://www.latent.space): Podcast and newsletter for people building with AI. - [Hamel Husain](https://hamel.dev): How to test whether your AI thing actually works. - [Prompt Engineering Guide](https://www.promptingguide.ai): Prompting techniques, each one explained with examples. - [MCP Registry](https://registry.modelcontextprotocol.io): The official list of published MCP servers. - [Reference servers](https://github.com/modelcontextprotocol/servers): Small official servers worth reading before you write one. - [MCP Inspector](https://github.com/modelcontextprotocol/inspector): Poke at a server's tools without wiring it into an agent. - [Smithery](https://smithery.ai): Find and install MCP servers. - [Anthropic courses](https://github.com/anthropics/courses): Free notebooks on prompting, tool use and the API. - [Claude cookbooks](https://github.com/anthropics/claude-cookbooks): Working code for the patterns the docs describe. - [Anthropic skills](https://github.com/anthropics/skills): Real skill files to copy from. - [Hugging Face agents course](https://huggingface.co/learn/agents-course/unit0/introduction): A free course that builds agents from the ground up. - [DeepLearning.AI courses](https://www.deeplearning.ai/courses): Short courses on agents, RAG and evals. - [Claude Code](https://github.com/anthropics/claude-code): The coding agent I use every day. - [Cursor](https://cursor.com): An editor built around coding agents. - [Woolly](https://usewoolly.com): My local memory shared by every AI tool. Has an MCP server. - [Ollama](https://ollama.com): Run open models on your own machine. - [LM Studio](https://lmstudio.ai): A desktop app for running local models. - [OpenRouter](https://openrouter.ai): One API key for a lot of different models.