In all that is done in the universe, the Divine through his Shakti is behind all action but he is veiled by his Yoga Maya and works through the ego of the Jiva in the lower nature.
In Yoga also it is the Divine who is the Sadhaka and the Sadhana; it is his Shakti with her light, power, knowledge, consciousness, Ananda, acting upon the adhara and, when it is opened to her, pouring into it with these divine forces that makes the Sadhana possible. But so long as the lower nature is active the personal effort of the Sadhaka remains necessary.
The personal effort required is a triple labour of aspiration, rejection and surrender,—
*
* *
In proportion as the surrender and self-consecration progress the Sadhaka becomes conscious of the Divine Shakti doing the Sadhana, pouring into him more and more of herself, founding in him the freedom and perfection of the Divine Nature. The more this conscious process replaces his own effort, the more rapid and true becomes his progress. But it cannot completely replace the necessity of personal effort until the surrender and consecration are pure and complete from top to bottom.
Note that a tamasic surrender refusing to fulfil the conditions and calling on God to do everything and save one all the trouble and struggle is a deception and does not lead to freedom and perfection.