In a saucepan, heat the oil. Add the onion and cook over moderate heat until softened. Add the tamarind, garlic, chipotles, raisins, tomato paste, agave and chile powder. Bring to a boil and simmer over low heat until thick, 20 minutes. Let cool, then puree in a blender. Season with salt and pepper.