DEV Community

Minh Phuong Nguyen
Minh Phuong Nguyen

Posted on Originally published at freestack-fawn.vercel.app

Parsing DeepSeek's <think> Tags: A Guide to CoT Extraction

The Rise of Observable Thinking

In 2026, models like DeepSeek-R1 and OpenAI's o1 have popularized the Chain of Thought (CoT) paradigm. They output a massive ... block before delivering the final answer.

This is amazing for reasoning, but terrible for downstream pipelines that just want the final JSON or text answer.

The CoT Extractor & Cleaner

To handle this, we released the DeepSeek CoT Extractor & Cleaner on OmniTool Hub.
It takes raw model output, instantly visualizes the "Thinking Process" separate from the "Final Output", and gives you a 1-click button to copy the cleaned text.

Even better, you can export the extracted thinking logs as JSONL to fine-tune your own smaller models on high-quality reasoning traces!

👉 Try the CoT Extractor on OmniTool Hub

Top comments (0)