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

Solo developer builds cross-platform desktop AI agent with mobile remote control in 3 weeks, ships to 40+ countries
A solo developer built Skales, a native desktop AI agent with 139+ tools and a mobile companion app for remote control — all in 3 weeks using Claude. The app runs on macOS, Windows, and Linux, is local-first and free, and already has active users in 40+ countries.

Prompt-Master: Claude Skill for Generating Accurate AI Tool Prompts
Prompt-Master is a free Claude skill that writes accurate prompts for various AI tools including Cursor, Claude Code, GPT, Midjourney, Kling, and Eleven Labs. The tool has reached 600+ stars on GitHub and processes 4000+ traffic.

LocalSynapse MCP Server Enables Claude to Search Local Documents Offline
LocalSynapse is an MCP server that indexes and searches inside local documents (Word, Excel, PowerPoint, PDF) using hybrid BM25 + AI semantic search. Everything runs locally with no cloud or API keys required.

Claude Code Skill Refactors React Components Using 'Don't Make Me Think' Principles
A new Claude Code skill automatically refactors React components for usability based on Steve Krug's principles — cuts happy talk, surfaces primary CTAs, fixes empty/error states, and tightens labels.