Build a Research-and-Write Crew with Local Documents
Advanced · 30 minutes · 5 tasks, checked automatically · 100 points
In this advanced lab you will assemble a two-agent CrewAI crew that operates entirely on local data. A Researcher agent reads markdown documents from a local folder using CrewAI's DirectoryReadTool and FileReadTool, then a Writer agent takes those findings and drafts a structured report to a file on disk. You will wire up the agents, tasks, and tools by hand, run the crew against a small set of sample documents, and verify every structural requirement programmatically — no cloud API keys, no paid services, just a local qwen2.5:3b model doing real agentic work.
What you’ll learn
- Install CrewAI and its tools package inside the toolbox container
- Seed a local documents folder and confirm the sandbox LLM endpoint is reachable
- Define a Researcher agent equipped with DirectoryReadTool and FileReadTool pointed at the local folder
- Define a Writer agent whose task output_file writes the finished report to /root/lab/report.md
- Run the crew end-to-end and verify the report file exists and contains content
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: qwen2.5:3b
- Open source: github.com/crewAIInc/crewAI
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Docker Desktop (or Podman / Rancher Desktop) installed and running
- A model sandbox started in the Agent Playground
Topics: crewai, multi-agent, local-llm, tools, file-output, sequential-process, automation, qwen2.5
Create a free account to start this lab.
Keep going
- Autonomous File Triage & Daily Digest with OpenClaw
- Drive a Codebase with Hermes: ripgrep Search, Multi-File Edits, and Running the Test Suite from the Agent Loop
- CrewAI Flows: Deterministic Control with Branching, Retries, and Shared State
- Cyclic Self-Correcting LangGraph: Generate, Critique, Revise with Loop Guard
- Self-Correcting LangGraph on Claude: Generate, Critique, Revise
- Hermes Self-Skill Engineering: Teach the Agent to Teach Itself