You obtain new Blood Codes and abilities by defeating boss enemies and progressing through the story. Each defeated boss typically drops a new Blood Code, granting you access to a unique set of abilities and skills. Additionally, you can discover Vestiges, which are remnants of lost memories, to unlock further enhancements for your Blood Code.