Axe: A 12MB CLI for Single-Purpose LLM Agents

What Axe Is
Axe is a 12MB Go binary with two dependencies (cobra, toml) that replaces AI frameworks with a Unix-inspired approach to LLM agents. Instead of long-lived chatbot sessions, it runs single-purpose agents defined in TOML configuration files. Each agent has a focused job like code reviewing, log analysis, or commit message writing.
Core Features
- TOML-based configuration: Declarative, version-controllable agent definitions with system prompts, model selection, skill files, and context files
- Stdin piping:
git diff | axe run reviewerworks directly - Sub-agent delegation: Agents can call other agents via LLM tool use with depth limiting and parallel execution
- Persistent memory: Timestamped markdown logs carry context across runs with LLM-assisted garbage collection
- Multi-provider support: Works with Anthropic, OpenAI, Ollama (local models), or any models.dev format
- Built-in tools: Web search, URL fetch, and path-sandboxed file operations (read, write, edit, list) locked to agent's working directory
- MCP support: Can connect any MCP server to agents
- Skill system: Reusable instruction sets shared across agents
- JSON output: Structured output with metadata for scripting
- Dry-run mode: Inspect resolved context without calling the LLM
Installation & Setup
Requires Go 1.24+. Install via:
go install github.com/jrswab/axe@latestOr build from source:
git clone https://github.com/jrswab/axe.git
cd axe
go build .Initialize configuration:
axe config initCreates directory structure at $XDG_CONFIG_HOME/axe/ with sample skill and default config.toml for provider credentials.
Usage Examples
Create and run an agent:
axe agents init my-agent
axe agents edit my-agent
axe run my-agentPipe data from other tools:
git diff --cached | axe run pr-reviewer
cat error.log | axe run log-analyzerCopy example agents from the examples/ directory:
cp examples/code-reviewer/code-reviewer.toml "$(axe config path)/agents/"
cp -r examples/code-reviewer/skills/ "$(axe config path)/skills/"
export ANTHROPIC_API_KEY="your-key-here"
git diff | axe run code-reviewerDocker Deployment
Build the image:
docker build -t axe .Multi-architecture builds (linux/amd64, linux/arm64) via buildx:
docker buildx build --platform linux/amd64,linux/arm64 -t axe:latest .Run an agent with mounted config:
docker run --rm \
-v ./my-config:/home/axe/.config/axe \
-e ANTHROPIC_API_KEY \
axe run my-agentPipe stdin with -i flag:
git diff | docker run --rm -i \
-v ./my-config:/home/axe/.config/axe \
-e ANTHROPIC_API_KEY \
axe run my-agentWho It's For
Developers who want to automate specific AI tasks without framework overhead, especially those already using Unix tools, git hooks, cron, or CI pipelines.
📖 Read the full source: HN LLM Tools
👀 See Also

x402 API Gateway for OpenClaw Bots: One Endpoint Replaces 18 API Keys
An x402 API gateway eliminates the need for multiple API keys in OpenClaw bots by providing access to 18 services including smart LLM routing, web search, maps, travel, food, AI, and finance data through a single endpoint authenticated via USDC wallet credits.

Solo developer builds cross-platform desktop AI agent with mobile remote control in 3 weeks, ships to 40+ countries
A solo developer built Skales, a native desktop AI agent with 139+ tools and a mobile companion app for remote control — all in 3 weeks using Claude. The app runs on macOS, Windows, and Linux, is local-first and free, and already has active users in 40+ countries.

RelayCode VS Code Extension Routes Claude Code Through Sovereign RDUs
OpenGPU has released RelayCode, a VS Code extension that acts as a local proxy to route Claude Code or Copilot requests through their decentralized network to open-weight models like DeepSeek-R1 and MiniMax M2.5 running on sovereign reconfigurable dataflow units.

Scaffold Framework Addresses Claude Code Memory and Workflow Issues
Scaffold is a 17-skill framework for Claude Code that provides persistent memory, decision enforcement, and workflow gates. It uses a 3-tier model routing system for token savings and can be installed via the Claude Code plugins menu.