AI Friends

that's interesting, implementation of this: ```def handle_editor_tool(tool_call): ...

that's interesting, implementation of this: ```def handle_editor_tool(tool_call): input_params = tool_call.input command = input_params.get('command', '') file_path = input_params.get('path', '') if command == 'view': # Read and return file contents pass elif command == 'str_replace': # Replace text in file pass elif command == 'create': # Create new file pass elif command == 'insert': # Insert text at location pass elif command == 'undo_edit': # Restore from backup pass``` https://docs.anthropic.com/en/docs/build-with-claude/tool-use/text-editor-tool Built right into versions of Claude. Guess you could do anything after editing a file, restart a service etc in the code.
docs.anthropic.com
Design