Functions§
- builtin_
tool_ behavior - canonical_
command_ session_ tool_ name - classify_
tool_ intent - is_
command_ run_ tool - Returns
trueiftool_nameis a direct command-run tool whose output is rendered inline as a terminal panel and whose raw process output (including ANSI) should be preserved rather than stripped/line-styled. - is_
command_ run_ tool_ call - is_
command_ session_ tool - Returns
trueiftool_nameis any alias of the unified command-session tool. - is_
command_ tool - Returns
trueiftool_namerefers to a command/PTY execution tool. - is_
edited_ file_ conflict_ guarded_ call - is_
exec_ session_ cleanup_ call - Cleanup stops or releases an owned execution session, never starts work.
- is_
parallel_ safe_ call - is_
parallel_ safe_ call_ with_ intent is_parallel_safe_callfor a call whoseToolIntentwas already computed on the same args. The non-command branches reuseintent.mutating(identical to re-classifying:builtin_tool_behavior.classify(args)ISclassify_tool_intent), so preflight paths avoid re-classifying the same args — a second tree-sitter parse for command payloads. The command-run branch still re-parses: parallel safety for command sessions is a separate predicate from the read-only intent.- is_
turn_ budget_ exempt_ call - Returns
truefor control-plane exec calls that should be exempt from the per-turn tool-call budget. - planning_
allowed_ actions - Returns the subset of actions that are allowed for a multi-action tool
when planning mode is active. Returns
Nonefor tools that are not multi-action or have no action-level restrictions. - remap_
file_ operation_ command_ args_ to_ command_ session - should_
use_ spool_ reference_ only