Introduced agent-based debug logging
Reorganized autocompletion