Investigate-Consolidate-Exploit: A General Strategy for Inter-Task Agent Self-Evolution