Overview
The Agent-Centric Tools module provides tools that route file operations and code intelligence through LSP (Language Server Protocol) and ACP (Agent Communication Protocol), making the Agent the central orchestrator for all actions. This ensures:- Plan → Approve → Apply → Verify flow for file modifications
- LSP-powered code intelligence with fallback to regex
- Full action tracking via ACP sessions
- Multi-agent safe operations with proper attribution
Installation
The agent-centric tools are included in thepraisonai package:
Quick Start
Available Tools
ACP-Powered File Tools
| Tool | Description | Risk Level |
|---|---|---|
acp_create_file | Create file with plan/approve/apply/verify | Medium |
acp_edit_file | Edit file with ACP tracking | Medium |
acp_delete_file | Delete file (requires approval) | High |
acp_execute_command | Execute shell command with tracking | High |
LSP-Powered Code Intelligence
| Tool | Description | Fallback |
|---|---|---|
lsp_list_symbols | List symbols in file | Regex extraction |
lsp_find_definition | Find symbol definition | Grep search |
lsp_find_references | Find symbol references | Grep search |
lsp_get_diagnostics | Get errors/warnings | N/A |
Read-Only Tools
| Tool | Description |
|---|---|
read_file | Read file content |
list_files | List directory contents |
Tool Details
acp_create_file
Creates a file through the ACP orchestration pipeline:lsp_list_symbols
Lists all symbols in a file using LSP (with regex fallback):Approval Modes
Theapproval_mode parameter controls how file modifications are approved:
| Mode | Behavior |
|---|---|
manual | All modifications require explicit approval |
auto | All modifications are auto-approved |
scoped | Safe operations auto-approved, dangerous require approval |
Architecture
Operational Notes
Performance
- All imports are lazy-loaded
- LSP client starts only when
lsp_enabled=True - ACP session is lightweight (in-process)
Dependencies
praisonaiagents- Core agent functionalitypylsp(optional) - For LSP code intelligence
Production Caveats
- LSP requires language server to be installed (e.g.,
pylspfor Python) - If LSP unavailable, falls back to regex-based symbol extraction
- ACP tracking is in-memory; use external storage for persistence
Related
- Interactive Runtime - Runtime configuration
- Debug CLI - Debug commands for LSP/ACP
- ACP - Agent Communication Protocol

