Skip to main content

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 the praisonai package:

Quick Start

Available Tools

ACP-Powered File Tools

LSP-Powered Code Intelligence

Read-Only Tools

Tool Details

acp_create_file

Creates a file through the ACP orchestration pipeline:
Example Response:

lsp_list_symbols

Lists all symbols in a file using LSP (with regex fallback):
Example Response:

Approval Modes

The approval_mode parameter controls how file modifications are approved:

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 functionality
  • pylsp (optional) - For LSP code intelligence

Production Caveats

  • LSP requires language server to be installed (e.g., pylsp for Python)
  • If LSP unavailable, falls back to regex-based symbol extraction
  • ACP tracking is in-memory; use external storage for persistence