Commit preflight
commit_preflight
GitPreflightTool — show working tree status for agent decision-making.
GitPreflightTool
Bases: AXMTool
Report working tree changes so the agent can plan commits.
Registered as git_preflight via axm.tools entry point.
Source code in packages/axm-git/src/axm_git/tools/commit_preflight.py
name
property
Tool name used for MCP registration.
execute(*, path='.', diff_lines=200, **kwargs)
Show current working tree status and diff summary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str
|
Project root (required). |
'.'
|
diff_lines
|
int
|
Max diff lines to include (default 200, 0 to disable). |
200
|
Returns:
| Type | Description |
|---|---|
ToolResult
|
ToolResult with file list, statuses, diff stats, and diff content. |