- 2 min read
- 1 source
Summary
An illustrated guide examines four open-source agent frameworks: Pi, OpenCode, Hermes, and OpenClaw. The comparison finds that while they share a 'Coding' core, they differ significantly in architecture, tooling, and the specific use cases they support.
Key facts
- Frameworks Analyzed: Pi, OpenCode, Hermes, and OpenClaw.
- Core Architecture: All four share a 'Coding' core that can read, edit, and execute code.
- Additional Layers: Hermes and OpenClaw feature an additional 'Personal Assistant' layer, allowing for chat connectors, personal memory, and scheduled wake-ups.
- Code Complexity: OpenClaw is noted as having a 'hefty' codebase, particularly due to this personal assistant functionality. Pi and OpenCode have a 'decently sized' codebase.
- Minimal Baseline: An educational framework called TinyAgent, with around 600 lines of Python, is used as a baseline to demonstrate the fundamental components of an agent harness.
- Core Loop: The fundamental 'Reason and Act' (ReAct) loop, where the model reasons, acts, and observes, is the pattern used by all frameworks.
Details
An agent harness is defined as the component that augments a large language model (LLM) and converts its tokens into actions. This includes creating prompts, executing tools, storing sessions, and enforcing guardrails, essentially giving the model capabilities beyond text-in and text-out.
The guide contrasts the four frameworks using a snapshot in time. Pi is described as a minimalistic agent. OpenCode uses a shared server to handle different clients. Hermes loops skills back into its memory, and OpenClaw has over 30 chat channels.
The author notes that the harness arguably has an equal, and perhaps even greater, influence on the output as the choice of LLM itself. The frameworks range from a purely educational, 600-line baseline called TinyAgent to complex, production-grade systems.
Why it matters
For developers and teams building AI agents, understanding the differences between frameworks is crucial. The choice of harness can have a significant impact on an application's capabilities and behavior, even when using the same underlying LLM. This guide provides a concrete way to compare the architectural philosophies and feature sets of leading open-source agent frameworks.
What's next
The author notes that frameworks update quickly and provides a snapshot for inspection, with plans to update the guide in a year. The guide's code is open-source.
Sources
Original source: Hacker News — AI stories (50+ points)
Related stories
Industry ·
Artificial Analysis v5 Introduces Open‑Source Token Router
The AI leaderboard rebuild adds a private‑test weighted index and launches Tokedex, an open‑source token routing gateway.
1 source
Industry ·
Black Forest Labs Unveils FLUX 3.1 Image Model
Black Forest Labs launches a high-speed, cost-effective AI image model capable of generating or editing 1-megapixel images in three seconds.
1 source
Industry ·
Humanoid Robotics Startup Foundation Faces Crisis Over
Los Angeles-based company, backed by Eric Trump, has missed payrolls and faces a lawsuit from a fired co-founder.
1 source
Industry ·
Alibaba releases Qwen4-35B-A3B, a cheaper open model
Alibaba's Qwen4-35B-A3B model, with 35 B parameters but only 3 B active, supports image input, handles up to 1 M tokens, and costs $0.55 per task—about six times cheaper than its predecessor.
1 source
Found an error? Report it.