CosTriage is a cost-aware algorithm for bug triage in bug reporting systems. It improves upon previous approaches by considering both accuracy and cost (expected bug fix time) when assigning bugs to developers. It uses a topic modeling technique to categorize bugs into types to address the sparseness problem in past bug fix history data. It then constructs developer profiles based on estimated bug fix times for different bug types. A hybrid recommender system merges scores from a classifier and the cost profiles to recommend bug assignments that optimize both accuracy and cost, improving expected fix time by up to 30% without sacrificing much accuracy.