Grace and works are a tandem in Christian Scripture. Various writers want to make it plain that salvation is all of God but they all add some version of this alert; those who experience grace will work out the grace they experience with some form of earnest concern.
Good acts, works or deeds are the result of the grace-filled life, not the cause of it. Our motivation to do good can range from worship (good works to glorify God) or our own need for recognition (works for applause). The recipient of our good works may not care so much about our motivation but, apparently, God sees right though us. God knows if we do what is good for His glory or for our own recognition. Spontaneous kindness does result from Christian training (growth in grace and knowledge and in favor with God and man), which we often call discipleship.
All of this, grace and mercy, compassion, good works and spontaneous kindness, should be seen as the work of God in the human soul. The human with whom God interacts must be cooperative with God to grow in Christ. We know we grow in Christ when we leave behind obvious sin(s). This cannot be all our experience of grace, however, for any pagan can leave off “bad habits.” The push away from sin, to be godly, ought to be seen as a real pull to God, by God’s grace and for God’s glory.