Hollow AgentOS Reduces Claude Code Token Usage by 68.5% with JSON-Native OS Approach

What This Is
Hollow AgentOS is a JSON-native operating system abstraction layer designed specifically for AI agents. It addresses the inefficiency of running agents on infrastructure built for humans, where every state check typically runs 9 shell commands and cold starts require re-discovering context from scratch.
Key Details
The project delivers measurable token reductions across five real scenarios:
- Semantic search vs grep + cat: 91% fewer tokens
- Agent pickup vs cold log parsing: 83% fewer tokens
- State polling vs shell commands: 57% fewer tokens
- Overall reduction: 68.5%
The benchmark is fully reproducible using python3 tools/bench_compare.py.
Technical Implementation
Hollow AgentOS plugs into Claude Code via MCP (Model Context Protocol) and runs local inference through Ollama. The project is MIT licensed and available on GitHub.
Important clarification about the architecture: This isn't a kernel replacement. The author compares it to how Android sits on top of Linux - Android developers never write kernel code, they only interact with the Android layer. Hollow aims to be the complete abstraction layer between agents and the underlying system, so agents should never need to touch the underlying OS directly.
What's currently shipped is described as "the foundation of that vision, not the finished thing," but even at this stage it delivers "a large token reduction and measurable speed improvement with no noticeable loss in precision."
Who It's For
Developers running agentic workflows with Claude Code who want to optimize token usage and performance.
📖 Read the full source: r/ClaudeAI
👀 See Also

Open-source methodology for agentic AI partnership with Claude
A developer has published a 25,000-word paper and open-sourced templates for building a persistent partnership system with Claude that uses shared memory across sessions, cognitive monitoring, and multi-AI consultation.

EmoBar: Visualizing Claude's Internal Emotion Vectors from Anthropic Paper
A developer built EmoBar, an open-source tool that visualizes the 171 internal emotion representations in Claude identified in Anthropic's recent paper. The tool uses a dual-channel approach to surface these measurable vectors that causally drive model behavior.

Context Mode MCP Server Cuts Claude Code Context Usage by 98%
Context Mode is an MCP server that reduces Claude Code context consumption from 315 KB to 5.4 KB by sandboxing tool outputs. It supports 10 language runtimes and includes a knowledge base with full-text search.

VT Code: Open-Source Rust TUI Coding Agent with Multi-Provider Support and Agent Skills
VT Code is a Rust-based terminal UI (TUI) coding agent supporting Anthropic, OpenAI, Gemini, and Codex, with local inference via LM Studio and Ollama. It includes Agent Skills, Model Context Protocol, and Agent Client Protocol.