kunchenguid/gsh
A battery-included, POSIX-compatible, generative shell
What it solves
gsh is a POSIX-compatible shell that integrates AI agents directly into the command line. It solves the problem of switching between a terminal and an AI chat interface to generate commands, analyze files, or automate complex workflows, by making AI agents first-class citizens of the shell environment.
How it works
It provides a REPL (Read-Eval-Print Loop) that supports standard shell commands while adding natural language capabilities. Users can trigger AI agents using a # prefix in the command line or use a dedicated agentic scripting language to build deterministic workflows. It is model-agnostic, supporting local LLMs via Ollama or remote LLMs via OpenAI-compatible endpoints like OpenRouter.
Who it’s for
Developers and power users who want AI-assisted terminal operations, automated agentic workflows, and a highly customizable shell experience similar to the Neovim ecosystem.
Highlights
- POSIX-compatible REPL: Maintains standard shell behavior while adding AI features.
- Generative Suggestions: Predicts the next command based on context and history.
- Built-in Agents: Allows agents to run shell commands, read/modify files, and use MCP servers.
- Agentic Scripting Language: A custom language for composing intelligent agents and deterministic logic.
- External Agent Integration: Can delegate tasks to external agents via the Agent Client Protocol (ACP).
- Model Agnostic: Supports both local (Ollama) and remote LLMs.
Related
- Project
- Project
- Project
- Project
- Project