Behind-the-scenes footage that includes the storyboard and previs: https://www.youtube.com/watch?v=ZttmVtWZkUc&t=340s
The original source code for the boids program described in "Behavioral animation": http://www.red3d.com/cwr/code/boids.lisp
The accompanying paper: http://www.red3d.com/cwr/papers/1987/boids.html