Drive a Codebase with Hermes: ripgrep Search, Multi-File Edits, and Running the Test Suite from the Agent Loop
Advanced · 30 minutes · 5 tasks, checked automatically · 100 points
In this advanced lab you will install Hermes Agent inside the toolbox container, wire it to the local qwen2.5:3b model, scaffold a small Python project with a real test suite, and then drive the entire development loop — searching with ripgrep, editing multiple files, and executing pytest — from inside Hermes's interactive agent loop. Every task is verified by deterministic file and process checks, not by model prose quality.
What you’ll learn
- Install Hermes Agent and configure it to use the local qwen2.5:3b sandbox
- Scaffold a Python project with source modules and a pytest test suite
- Use Hermes tools (ripgrep search, file write, shell exec) from the agent loop to find a bug, patch multiple files, and confirm the test suite passes
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/NousResearch/hermes-agent
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 serving qwen2.5:3b on port 11434
Topics: hermes-agent, ollama, qwen2.5, ripgrep, pytest, multi-file-edit, agent-loop, automation, codebase-navigation, local-llm
Create a free account to start this lab.
Keep going
- Autonomous File Triage & Daily Digest with OpenClaw
- Build a Research-and-Write Crew with Local Documents
- 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