An early source says
诸葛亮 improved the existing
连弩 (repeating crossbow) into one that loosed ten iron bolts, eight inches long, at a single release. The hand-held repeating crossbows in museums, which drop bolts one after another from a box on top, are mostly Ming and Qing pieces that carry his name; the type itself is far older.