Pu.sh: 400-Line Shell Script Coding-Agent Harness from HN

Pu.sh is a full coding-agent harness written in ~400 lines of shell script, designed for maximum portability. It requires only sh, curl, and awk — no npm, pip, Docker, or other dependencies. The project is inspired by Pi (pi.dev) and uses the same 7-tool surface and exact-text edit model.
Key Features
- Supported models: Anthropic (Claude) and OpenAI
- 7 built-in tools: bash, read, write, edit, grep, find, ls
- REPL mode for interactive use
- Auto-compaction of conversation context
- Checkpoint/resume capabilities
- Pipe mode for scripting
- 90 no-API tests to verify functionality without external calls
Notably missing: TUI, streaming, image support, OAuth, Windows compatibility — and, as the author puts it, "dignity."
Code and Philosophy
The author admits they cannot read most of the awk code, which was written by Pi/Claude/Codex. The reasoning loop handles JSON parsing and tool calls across turns using awk. The agent loop itself is tiny — most of the complexity in real agent CLIs comes from DX and hardening. The project is released under a self-imposed rule: no new dependencies and under 500 LOC.
Setup
curl -sL pu.dev/pu.sh -o pu.sh && chmod +x pu.sh
./pu.sh
All you need is curl, awk, and an API key. The author encourages readers to build their own harness adapted to their needs.
📖 Read the full source: HN AI Agents
👀 See Also

OpenClaw 2026.3.23 adds DeepSeek provider, Qwen pay-as-you-go, and Chrome MCP improvements
OpenClaw v2026.3.23 introduces a DeepSeek provider plugin, Qwen pay-as-you-go pricing, OpenRouter auto pricing with Anthropic thinking order, Chrome MCP tab waiting, and fixes for Discord/Slack/Matrix and Web UI.

mcp-optimizer reduces token waste from idle MCP servers in Claude Code
mcp-optimizer is a plugin that addresses token waste from MCP servers in Claude Code by analyzing tool usage and generating optimized configurations. It includes four utilities: mcp-doctor for server health checks, mcp-audit for usage analysis, mcp-optimize for creating project-local configs, and mcp-to-skills for converting tools to on-demand Skills.

Axe: A 12MB CLI for Single-Purpose LLM Agents
Axe is a lightweight Go binary that runs focused AI agents defined in TOML files. It treats agents like Unix programs, supporting stdin piping, sub-agent delegation, and multi-provider LLM integration.

ClawControl v1.7.1 fixes daily usage issues in OpenClaw client
ClawControl v1.7.1 is an open source client for OpenClaw available on Windows, Mac, Linux, iOS, and Android. This release focuses on fixing 'why is it doing that?' issues encountered during daily OpenClaw usage.