Put the pasta in a large saucepan of boiling salted water, and cook for the specified time, usually about 8 minutes. Drain well.
Meanwhile, in a large saucepan heat the oil and infuse with the chilli, garlic, and thyme for a few minutes. Add the shallot and continue to cook for 2–3 minutes. Keep stirring to prevent the chilli and garlic from burning.