Skip to main content

code

AI Agents Framework PraisonAI Code - AI-powered code editing tools. This module provides tools for AI agents to read, write, and modify code files with precision using search/replace diff strategies similar to Kilo Code. Features:
  • read_file: Read file contents with optional line ranges
  • write_file: Create or overwrite files
  • list_files: List directory contents with filtering
  • apply_diff: Apply SEARCH/REPLACE diffs with fuzzy matching
  • search_replace: Multiple search/replace operations
  • execute_command: Run shell commands safely
Example:

Import


Code Agent

Code Feature