Skip to main content

aegis_tools/
lib.rs

1//! # aegis-tools
2//!
3//! Built-in tool implementations for the Aegis agent.
4//!
5//! Provides the core tools that every Aegis agent has access to:
6//! - **ReadFileTool / WriteFileTool**: filesystem operations
7//! - **SearchFilesTool**: grep-based code search
8//! - **PatchTool**: apply unified diffs
9//! - **TerminalTool**: shell command execution (with security checks)
10//! - **SessionSearchTool**: search past conversations
11//! - **MemorySearchTool**: search agent memory by keyword
12//! - **RecordSearchTool**: search conversation records
13//! - **BrowserTool**: web browsing via bridge
14//! - **TodoTool**: task list management
15//! - **SpawnTaskTool**: create background tasks
16//!
17//! Tools implement the [`Tool`] trait and register into [`ToolRegistry`].
18
19mod registry;
20mod tools;
21pub mod batch;
22pub mod background;
23pub mod crates_io;
24pub mod skill;
25pub mod delegation;
26pub mod memory_search;
27pub mod output_buffer;
28pub mod record_search;
29pub mod remote;
30pub mod remotes;
31pub mod peers;
32pub mod control_tool;
33pub mod selfmod;
34pub mod session_tool;
35pub mod widget;
36
37pub use registry::{Tool, ToolContext, ToolRegistry};
38pub use tools::{
39    BrowserTool, CheckpointManager, ClarifyTool, MaigretTool, PatchTool, ReadFileTool, SearchFilesTool,
40    SessionSearchTool, SpawnTaskTool, TerminalTool, TodoTool, WebExtractTool, WebSearchTool,
41    WriteFileTool, read_todo_progress, todo_path, BackgroundTool, BgBackend,
42};
43pub use memory_search::MemorySearchTool;
44pub use record_search::RecordSearchTool;
45pub use crates_io::CratesTool;
46pub use skill::SkillTool;
47pub use remote::RemoteTool;
48pub use selfmod::SelfModTool;
49pub use session_tool::SessionTool;
50pub use control_tool::{ControlTool, AgentControl, execute_agent_command, CMD_PREFIX};
51pub use widget::{WidgetTool, load_widgets, render_widget_lines};