Show HN: Axe – A 12MB binary that replaces your AI framework
TL;DR Highlight
Axe runs TOML-defined single-purpose LLM agents from pipes, cron and git hooks as one Go binary.
Who Should Read
Backend developers who want to automate small LLM tasks like commit messages, code review and log analysis from the shell without an agent framework
Core Mechanics
- Agents behave like Unix programs
- Each agent does one job and is defined in a TOML file.
- No daemon, GUI or framework, just a binary and your configs.
- It plugs into pipes and cron
- Pipe data in via stdin, like git diff --cached | axe run pr-reviewer.
- It doesn't schedule anything and leaves that to cron, git hooks and CI.
- One TOML file holds the whole agent
- It defines the system prompt, model, skill files, context files, working directory and persistent memory.
- Agents can call sub-agents with a depth limit (hard max 5) and parallel execution.
- Cost and security guards are built in
- --max-tokens or [budget] caps cumulative tokens per run, exiting with code 4 when exceeded.
- allowed_hosts restricts url_fetch and web_search, and private IPs are always blocked (SSRF protection).
- Multiple providers and built-in tools
- It supports Anthropic, OpenAI, Ollama, OpenCode and AWS Bedrock.
- Built-in tools cover file ops, shell commands, URL fetch, web search and MCP servers.
- Retries and Docker are supported
- It retries 429, 5xx and timeouts with exponential, linear or fixed backoff, off by default.
- The Docker image is hardened with a read-only root, non-root user and all capabilities dropped.
Community Reactions
- Concern about runaway cost
- A commenter asked how cost is controlled when fanning out 10 agents could cost more than one big context.
- The README's answer is the --max-tokens budget feature.
- Existing shell-script setups do something similar
- A commenter shared using claude -p with tiny scripts, such as git diff --staged | ai-commit-msg | git commit -F -.
- They add grep or jq guards to validate output.
- Skepticism about memory and fine-grained agents
- One commenter said projects touting persistent memory signal scope creep.
- Another argued that splitting a general coding agent into tiny roles would be absurd if the agents were humans.
- Requests for security and repo-local agents
- A commenter asked about whitelisting outbound connections due to prompt injection and data exfiltration risk.
- Another wanted agents to live in the repo instead of ~/.config, and the README mentions local agents directory auto-discovery.
- Binary size criticism
- A commenter noted that an HTTP, TLS and LLM client in Zig can be about 400KB, so 12MB isn't impressive.
How to Apply
- Copy the example code-reviewer and run it on git diff
- Install axe with Go today and copy examples/code-reviewer's toml and skills into your config path.
- Set ANTHROPIC_API_KEY and run git diff | axe run code-reviewer.
- Use --dry-run and --max-tokens first
- Check the resolved context with --dry-run before running a new agent.
- Add [budget] max_tokens when using sub-agents to prevent cost blowups.
- Set allowed_hosts on agents with network access
- List exact hostnames in the TOML of agents that use url_fetch or web_search.
- This reduces the risk of prompt injection sending requests to arbitrary hosts.
- Wire it into git hooks and cron
- Call git diff --cached | axe run commit-msg from a pre-commit or prepare-commit-msg hook.
- Run log analysis from cron with cat error.log | axe run log-analyzer.
Try It
# Paste into Claude Code or a terminal (run after installing axe)
go install github.com/jrswab/axe@latest
axe config init
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"
# Only inspect the context
git diff | axe run code-reviewer --dry-run
# Run for real with a 10000 token cap
git diff | axe run code-reviewer --max-tokens 10000Terminology
Related Papers
Frostbite: A new CPU architecture discovered, designed and verified by AI
AI agents designed a CPU from scratch, claiming 4.59x perf/W over a traditional core
Restricting AI agents in mobile operating systems platforms from capturing data
Signal now blocks OS-level AI agents from reading its screen on iOS 27 and Android
Actions Speak Louder than Words: Stateful Privacy Sniffing of LLM Agents via Behavioral Covert Channels in Web Interactions
Agents' link choices alone let attackers rebuild user queries at F1 0.89; SOR cuts it to 0.39.
Tracking and Limiting Unsupported Claim Propagation in Multi-Agent LLM Systems: A Provenance-Aware Framework
Passing claims with source, evidence and history kept equivalence at 5 agent stages at 96% versus 31%.
LLM assisted reverse engineering
Pointing an agent at binaries with skills and MD notes made years-long hacks feasible
Metrics-in-the-Loop: Complexity Feedback Reshapes Agent-Written Code
Injecting per-turn complexity reports into coding agents cut code erosion without changing correctness
Why is Gemini 4 Carbon taking so long?
Carbon took nearly an hour on bug fixes that Astra and Opus finished in minutes, mostly from extra unrequested work.
Weight-Space Programming builds neural networks like a 1990s researcher
LLM hand-wrote MNIST weights to 91.3%, using 1990s-style techniques