{"slug": "show-hn-clam-type-plain-english-in-bash-and-an-agent-does-it-no-prefix", "title": "Show HN: Clam – Type plain English in Bash and an agent does it, no prefix", "summary": "Developer dh1011 released Clam, a single static Go binary that routes plain-English requests typed at a Bash, zsh, PowerShell, Vim or Neovim prompt to an AI agent without a prefix or separate chat mode. Clam works with a built-in agent over any OpenAI-compatible API or with existing tools including Codex, Claude Code, OpenCode and pi, and requires confirmation with a `y` before any file write or command execution; it installs via a curl script that verifies the binary's SHA-256 checksum and runs on Linux, macOS, Windows and FreeBSD.", "body_md": "# Call an AI agent\n\nright from your shell_\n\nUse your LLM or coding agent from the same prompt you run commands in. Ask it something, and it answers right in your terminal. Your commands still run as usual, and nothing changes without a `y`.\n\n**~/weather-cli**$ ls\n\n**~/weather-cli**$ what does this project do?\n\n**~/weather-cli**$ add a help option to the cli\n\n**~/weather-cli**$ git diff --stat\n\n**~/weather-cli**$ node index.js --help\n\n**~/weather-cli**$\n\n## SYNOPSIS\n\n**clam init** **bash** | **zsh** | **pwsh****clam** [**on** | **off** | **reset**]** clam auto** [**on** | **off**]*any request for the agent*\n\n## DESCRIPTION\n\nPuts an AI agent one Enter away in Bash, zsh, PowerShell and Vim, without getting in the way of the shell: commands run exactly as they would without clam, and there is no separate chat window or mode to switch into. Requests go to the agent, which can read your project; anything that writes a file or runs a command asks first. Use the built-in agent with any OpenAI-compatible API, or one you already have: Codex, Claude Code, OpenCode, pi, or any command. One static binary for Linux, macOS, Windows and FreeBSD.\n\n## INSTALL\n\n``` bash\n$ curl -fsSL https://raw.githubusercontent.com/dh1011/clam/main/install.sh | sh\n$ export OPENAI_API_KEY=sk-...\n$ echo 'eval \"$(clam init bash)\"' >> ~/.bashrc\n```\n\nThe script picks the right binary for your OS and CPU, checks its SHA-256 checksum and installs it to `~/.local/bin`. No runtime to install. For zsh, use `clam init zsh` in `~/.zshrc`; for PowerShell, download the Windows `.exe` from the [latest release](https://github.com/dh1011/clam/releases/latest) and add `clam init pwsh | Out-String | Invoke-Expression` to `$PROFILE`. To build from source, run `make` with Go 1.24+.\n\n## PLATFORMS\n\n**Shells:** Bash, zsh, PowerShell (with PSReadLine), Vim and Neovim.**Systems:** Linux (amd64, arm64, armv7, 386), macOS (Intel, Apple silicon), Windows (amd64, arm64), FreeBSD (amd64, arm64).**Agents:** built-in (OpenAI-compatible), Codex, Claude Code, OpenCode, pi, or any command.\n\n## HOW IT WORKS\n\nThe check runs locally and gives up after a second, so the prompt never waits on the network. Commands never reach the agent.", "url": "https://wpnews.pro/news/show-hn-clam-type-plain-english-in-bash-and-an-agent-does-it-no-prefix", "canonical_source": "https://duy.run/clam", "published_at": "2026-11-27 17:31:45+00:00", "updated_at": "2026-11-27 17:43:31.193623+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools", "ai-products"], "entities": ["Clam", "dh1011", "OpenAI", "Codex", "Claude Code", "OpenCode", "pi", "Go"], "also_reported_by": [], "takeaway": "Clam puts an agent behind the normal shell prompt with no prefix, keeps commands out of the agent's context, and gates every file write or command execution behind a `y` confirmation.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-clam-type-plain-english-in-bash-and-an-agent-does-it-no-prefix", "markdown": "https://wpnews.pro/news/show-hn-clam-type-plain-english-in-bash-and-an-agent-does-it-no-prefix.md", "text": "https://wpnews.pro/news/show-hn-clam-type-plain-english-in-bash-and-an-agent-does-it-no-prefix.txt", "jsonld": "https://wpnews.pro/news/show-hn-clam-type-plain-english-in-bash-and-an-agent-does-it-no-prefix.jsonld"}}