rewrite knifemo AI