Small vs Frontier: Benchmarking LangGraph Agents Across Model Tiers
Advanced · 45 minutes · 5 tasks, checked automatically · 100 points
You will build a rigorous evaluation harness that runs the exact same multi-step agent task against two model tiers — a simulated 'small model' path (using Claude with a heavily constrained system prompt that mimics 3B-class limitations) and the full frontier Claude Sonnet — then instruments LangGraph's state to capture where and why the constrained model breaks down. This lab is foundational to understanding model-capability gaps in agentic workflows: tool selection errors, reasoning short-circuits, and failure to self-correct are all measurable artifacts in the graph's execution trace.
What you’ll learn
- Install and configure LangGraph with the Anthropic backend inside the toolbox container
- Build a shared multi-step agent task with deterministic tools whose correctness is measurable
- Implement a 'constrained' model persona via system prompt to simulate small-model failure modes
- Instrument the LangGraph StateGraph to capture per-step tool calls, errors, and reasoning traces
- Run both model tiers against identical tasks and produce a structured JSON comparison report
- Identify and annotate the specific breakdown categories: wrong tool, missing tool call, bad argument, premature termination
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/langchain-ai/langgraph
What you need
- A free LearnXops account
- The LearnXops desktop app for macOS, Windows or Linux
- Anthropic account with ANTHROPIC_API_KEY set in the Agent Playground
- Hosted sandbox created in the LearnXops Agent Playground
Topics: langgraph, evaluation, model-comparison, react-agent, tool-calling, anthropic, benchmarking, failure-analysis, state-graph
Create a free account to start this lab.
Keep going
- Persistent OpenClaw: docker-compose with Surviving Volumes
- Lock OpenClaw Down: Pairing Approval, Per-Skill Permission Scoping, and Shell Command Allowlisting
- Autonomous File Triage & Daily Digest with OpenClaw
- Harden Hermes: Route All Tool Calls Through Docker Containers
- Run the Hermes Gateway as a Persistent Service with Request Logging and Clean Shutdown
- Drive a Codebase with Hermes: ripgrep Search, Multi-File Edits, and Running the Test Suite from the Agent Loop