Once beans are nearly done or fully done, heat 1 tbsp oil over medium heat in a large, heavy casserole or Dutch oven and add chopped onion.
1 tbsp extra virgin olive oil, 1 large yellow onion
Cook, stirring, until just tender, about 5 minutes. Add rosemary and garlic and stir together for another minute, until garlic is fragrant.
2-3 sprigs fresh rosemary, 4 large garlic cloves
Stir in tomatoes and hot pepper. Add salt and pepper, and cook, stirring often, until tomatoes have cooked down and the mixture is very fragrant, 10 to 15 minutes.
28 oz chopped tomatoes, ½ tbsp salt, 1 tsp freshly ground pepper, 1 dried chili de arbol
Add 6 cups broth from the beans, tomato paste, bouquet garni and bring to a boil. Reduce heat, cover and simmer 30 minutes.
1 tbsp tomato paste
After it has simmered, stir in beans and heat through. Taste and adjust salt.
At this point, you should separate what you will be serving momentarily vs what will be saved for future meals. This makes about 4 servings, so if you're serving two, you should separate and store half.
For the portion you are serving imminently, add about 3 oz pasta shells and cook until they are al dente, about 10-15 minutes for typical dry pasta. Serve topped with Parmesan.
6 oz small dried pasta shells, 2 oz Parmesan cheese