Aegis tools
Aegis exposes a curated, self-describing tool registry. Every tool carries a risk classification — read-only, safe-write, destructive, or interactive — and the agent loop uses it to decide when to prompt, what to auto-continue, and how to handle interrupts. The tables below list every available tool, what it does, and the arguments it accepts.
Read-only tools
Pure readers and searchers. They never mutate files, can run in parallel, and need no confirmation before execution.
| Tool | What it does | Required args | Optional args |
|---|---|---|---|
| analyze_audio | Sends an MP3 audio file to AI Studio for analysis and transcription. | mp3_path | — |
| analyze_image | Captures one or more local images and embeds them inline as base64 for multimodal processing. | — | image_path, image_paths |
| ast_search | Performs structural AST searches: all subclasses of a class, or every function/method carrying a given decorator. | query_type, target_name | root_dir |
| diff_files | Returns a unified diff between two files. | path_a, path_b | — |
| escape_string | Escapes text so nested-string execution cannot break across Python, AppleScript, JavaScript, and Shell layers. | text, target | — |
| fetch_url | Fetches a URL and intelligently extracts the main content (title, description, article text). | url | max_length |
| find_references | Finds all references to a symbol (variable, function, class) across the project using AST. | symbol_name | root_dir |
| get_goal | Returns the short-term or long-term goal from the active session or goals.txt. | goal_type | — |
| grep_search | Searches for regex patterns, streaming and limiting output for memory efficiency. | — | query, dir_path, include_pattern, recursive, queries, max_results, word_match, exclude_pattern, include_dirs, literal, context_lines, show_scope, files_with_matches, group_by_file, max_count, include_patterns |
| http_request | Sends an HTTP request and returns structured JSON (status, headers, body, timing). | url | method, headers, data, timeout, follow_redirects |
| lint_python_file | Performs lightweight static analysis and syntax validation on a Python file. | file_path | — |
| list_directory | Lists the contents of a directory to map the file system, with optional recursion and stats. | — | dir_path, recursive, max_depth, include_stats |
| lsp_query | Runs semantic queries — definition, references, completion, hover — against the Python language server. | action, file_path, line, column | — |
| python_eval | Executes a block of Python code in a stateful, persistent evaluation session. | code | — |
| read_file | Reads the content of one or more files, with line-range extraction, repr mode, and force refresh. | — | file_path, file_paths, files, as_repr, show_lines, refresh, start_line, end_line |
| read_symbols | Returns class names, function signatures, line ranges, and optionally full source content. | file_path | include_content |
| retrieve_result | Retrieves the full content of a previously truncated tool output by its retrieval key. | key | — |
| search_text | Searches for exact (fixed) text across files, optimized for memory efficiency. | query | dir_path, include_pattern, recursive, max_results |
| visual_diff | Diffs two images and returns a pixel-level comparison report with base64 visual markers. | — | x, y, width, height, delay_seconds, file1_path, file2_path |
| web_search | Searches the web across multiple engines with cascading fallback and site or time filtering. | query | num_results, site_filter, time_range |
Safe-write tools
Localized editors. They modify only the targeted block, create a backup, and run syntax validation before applying the change.
| Tool | What it does | Required args | Optional args |
|---|---|---|---|
| apply_and_verify | Applies an edit and runs a verification command, rolling back automatically if the check fails. | file_path, test_command, original_text, replacement_text | — |
| ast_modify | Surgically modifies Python using AST — replace a symbol or insert into a class. | file_path, symbol_path, new_code | action |
| edit_small_block | Replaces a unique block of text in a file, with backup, syntax validation, and raw-repr diagnostics. | file_path, original_block, replacement_block | — |
| fuzzy_patch | Fuzzy-replaces a block of text in a file by sequence similarity matching when exact text is unavailable. | file_path, search_block, replacement_block | threshold |
| insert_lines | Inserts one or more lines at a specified line number with explicit base indentation. | file_path, line_number, line_text, indentation_count | expected_content, threshold |
| regex_replace | Replaces occurrences of a regex pattern in a file with a string or an evaluated Python expression. | file_path, pattern, replacement | is_eval |
| rename_symbol | Safely renames a symbol (function, class, variable) across the project using AST. | old_name, new_name | root_dir |
| replace_string | Replaces every occurrence of a string within a file or multiple files, creating a backup. | — | file_path, target, replacement, file_paths |
| set_goal | Sets a short-term or long-term goal in the active session or goals.txt. | goal_type, text | session_name |
| write_file | Writes text contents to a file, creating parent directories as needed. | file_path, contents | — |
Destructive tools
High-impact operations that change state, spawn processes, or modify the real system. The agent loop gates these behind confirmation and treats them as non-parallelizable.
| Tool | What it does | Required args | Optional args |
|---|---|---|---|
| colab | Manages Google Colab session VMs through the colab CLI — create, exec, run, list files, upload/download, install, stop. No browser needed. | action | session, text, file, path, remote_path, local_path, gpu, tpu, timeout, keep, n_lines, log_type, packages, requirement, output_image, script_args |
| computer_use | Controls the real macOS cursor with stateful, delta-based movement and captures the screen. | — | action, dx, dy, clicks, button, color, click |
| delete_lines | Deletes specified lines from a file, verifying each line's content before removal. | file_path, lines | force_delete, threshold |
| emergency_interrupt | Sends an emergency interrupt signal to a target agent. | target_agent | message |
| get_agent_activity | Returns the last N activity entries for a target agent. | target_agent | n |
| interactive_term | Manages a stateful interactive pseudoterminal (PTY) session. | action | command, text, rows, cols |
| lvcs | Interacts with the local version control system — status, commit, log, restore, diff, and more. | action | message, author, target_hash, force, file, page, page_size |
| message_agents | Communicates with other agents in multi-agent mode — view, message, and check inbox. | action | target_agent, message, wait_for_response, timeout_seconds, filter_sender, mark_read |
| recover_turn | Recovers the full text of a conversation turn that has been compressed or hidden. | turn_number, kwargs | — |
| reload_tools | Reloads the tool registry transactionally, rolling back to the prior toolset if any module fails to reload. | — | — |
| shell | Executes a shell command in a persistent background process. | command | wait_seconds |
| shell_input | Sends text input to the currently running shell process's stdin. | text | — |
| shell_interact | Interacts with the running shell process — read incremental output or send keystrokes. | action | text, tail_lines, wait_seconds |
| shell_wait_for | Executes a command and waits until a regex pattern appears in the output or a timeout is reached. | command, regex_pattern | timeout_seconds |
Interactive tools
Stateful, long-lived sessions that drive a real web browser without stealing focus.
| Tool | What it does | Required args | Optional args |
|---|---|---|---|
| browser_execute | Stateful browser interaction via Selenium — navigate, click, type, analyze, and run scripts. | action | url, selector, text, script |
How risk is classified
Read-only tools never write and always run. Safe-write tools mutate a bounded target and require a backup plus verification. Destructive tools can change system state or spawn processes, so the harness treats them as serial and confirmation-gated. Interactive tools maintain a session across calls and are the only tools allowed to drive long-lived state.
The registry is self-describing: each tool exposes its name, argument schema, and risk level, and the agent loop reads that metadata to decide prompting, parallelization, and interrupt behavior.