I made my AI think harder by making it argue with itself repeatedly. It works stupidly well.
I made my AI think harder by making it argue with itself repeatedly. It works stupidly well.
CoRT makes AI models recursively think about their responses, generate alternatives, and pick the best one. It's like giving the AI the ability to doubt itself and try again... and again... and again.
YES. I tested it with Mistral 3.1 24B and it went from "meh" to "holy crap", especially for such a small model, at programming tasks.
If running on linux:
pip install -r requirements.txt
cd frontend && npm install
cd ..
python ./recthink_web.py(open a new shell)
cd frontend
npm startMistral 3.1 24B + CoRT
Mistral 3.1 24B non CoRT
pip install -r requirements.txt
export OPENROUTER_API_KEY="your-key-here"
python recursive-thinking-ai.pyThe magic is in:
Found a way to make it even better? PR's welcome!
MIT - Go wild with it
No open issues yet, or sync has not completed.