cd /news/ai-agents/show-hn-mu-an-agent-with-actual-comm… · home topics ai-agents article
[ARTICLE · art-120320] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Show HN: Mu – an agent with actual command line experience

Mu, a new shell plugin for zsh and fish, lets users press Tab to enter agent mode, where commands are sent to an LLM instead of being interpreted as shell script, with executed commands appearing in zsh_history. The plugin, which provides a single bash tool and special commands for file editing and multi-modal input, aims to offer a seamless switch between normal shell work and agentic work for command line users.

read1 min views2 publishedSep 3, 2026

I'm an old school user that finds the AI agent TUIs too magical, so I experimented with a new agent UX. I implement mu as a shell plugin (zsh and fish for now). Pressing Tab enters agent mode, where 1. the command line prompt is changed to displays model name and context usage, and 2. a preexec hook sends commands to an agent instead of interpreting them as shell script.

Thats it. Each LLM prompt starts a regular process that reads stdin and writes stdout, with no terminal magics. The actually executed commands appear literally in zsh_history, just like other shell commands. This allows a seamless switch between normal shell work and agentic work, with mixed history that uses regular scrollback buffer.

I also experimented with a minimum agent design, where only a single bash tool is provided. Special commands are provided for reliable file editing and multi-modal input. So far it worked well for me, as a day to day command line helper.

Comments URL: [https://news.ycombinator.com/item?id=49550418](https://news.ycombinator.com/item?id=49550418)

Points: 1

── more in #ai-agents 4 stories · sorted by recency
── more on @mu 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-mu-an-agent-…] indexed:0 read:1min 2026-09-03 ·