Skip to content
PyRank
  • Search
  • PyPI
  • GitHub
  • Insights
  • Compare
  • Advisories
  • Ecosystem
  • About

Chain Of Thought Python Packages

Python packages with the GitHub topic chain-of-thought. Sorted by monthly downloads, with stars and forks.
Kiln-AI
kiln-ai

Build, Evaluate, and Optimize AI Systems. Includes evals, RAG, agents, fine-tuning, synthetic data generation, dataset management, MCP, and more.

5K 5K 406
ENDEVSOLS
longguard

In-flight circuit breaker & loop recovery for LangGraph, LangChain, OpenAI & Anthropic agents. Catches reasoning loops, prevents runaway LLM costs with budget hard caps, and auto-injects Reflect & Pivot prompts.

4K 8 1
codelion
optillm

Optimizing inference proxy for LLMs

4K 4K 398
Kiln-AI
kiln-server

Build, Evaluate, and Optimize AI Systems. Includes evals, RAG, agents, fine-tuning, synthetic data generation, dataset management, MCP, and more.

2K 5K 406
CotaAI
cota

Build domain AI assistants with annotated dialogue examples - 通过标注对话示例,低成本构建可靠智能体

1K 32 0
sunnybedi990
reasonchain

A modular AI reasoning library for building intelligent agents.

586 6 0
nicolay-r
bulk-chain

A no-string API framework for deploying schema-based reasoning into third-party apps

529 23 2
habedi
cogitator

A Python toolkit for chain-of-thought prompting 🐍

508 191 6
zjunlp
easyinstruct

[ACL 2024] An Easy-to-use Instruction Processing Framework for LLMs.

275 406 36
rudrasatani13
cot-redteam-agent

Red-team visible LLM reasoning — refusal quotes aren't success. Adaptive TUI, CI scan, OWASP tags, mock provider, proof-of-action agent lane.

249 2 2
Kernel-Dirichlet
cotarag

Agentic-AI framework w/o the headaches

192 9 0
mlchrzan
pairadigm

Concept-Guided Chain-of-Thought (CGCoT) pairwise annotation tool for systematic text evaluation using LLMs. Generate breakdowns, compare items, compute scores, and validate against human judgments. Supports Ollama, Hugging Face, Google Gemini, OpenAI, and Anthropic models.

175 11 1
kyegomez
the-compiler

The Compiler

168 144 17
agencyenterprise
promptinject

PromptInject is a framework that assembles prompts in a modular fashion to provide a quantitative analysis of the robustness of LLMs to adversarial prompt attacks. 🏆 Best Paper Awards @ NeurIPS ML Safety Workshop 2022

167 533 57
JPickard1
brad-enrichment

A command-line tool for BRAD enrichment analysis

163 2 0
Kreflux
openkreflux

OpenKreflux: Resilient multi-provider inference and chain-of-thought verification engine

144 0 1
saikoushiknalubola
thinkrouter

Cut LLM reasoning-token costs by 60% with one line of code

138 3 0
DaoyuanLi2816
tracedistill

Distill teacher chains-of-thought into a LoRA adapter via a strict boxed-answer format contract and a two-phase Train→Nudge schedule (silver-medal NVIDIA Nemotron reasoning recipe).

135 85 17
KazKozDev
prompt-playoff

Prompt optimization and benchmarking for local LLMs: picks the right prompt technique for your task and measures it on Ollama. DSPy-compatible.

117 2 0
terraprompt
fragaria

Fragaria is a powerful and flexible Chain of Thought (CoT) reasoning API that leverages various Language Model (LLM) providers and incorporates Reinforcement Learning (RL) techniques to solve complex problems and answer intricate questions.

110 21 1
LseKit
lsekit-sequentialthinking

Multi-step sequential thinking MCP server powered by large language models — structured reasoning with self-MoA and iterative thinking modes

66 1 0
Kiln-AI
kiln-studio

Kiln Studio

1 5K 406
    • Original data from PyPI, GitHub, and OSV; downloads served through ClickHouse
    • Sources & methodology