I have to believe that IN A SENSE both passages are correct and are in agreement.
You are exactly right. They are both correct and they are both in agreement, but the only way they can be in agreement is if they aren't talking about the same thing. If they are both talking about eternal salvation then there is clearly a contradiction in the Bible, and that is an impossibility.
Our works are not meritorious, and our works have not devised the plan of salvation.
It doesn't matter if you try to talk yourself out of works being meritorious or not. The only thing that matters is what the Bible says. And the Bible says that anything other than faith in the substitutionary death and shed blood of Jesus Christ, the Lamb of God is not a part of eternal salvation.
Your faith is ONLY in His works done on your behalf.
If you do ANYTHING in regard to eternal salvation then it is no longer grace and it is no longer a free gift, but it is wages for services rendered. Romans 5 I believe is where Paul makes that quite clear.
Just the same, God has commanded men to repent and to exercise faith in Him, which both are, at their roots, acts of the will , and as such are ‘works’ ‘in a sense.’
Repenting is a work that's what it is not required for eternal salvation, however faith is not a work.
One thing is for certain. Faith without works is dead, and dead faith has no power to save.
That is absolutely correct, but the question is power to save from what? You and most of Christendom want to say that it is power to save from eternal damnation, but that is not what the Bible says. Faith without works is dead and has no power to save one's soul from the second death, which is millenial in scope for believers.
If you believe in the coming kingdom and you believe that you can have a part in ruling and reigning with Christ, but you don't do the works that James calls for and other NT books call for then your faith is dead and useless. But eternity is not what is hanging in the balance.