Core filesystem and execution tools for Axio
Project description
axio-tools-local
Core filesystem and shell tool handlers for axio.
Gives your agent the ability to read, write, and patch files, run shell commands, execute Python snippets, and browse directory trees — the essential toolkit for a coding assistant.
Tools
| Tool | Entry point | Description |
|---|---|---|
Shell |
shell |
Run any shell command with configurable timeout, cwd, and stdin |
RunPython |
run_python |
Execute a Python snippet in a subprocess |
ReadFile |
read_file |
Read a file, optionally with line range |
WriteFile |
write_file |
Write or overwrite a file |
PatchFile |
patch_file |
Apply a targeted string replacement (old → new) |
ListFiles |
list_files |
List files matching a glob pattern |
Installation
pip install axio-tools-local
Usage
Standalone (without TUI)
from axio import Agent
from axio.context import MemoryContextStore
from axio_transport_openai import OpenAITransport
from axio_tools_local.shell import Shell
from axio_tools_local.read_file import ReadFile
from axio_tools_local.write_file import WriteFile
from axio_tools_local.list_files import ListFiles
from axio.tool import Tool
tools = [
Tool(name="shell", description=Shell.__doc__ or "", handler=Shell),
Tool(name="read_file", description=ReadFile.__doc__ or "", handler=ReadFile),
Tool(name="write_file", description=WriteFile.__doc__ or "", handler=WriteFile),
Tool(name="list_files", description=ListFiles.__doc__ or "", handler=ListFiles),
]
agent = Agent(
system="You are a coding assistant with access to the local filesystem.",
tools=tools,
transport=OpenAITransport(api_key="sk-...", model="gpt-4o"),
)
Via plugin (with axio-tui)
pip install "axio-tui[local]"
uv run axio # Shell, ReadFile, WriteFile, PatchFile, ListFiles, RunPython appear automatically
Tool details
Shell
Shell(command="git log --oneline -5", cwd="/path/to/repo", timeout=30)
Shell(command="python -m pytest", stdin=None)
Parameters: command: str, timeout: int = 5, cwd: str = ".", stdin: str | None = None
PatchFile
Applies an exact string replacement — safe for surgical edits without rewriting the whole file:
PatchFile(
file_path="src/main.py",
old_string="def foo():",
new_string="def foo(x: int) -> int:",
)
ListFiles
ListFiles(pattern="src/**/*.py")
ListFiles(pattern="tests/test_*.py")
RunPython
RunPython(code="import sys; print(sys.version)")
Plugin registration
[project.entry-points."axio.tools"]
shell = "axio_tools_local.shell:Shell"
run_python = "axio_tools_local.run_python:RunPython"
write_file = "axio_tools_local.write_file:WriteFile"
patch_file = "axio_tools_local.patch_file:PatchFile"
read_file = "axio_tools_local.read_file:ReadFile"
list_files = "axio_tools_local.list_files:ListFiles"
Part of the axio ecosystem
axio · axio-tools-mcp · axio-tools-docker · axio-tui
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file axio_tools_local-0.3.5.tar.gz.
File metadata
- Download URL: axio_tools_local-0.3.5.tar.gz
- Upload date:
- Size: 38.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a49092f12cca5af5178a123691f3ecf07926a430231596b0e56c5318a9fef91b
|
|
| MD5 |
f5ea3e4de221091ffa9a6d134ed0426e
|
|
| BLAKE2b-256 |
c3ba7142cee604aaa40a61e21ab34cb931d3ee1d82ec98e40cfb2522df8c3125
|
Provenance
The following attestation bundles were made for axio_tools_local-0.3.5.tar.gz:
Publisher:
publish.yml on axio-agent/monorepo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axio_tools_local-0.3.5.tar.gz -
Subject digest:
a49092f12cca5af5178a123691f3ecf07926a430231596b0e56c5318a9fef91b - Sigstore transparency entry: 1238724616
- Sigstore integration time:
-
Permalink:
axio-agent/monorepo@b75ed768c0d97e0d2f174bc9688f6a90f76bcdbd -
Branch / Tag:
refs/tags/0.3.5 - Owner: https://github.com/axio-agent
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b75ed768c0d97e0d2f174bc9688f6a90f76bcdbd -
Trigger Event:
release
-
Statement type:
File details
Details for the file axio_tools_local-0.3.5-py3-none-any.whl.
File metadata
- Download URL: axio_tools_local-0.3.5-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff85c237999a9c3bcbcbfcec0dca15759bb442e89dfd684e5f367a8ccf6f9465
|
|
| MD5 |
b48360a77c2472db7ccb8201abb04bd1
|
|
| BLAKE2b-256 |
dae90c7b5106950352c53fca9a8d5d454a026710b9412eda2ac2728f7515e8eb
|
Provenance
The following attestation bundles were made for axio_tools_local-0.3.5-py3-none-any.whl:
Publisher:
publish.yml on axio-agent/monorepo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axio_tools_local-0.3.5-py3-none-any.whl -
Subject digest:
ff85c237999a9c3bcbcbfcec0dca15759bb442e89dfd684e5f367a8ccf6f9465 - Sigstore transparency entry: 1238724621
- Sigstore integration time:
-
Permalink:
axio-agent/monorepo@b75ed768c0d97e0d2f174bc9688f6a90f76bcdbd -
Branch / Tag:
refs/tags/0.3.5 - Owner: https://github.com/axio-agent
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b75ed768c0d97e0d2f174bc9688f6a90f76bcdbd -
Trigger Event:
release
-
Statement type: