Why Minimal Agent Harnesses Outperform Heavy System Prompts

AICodeKinggo watch the original →

Minimalist agent harnesses like Pi outperform complex, prompt-heavy alternatives by reducing token waste and model confusion, proving that smaller system prompts lead to higher task completion rates at lower costs.

The Minimalist Advantage

The primary breakthrough in agent performance is the shift from massive, opinionated system prompts to minimal, tool-focused instructions. Traditional harnesses like Claude Code previously utilized system prompts exceeding 10,000 tokens, which often confused non-native models and increased latency and costs. By reducing these prompts to a few hundred tokens, agents like Pi allow the underlying model to operate with its raw capabilities rather than fighting against the harness author's injected biases. This approach is now being validated by industry leaders, as evidenced by Anthropic reducing Claude Code's system prompt by approximately 80% without observing performance degradation.

Benchmark Performance

Composio benchmarks comparing agent harnesses using the DeepSeek V4 Flash model demonstrate that minimal harnesses achieve higher success rates than their heavy counterparts. In a test of 30 agentic tasks, the Pi-based harness (specifically Oh My Pi) completed 17 tasks, outperforming Claude Code and Codeex (16 tasks) and Open Code (14 tasks). While Claude Code was the fastest at 123 seconds per task, it was nearly three times more expensive than the most cost-effective option, Open Code. The Pi-based harness balanced these metrics, providing the highest success rate at roughly 10 cents per task, compared to nearly 20 cents for Claude Code.

Architecture and Extensibility

Pi maintains a minimal core codebase focused on four primary tools: read, write, edit, and bash. The architecture supports model-agnostic operation, allowing users to switch between providers like DeepSeek, OpenAI, and Anthropic mid-session while retaining context. The session management system utilizes a tree structure rather than a flat list, enabling users to branch off from previous states to recover from failed agent paths. Extensibility is handled via TypeScript-based hooks, allowing the agent to write its own extensions or pull in third-party tools via pi install from npm or git repositories.

  • #ai
  • #dev-tooling
  • #agents

summary by google/gemini-3.1-flash-lite. probably wrong about something. check the source.