Tools reference
Akmon’s agent invokes tools the model chooses from a fixed registry. Availability depends on mode (for example plan mode registers read-only tools) and CLI flags (--web-fetch, --index, --shell-allow, …).
Categories
Read & navigate
- read_file — read a file inside the sandbox.
- list_directory — list directory entries.
- search — ripgrep-style content search.
Edit
- write_file — create/overwrite (with confirmation and diff preview).
- edit / patch-style tools — apply targeted edits (with confirmation where configured).
Dry-run diff preview (file_change_set)
File-modifying tools support a deterministic diff payload that can be inspected before writes:
patchandapply_patchsupportdry_run: true.write_fileandeditalso supportdry_run: truefor preview-first workflows.- When
dry_runistrue, tools still run full validation and diff generation, but skip disk mutation.
file_change_set success payload shape:
type: alwaysfile_change_setmode:appliedordry_runchanges[]: canonical per-file diff entries (path,diff,lines_added,lines_removed,lines_changed)summary: aggregate line/file countsrisk: heuristic risk classification (low,medium,high)files[]: backward-compatible alias ofchanges[]
Practical flow:
- Run
patch(orapply_patch) withdry_run: true. - Parse
summary+riskand inspect eachchanges[i].diff. - Re-run the same call without
dry_runto persist changes (mode: "applied").
Git
- git — status, diff, log, add, commit, etc. (see Git integration).
Network
- web_fetch — HTTPS fetch with SSRF protections (optional via flag).
Semantic
- semantic_search — embedding search when
--indexand full build (see Semantic search).
MCP
Dynamic tools from configured MCP servers (MCP).
Permissions
The security model and policy engine decide auto-approval vs confirmation. Writes and dangerous operations require explicit approval unless your mode says otherwise.
Scout workflow (read-only)
akmon scout is a bounded read-only analysis workflow that generates a context_scout.v1 dossier under .akmon/context/.
- Uses read signals only (filesystem listing/reading/search-like path analysis).
- Does not invoke write/edit/patch/apply_patch/shell side effects.
- Emits deterministic sorted sections (
scanned_paths,key_entrypoints,candidate_files,related_tests) and explicit truncation indicators when bounds are hit.
Schema
Each tool exposes a JSON Schema for arguments; the model must call with valid JSON. Errors and outputs are fed back to the model and logged to the audit log.