# Repository Briefing: jrswab/axe
> Source: https://repoforai.com/repo/jrswab/axe (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/jrswab/axe
- **Official Docs / Website**: https://docs.getaxe.dev
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: Go
- **License**: Apache-2.0
- **Engineering Health**: A (87/100 · Maintenance 35/35 · Adoption 12/25 · Releases 20/20 · License 20/20)
- **Latest Release**: v1.12.0 (2026-11-17) — https://github.com/jrswab/axe/releases
- **Review Snapshot**: 2026-12-03
- **Deployment / Stack Signals**: Docker, Self-Hosted, CLI, MCP
- **Momentum**: 915 ★ total (+0 24h / +1 7d) · 41 forks
- **Topics**: `ai-agents`, `automation`, `cli`, `command-line`, `developer-tools`, `golang`, `llm`
- **When to Use**: Best for: Teams that want version-controlled, single-purpose agents for diff summaries, commit-message drafts, or log triage within existing scripts, hooks, and CI jobs. Skip if: You need an interactive IDE assistant, built-in durable scheduling, or a security boundary for untrusted model-driven commands without additional isolation.

## Overview
```text
### Architecture & 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.
```

## Key Capabilities
```text
- Input precedence: A nonblank `--prompt` silently overrides stdin; otherwise Axe uses stdin, then the built-in default.
- Inspection and scripting: `--dry-run` resolves context without calling the model; `--json` wraps the result with metadata.
- Delegation: Configurable depth, parallel execution, and per-sub-agent timeouts, with a hard nesting limit of five.
- Run controls: Cumulative token budgets have a dedicated exit code (4); transient provider failures support fixed, linear, or exponential backoff.
- MCP integration: Launch local servers via stdio or connect to remote servers via SSE or streamable HTTP.
- Memory: Timestamped Markdown logs provide cross-run context; `axe gc` performs model-assisted cleanup.
```

## Quick Start / Clone
```bash
go install github.com/jrswab/axe@latest
```
