Pu.sh
a full coding-agent harness in 400 lines of shell
Details
- External ID
- 47968112
- Source
- HN
- Company
- —
- Product
- Pu.sh
- Website domain
- pu.dev
- Launched
- April 30, 2026
- Cohort
- —
- Upvotes
- 92
- Upvotes percentile
- 0.8836760925449871
- Tags
- —
- Fetched at
- Sept. 7, 2026, 9:26 p.m.
- Updated at
- Sept. 7, 2026, 9:26 p.m.
Description
I originally was just messing with pi-autoresearch. Gave it a sample task to build the most portable coding agent.First cut was 6 KB of shell. Great for one-shots, unusable interactively. I was shocked it actually worked.Started building up -- adding features — but with a self-imposed rule: no new dependencies, and sub 500 LOC. This thing had to be truly portable. Just sh, curl, awk. System primitives only.Which means I did some genuinely disgusting things in awk, including JSON parsing and the OpenAI Responses tool loop with reasoning items carried across turns.It's now ~400 lines. In the box: Anthropic + OpenAI, 7 tools (bash, read, write, edit, grep, find, ls), REPL, auto-compaction, checkpoint/resume, pipe mode, 90 no-API tests. Not in the box: TUI, streaming, images, OAuth, Windows, dignity.Two honest things:1. I stole/modified the system prompt and the architecture. Pi/Claude/Codex wrote the awk. I cannot read most of this code. This wasn't possible for me a year ago.2. Heavily inspired by Pi (pi.dev) — same 7-tool surface, same exact-text edit model. Credit where it's due. Pi is awesome -- you should probably use them.The agent loop itself is tiny. Almost everything else in a "real" agent CLI is DX and hardening. You can probably build your own harness exactly how you like it. Mario Zechner's AI Engineer talk on taking back control of your tools nudged me here.The name is because it's a .sh file. The other thing it sounds like is, regrettably, also accurate.
Enrichment
- Theme
- developer tools for AI agents
- Vertical
- Horizontal
- Function
- Agent / copilot
- Audience
- Developer
- AI stance
- AI-native
- Project type
- Hobby / open-source project
- Normalized one-liner
- coding agent framework in shell script
- Manually corrected
- False
Could you build this?
Yes As noted in the description, it is a minimal 400-line shell script harness calling LLM APIs and executing local commands via bash.
Discussion
20 comments analyzed.
Competitors mentioned: Claude agent SDK, pi-autoresearch, aloop (vendor-agnostic agent harness), Other agentic-loop implementations
Concerns raised: Code readability and maintainability of minified version, Agent tool call recording/replaying for debugging, Agent forgetting or misinterpreting instructions, Excessive LOC constraint limiting practical usability, Confidence in code quality and reliability
Feature requests: Read-only mode toggle, Better tool call recording and failure mode replay, Markdown output formatting, Python package or embeddable SDK version, Just-bash compatibility
Competitors
Other products that read as similar to this one — 420 launches clear the similarity bar, closest 8 shown.
Attention rank: #61 of 421 (itself plus its competitors, highest first — normalized so YC and Product Hunt are compared fairly).
Launched 178 days after the earliest competitor.
- Bestie, a coding agent that respects you · hn · 2026-09-08 · 5 upvotes · similarity 0.57
- Huzzah · hn · 2026-08-20 · 384 upvotes · similarity 0.52
- Shikigami, run AI coding agents in parallel, each in a Git worktree · hn · 2026-07-19 · 7 upvotes · similarity 0.51
- Daemons · hn · 2026-04-21 · 70 upvotes · similarity 0.50
- Toad. A unified terminal UI for coding agents · hn · 2025-12-18 · 14 upvotes · similarity 0.50
- Agents, run any coding agent on your subscription not API costs · hn · 2026-05-31 · 6 upvotes · similarity 0.49
- Paseo · hn · 2026-03-26 · 14 upvotes · similarity 0.48
- Paseo · hn · 2026-03-26 · 5 upvotes · similarity 0.48
Other launches for this product
- No other launches for this product.
Same idea, different domain
Nobody's really built a agent / copilot tool for Agriculture yet.