Skip to content
프로젝트

PhialsBasement/Chain-of-Recursive-Thoughts

GitHub에서 보기

PhialsBasement/Chain-of-Recursive-Thoughts has 2,325 GitHub stars and 119 forks. GitHot measured -1 stars in 24 hours and -1 in 7 days. Last checked 2026-11-12 15:59 UTC. Last push 2025-05-02.

이 수치를 측정하는 방법

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

측정된 스타 증가

in 24h
-1
in 7 days
-1
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

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:

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

(open a new shell)

cd frontend
npm start

Examples

Mistral 3.1 24B + CoRT rec

Mistral 3.1 24B non CoRT non-rec

Try it yourself

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

관련 프로젝트 살펴보기