jrswab/axe
A Go CLI for running focused AI agents from pipes, hooks, and CI
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
Axe is a run-to-completion Go CLI, not a daemon or scheduler. main.go and cmd/ form the CLI side of the project, and pkg/runner exposes the execution layer to Go callers. axe run resolves an agent's TOML definition, assembles its system prompt, skill, configured files, and any enabled memory, then sends an explicit prompt or piped input to the configured model. Project-local agent discovery takes precedence over global configuration, and --agents-dir can select a directory explicitly.
The module has four direct dependencies: Cobra v1.10.2, BurntSushi TOML v1.6.0, the MCP Go SDK v1.4.1, and golang.org/x/net v0.62.0. LLM requests use the Go standard library. The model can use enabled built-in tools, delegate to configured sub-agents, or invoke tools provided by MCP servers. Axe consumes MCP services rather than exposing the runner itself as an MCP service.
Key Capabilities & Differentiators
Axe supports Anthropic, OpenAI, Ollama, OpenCode, and AWS Bedrock, but request parameters are not portable across providers: reasoning_effort, for example, is forwarded for OpenAI and a specified subset of providers, while Anthropic and Ollama ignore it. Agent configurations expose text, JSON object, and JSON Schema response formats. Separately, --json wraps CLI output with metadata; it is not the switch for schema-constrained model output.
Built-in tools cover workspace file operations, shell execution, URL fetching, and web search. Delegation supports timeouts, parallel execution, and a hard nesting cap of five. max_turns defaults to 50, while the cumulative token cap is unlimited unless configured. The --max-tokens run budget is distinct from params.max_tokens; budget exhaustion returns exit code 4. Optional Markdown memory carries context across runs, and axe gc uses a model to help trim it.
Trade-offs & Limitations
Compared with an interactive coding assistant, Axe is a better fit for bounded tasks whose instructions and input can be checked into a repository or piped from an existing tool. Compared with a workflow engine, it leaves scheduling and cross-job recovery to the caller. Model APIs keep inference hardware off the CLI host but introduce provider costs and data-handling decisions. Local Ollama shifts model sizing and serving operations to your own infrastructure.
The file tools' working-directory restriction is not a general shell sandbox. Host allowlisting and private/reserved-IP blocking apply to URL fetch and web search; they are not a process-wide egress policy. For unattended jobs, especially those ingesting external content, enable only necessary tools, mount inputs read-only where possible, and enforce network and credential boundaries outside the agent. Apache-2.0 covers Axe itself, not the models or third-party services it calls.
Hardware & Deployment Guide
Use a prebuilt Linux, macOS, or Windows binary to avoid a Go toolchain dependency. Building from source or importing pkg/runner requires Go 1.26.11 or later. Host the CLI yourself with provider credentials for remote inference, or point it at a local Ollama endpoint via AXE_OLLAMA_BASE_URL. Running Ollama locally does not make remote MCP servers or web search local.
For Docker, mount agent configuration at /home/axe/.config/axe and persist memory at /home/axe/.local/share/axe if needed. Compose runs Axe as UID 10001 with a read-only root filesystem, dropped capabilities, and no new privileges, but its writable mounts and outbound access remain. The Ollama startup dependency makes standalone docker run the simpler cloud-only path. Release v1.10.0 extracted pkg/runner; v1.12.0 added a pinned API-diff check and scheduled provider-key smoke tests.
--prompt silently overrides stdin; otherwise Axe uses stdin, then the built-in default.--dry-run resolves context without calling the model; --json wraps the result with metadata.axe gc performs model-assisted cleanup.Teams that want version-controlled, single-purpose agents for diff summaries, commit-message drafts, or log triage within existing scripts, hooks, and CI jobs.
You need an interactive IDE assistant, built-in durable scheduling, or a security boundary for untrusted model-driven commands without additional isolation.
Quick Start & Installation
go install github.com/jrswab/axe@latestComparison vs. Top Coding, Skills & MCP Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| axe ★ | 915 | +1 | Go | Apache-2.0 | A Go CLI for running focused AI agents from pipes, hooks, and CI |
| Codewhale | 41.2k | +38 | Rust | MIT | Rust coding agent with swappable models, sandboxed execution, and turn receipts |
| gemini-cli | 109.6k | +376 | TypeScript | Apache-2.0 | A Node.js terminal agent for enterprise Gemini coding workflows and MCP tools |
| oh-my-pi | 40.5k | +483 | TypeScript | MIT | A Bun/Rust terminal agent for model-flexible coding with LSP and editor integrat |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/jrswab/axe.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about axe
How do I integrate Axe with a script, a Go application, or an MCP server?
--json for a metadata envelope and exit codes to distinguish configuration, provider/network, and token-budget failures. Go applications can import pkg/runner. For tools, Axe acts as an MCP client: it can launch a local stdio server or connect to a remote SSE or streamable HTTP endpoint.Does Axe need a GPU, and how should I size a local deployment?
Can my company use Axe commercially and keep its data on premises?
When is Axe a better choice than a coding assistant or workflow engine?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy