My (anti-commie)hi-skool history teacher said Confucius was a proto-communists.
大道之行也,天下为公,选贤与能,讲信修睦,故人不独亲其亲,不独子其子,使老有所终,壮有所用,幼有所长,鳏寡孤独废疾者皆有所养;男有分,女有归,货恶其弃于地也不必藏于己,力恶其不出于身也不必为己,是故谋闭而不兴,盗窃乱贼而不作,故外户而不闭,是谓大同
https://www.wsws.org/en/articles/2019/03/20/comm-m20.html