Pycmdai is a project mainly written in Shell, it's free.
Python Command Line AI system
This is an attempt to create a machine learning system to efficiently guess your next command using various attributes collected during usage.