# PhialsBasement/Chain-of-Recursive-Thoughts

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

Repository: https://github.com/PhialsBasement/Chain-of-Recursive-Thoughts
Canonical: https://ross.abutalabs.com/products/chain-of-recursive-thoughts
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2025-05-02T03:02:43+00:00

## Health v2 (maintenance only)
Score: 28/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 19, release rhythm 35, longevity 35
- inputs: {"age_days": 493, "days_push": 488, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2328, forks 122 (observed 2026-08-28T04:06:37.572096+00:00)

## What it is
CoRT (Chain of Recursive Thoughts) is a tool that makes LLMs recursively refine their answers by generating multiple alternative responses, evaluating them, and picking the best one over several thinking rounds. It ships as a Python CLI script plus an early-stage web UI, and works with models via OpenRouter.

## Use cases
- make a small local LLM reason better on coding tasks
- improve AI response quality by having the model argue with itself
- run recursive self-evaluation loops over LLM answers
- compare and pick the best of several AI-generated responses
- boost Mistral or other OpenRouter models' reasoning depth
- experiment with iterative LLM refinement techniques

## When to choose
- you want better reasoning from small local models without fine-tuning
- you use OpenRouter or compatible APIs and want a drop-in thinking loop
- you want a simple script or early web UI to experiment with self-critique prompting

## When to avoid
- you need production-grade, latency-sensitive inference (multiple rounds multiply cost and time)
- you need a maintained library with a stable API rather than an experimental project
- you want built-in support for providers other than OpenRouter without code changes

## Facets
- artifact type: application
- maturity: active
- function: llm-inference, agent-framework, prompt-engineering
- domain: large-language-models, artificial-intelligence, developer-tools
- platform: python, cross-platform, cli
- tags: recursive-thinking, self-evaluation, reasoning-enhancement, openrouter, llm-wrapper, web-ui, nodejs

## Member repositories
- PhialsBasement/Chain-of-Recursive-Thoughts (main) score 28

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:37.572096+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:38:12.573167+00:00, confidence not recorded.
  - readme: https://github.com/PhialsBasement/Chain-of-Recursive-Thoughts (fetched 2026-08-28T04:06:37.572096+00:00, sha a427883a35f4)
- Data as of 2026-08-30T08:39:29.467469+00:00.
