axio-repl¶
axio-repl is a terminal coding assistant that runs an Axio agent with file and
shell tools. It auto-detects your LLM backend from environment variables and
streams every token and tool call directly to the terminal.
Install¶
uv tool install axio-repl
Add optional transports:
# Anthropic Claude
uv tool install axio-repl --with axio-transport-anthropic
# Google Gemini
uv tool install axio-repl --with axio-transport-google
Within the monorepo workspace:
uv run axio-repl
Start the REPL¶
axio-repl
The REPL picks the first transport whose environment variable is set:
Transport |
Env Variable |
Package |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Override with --transport <name>:
axio-repl --transport anthropic --model claude-sonnet-4-20250514
axio-repl --transport google --model gemini-3.1-pro-preview
Single-prompt mode¶
Pass a prompt as an argument for non-interactive use:
axio-repl "list the files in this project"
axio-repl --transport openai "write tests for src/auth.py"
CLI flags¶
Flag |
Default |
Description |
|---|---|---|
|
auto |
Transport name (see table above) |
|
transport default |
Model name |
|
transport default |
Sampling temperature |
|
off |
Thinking level: |
|
transport default |
Max output tokens |
|
30 |
Max agent iterations |
|
off |
Log raw request/response bodies |
REPL commands¶
Command |
Description |
|---|---|
|
Show current model and list available models |
|
Switch to a model matching the query |
|
Show or set thinking level/budget |
|
Show or set sampling temperature |
|
Show or set max output tokens |
|
Show or set max agent iterations |
|
Toggle request/response debug logging |
|
List all tools and commands |
|
Exit the REPL |
Tools¶
Tool |
Description |
|---|---|
|
Read file contents; images and videos are returned as vision blocks |
|
Create or overwrite files |
|
Replace line ranges (1-indexed, inclusive) |
|
List directory contents |
|
Text or regex search across files |
|
Run shell commands with streaming stdout/stderr |
|
Generate images via Gemini (Google transport only) |
|
Generate videos via Veo (Google transport only) |
AGENTS.md¶
Place an AGENTS.md file in the working directory to inject workspace-specific
instructions into the system prompt:
# My project
- Always run `make test` after editing Python files
- The main entry point is `src/app.py`
- Use the `dev` branch for all changes
The file is loaded at startup and on every /model switch. It is optional -
if absent, the default system prompt is used unchanged.
Capability-aware system prompt¶
The system prompt adapts to the selected model’s capabilities. Switching models
with /model recalculates capabilities and rewrites the prompt automatically:
Vision -
read_fileon images (PNG, JPG, GIF, WebP) returns pixel data. Screenshot-based UI review loops are unlocked.Reasoning - Extended thinking (chain-of-thought) is available.
Image generation - Inline image generation via
generate_image.Video -
read_fileon video files returns vision blocks.
Multiline input¶
Paste multi-line text directly into the prompt. The REPL detects continuation lines and joins them before sending:
You> Refactor this function:
... def old(x):
... return x+1
Interrupting the agent¶
Press Ctrl-C to cancel the running agent loop. Partial tool output (stdout already captured, files already written) is preserved in conversation context so the model sees what happened and can resume cleanly.