PurposeDrawing on goal-setting theory and team effectiveness theory, the study aims to examine the impact of agile taskwork and agile teamwork on team performance. In addition, it investigates the mediating effect of project commitment on the impact of agile taskwork and agile teamwork on team performance. Furthermore, the study also tests the moderating role of career level on the impact of agile taskwork and agile teamwork on team performance.Design/methodology/approachSurvey data were collected from 563 employees working in 290 information technology (IT) companies in India using a self-reporting structured questionnaire. Partial least squares path modeling was used to test the hypothesized model, and the Process macro was used to test the moderating effect.FindingsThe results show that agile taskwork and agile teamwork positively affect team performance and project commitment, and project commitment positively impacts team performance. Furthermore, project commitment fully mediates the relationship between agile taskwork and team performance and partially mediates the relationship between agile teamwork and team performance. Furthermore, the career level negatively moderates the impact of agile taskwork and agile teamwork on team performance.Practical implicationsThe study shows the importance of agile work practices and project commitment to enhance team performance. Thus, the study provides managers with two strategies to improve their team performance.Originality/valueThere is a scarcity of research examining the distinct effects of agile taskwork and agile teamwork on team performance and the mediating role of project commitment in these relationships. Furthermore, as per the empirical evidence, no previous research has empirically examined the moderating role of career level in the agile taskwork-team performance and agile teamwork-team performance relationships.