Terminal / AI agent
./agent-go
Chat less. Execute more.
A native Go agent that lives in your terminal.
Agent-Go is a command-line AI agent written in Go. It integrates with your shell to execute commands, manage files, and automate workflows. A rewrite of Agent-C, re-architected for speed and concurrency.
Install
curl -fsSL https://raw.githubusercontent.com/finettt/agent-go/main/install-agent-go.sh | bash
Usage
Interactive mode:
agent-go
Single shot:
agent-go "Create a directory and navigate into it"
Pipeline:
git diff | agent-go "review these changes"
Features
- Native Execution — Shell commands with
&&chaining. - PTY Sessions — Interactive apps like vim, nano, bash.
- Pipeline Integration — Full Unix pipe and redirect support.
- Agent Studio — Build and spawn custom sub-agents.
- Infinite Memory — Token compression keeps context alive.
- RAG Engine — Local codebase awareness.
- MCP Integration — Model Context Protocol support.
- Session Export — Save conversations as md, json, or txt.
Config
Set via environment variables or ~/.config/agent-go/config.json:
export OPENAI_KEY="sk-..."
export OPENAI_MODEL="gpt-4-turbo"
export RAG_ENABLED=1
export AUTO_COMPRESS=1
github.com/finettt/agent-go ↗