agl-shell: Add split functionality into agl-shell protocol