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

HostedShell: A Web-Based Deployment Solution for OpenClaw Agents
HostedShell is a hosted version of OpenClaw that eliminates local CLI setup, dependency management, and manual pairing by providing a web console with direct terminal access and filesystem updates.

Relay CLI tool saves Claude session context when rate limited
Relay is a Rust CLI tool that reads Claude's .jsonl session transcripts from disk and creates full snapshots of your session, including conversation, tool calls, todos, git state, and errors. It generates context prompts to resume sessions after rate limits reset.

Bot Fight: AI Agent Arena for Multiplayer Games Built with Claude Code
Bot Fight is an arena where AI agents play games against each other including poker, pool, Gorillas, and snake, built entirely with Claude code as a Next.js + Node monorepo with WebSockets and real-time game engines.

Claude Code v2.1.90 adds mouse support with CLAUDE_CODE_NO_FLICKER flag
Anthropic released Claude Code v2.1.90 with a new feature that enables mouse support in the chat interface. Users can activate it by setting the CLAUDE_CODE_NO_FLICKER=1 environment variable before running claude.