Skip to main content

Module tools

Module tools 

Source
Expand description

Tool name constants to avoid hardcoding strings throughout the codebase

Constants§

AGENT
ALWAYS_AVAILABLE_WORKFLOW_TOOLS
Workflow-coordination tools that must remain available regardless of the [automation.full_auto].allowed_tools allow-list, so planning, checklist, and interview coordination keep working in Auto mode and other full-auto runs. These are control-plane (not execution blast radius): task_tracker owns only its session tracker file, start_planning only flips the planning-workflow state, and request_user_input still resolves through the interactive-session gate at execution time. Callers must pass the canonical tool name (see canonical_tool_name); matching is exact.
ANSWER_SESSION
APPLY_PATCH
ASK_QUESTIONS
ASK_SESSION
ASK_USER_QUESTION
BASH_ALIAS
CLOSE_AGENT
CLOSE_PTY_SESSION
CODE_SEARCH
COMPUTER_USE
CONTAINER_EXEC_ALIAS
COPY_FILE
CREATE_FILE
CREATE_PTY_SESSION
CRON
CRON_CREATE
CRON_DELETE
CRON_LIST
DELETE_FILE
EDIT_FILE
EXECUTE_CODE
EXEC_ALIAS
EXEC_COMMAND
EXEC_PTY_CMD
FETCH
FETCH_URL
FILE_OP
GET_ERRORS
GET_GOAL
GREP
GREP_FILE
LIFECYCLE_CLEANUP_TOOLS
Cleanup-only child-agent tools that must remain available regardless of the active primary agent’s tool policy, so restricted primaries can still join or close already-running child work. Add new lifecycle-only cleanup tools here.
LIST
LIST_FILES
LIST_PTY_SESSIONS
LIST_SESSIONS
LIST_SKILLS
LOAD_SKILL
LOAD_SKILL_RESOURCE
MATRIX
MCP
MCP_CONNECT_SERVER
MCP_DISCONNECT_SERVER
MCP_GET_TOOL_DETAILS
MCP_LIST_SERVERS
MCP_SEARCH_TOOLS
MEMORY
MOVE_FILE
READ_FILE
READ_PTY_SESSION
RECORD_DECISION
REPO_BROWSER_LIST_FILES
REPO_BROWSER_READ_FILE
REPO_BROWSER_WRITE_FILE
REQUEST_USER_INPUT
RESIZE_PTY_SESSION
RESUME_AGENT
RUN_PTY_CMD
SEARCH_REPLACE
SEARCH_TOOLS
SEND_INPUT
SEND_PTY_INPUT
SHELL
SPAWN_AGENT
SPAWN_BACKGROUND_SUBPROCESS
START_PLANNING
TASK_TRACKER
THINK
UNIFIED_EXEC
UNIFIED_FILE
UNIFIED_SEARCH
UPDATE_GOAL
WAIT_AGENT
WEB_FETCH
WEB_SEARCH
WILDCARD_ALL
Wildcard (not a real tool name — exempt from the canonical-name shape).
WRITE_FILE
WRITE_STDIN

Functions§

canonical_command_session_tool_name
Canonical command-session tool name for a possibly-aliased tool name.
is_command_session_tool
Returns true if tool_name is any alias of the unified command-session tool.
is_workflow_coordination_tool
Returns true for workflow-coordination tools that bypass the full-auto allow-list (see ALWAYS_AVAILABLE_WORKFLOW_TOOLS).