Build a CrewAI Research Crew on Claude: Planner + Writer Agents
Intermediate · 30 minutes · 5 tasks, checked automatically · 100 points
In this lab you will build a two-agent CrewAI crew powered by Claude (claude-sonnet-4-6). A Planner agent decomposes a research question into sub-questions, then a Writer agent answers the original question using those sub-questions as a structured outline, appending inline citations. You will install CrewAI, configure both agents with roles, goals, and backstories, wire them into a sequential crew, run it against a short research question, and verify the output file. This lab demonstrates foundational CrewAI concepts — agents, tasks, sequential process, and Pydantic-validated output — on a real frontier model.
What you’ll learn
- Install CrewAI and configure it to use Claude claude-sonnet-4-6 via the Anthropic provider
- Define a Planner agent that decomposes a research question into structured sub-questions
- Define a Writer agent that answers the question with inline citations using the Planner's output
- Wire both agents into a sequential Crew and capture the final answer to a file
- Validate the output file contains both a plan section and a cited answer section
How this lab works
- Start the lab: One click starts a sandbox with a local model and the agent’s toolbox: no API key and no token bill.
- Work through 5 tasks: Each task says what to build or fix. You do it yourself, in a real terminal, with hints when you get stuck.
- Check your work: Check my work inspects the agent, its config and its output, and says what passed and what to fix.
- Finish and keep going: 100 points, your progress saved, and the next lab to try.
What it runs on
- Runs: Locally, against a model on your computer: no API key, no tokens
- Model: claude-sonnet-4-6
- Open source: github.com/crewAIInc/crewAI
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- An Anthropic API key added to the LearnXops Agent Playground (stored encrypted; available as ANTHROPIC_API_KEY inside the toolbox)
- A hosted sandbox created in the Agent Playground
Topics: crewai, anthropic, claude, multi-agent, sequential-process, pydantic-output, research-crew, planner-writer
Create a free account to start this lab.
Keep going
- Install, Inspect, and Disable an OpenClaw Plugin from ClawHub
- OpenClaw Message Queue Channel: Agent-Powered Request/Reply
- Shape Agent Behaviour with SOUL.md, USER.md and AGENTS.md
- Hermes Session Memory: Full-Text Search and Fact Recall
- Hierarchical CrewAI: Manager Agent Delegating to Specialists
- CrewAI Memory: Persistent Recall Across Executions