Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

Chain-of-Recursive-Thoughts

> 编程语言
Open source

I made my AI think harder by making it argue with itself repeatedly. It works stupidly well.

2.3K stars0 likes2 views
WebsiteGitHub

About

I made my AI think harder by making it argue with itself repeatedly. It works stupidly well.

CoRT (Chain of Recursive Thoughts)

TL;DR: I made my AI think harder by making it argue with itself repeatedly. It works stupidly well.

What is this?

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.

Does it actually work?

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.

How it works

  1. AI generates initial response
  2. AI decides how many "thinking rounds" it needs
  3. For each round:
    • Generates 3 alternative responses
    • Evaluates all responses
    • Picks the best one
  4. Final response is the survivor of this AI battle royale

How to use the Web UI(still early dev)

  1. Open start_recthink.bat
  2. wait for a bit as it installs dependencies
  3. profit??

If running on linux:

bash
pip install -r requirements.txt
cd frontend && npm install
cd ..
python ./recthink_web.py

(open a new shell)

bash
cd frontend
npm start

Examples

Mistral 3.1 24B + CoRT

Mistral 3.1 24B non CoRT

Try it yourself

python
pip install -r requirements.txt
export OPENROUTER_API_KEY="your-key-here"
python recursive-thinking-ai.py

The Secret Sauce

The magic is in:

  • Self-evaluation
  • Competitive alternative generation
  • Iterative refinement
  • Dynamic thinking depth

Star History(THANK YOU SO MUCH)

Contributing

Found a way to make it even better? PR's welcome!

License

MIT - Go wild with it

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言