{"id":26189110,"url":"https://github.com/johnlindquist/deepseek-reasoning","last_synced_at":"2026-02-25T10:10:43.923Z","repository":{"id":273937714,"uuid":"921373787","full_name":"johnlindquist/deepseek-reasoning","owner":"johnlindquist","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-26T01:52:09.000Z","size":21,"stargazers_count":20,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-23T19:45:54.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/johnlindquist.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-01-23T20:41:27.000Z","updated_at":"2025-04-08T13:06:13.000Z","dependencies_parsed_at":"2025-04-15T01:34:55.362Z","dependency_job_id":null,"html_url":"https://github.com/johnlindquist/deepseek-reasoning","commit_stats":null,"previous_names":["johnlindquist/deepseek-reasoning"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/johnlindquist/deepseek-reasoning","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlindquist%2Fdeepseek-reasoning","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlindquist%2Fdeepseek-reasoning/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlindquist%2Fdeepseek-reasoning/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlindquist%2Fdeepseek-reasoning/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnlindquist","download_url":"https://codeload.github.com/johnlindquist/deepseek-reasoning/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnlindquist%2Fdeepseek-reasoning/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29817291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T05:36:42.804Z","status":"ssl_error","status_checked_at":"2026-02-25T05:36:31.934Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-12T00:30:37.441Z","updated_at":"2026-02-25T10:10:43.885Z","avatar_url":"https://github.com/johnlindquist.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DeepSeek Reasoning\n\nA CLI tool that combines DeepSeek's reasoning capabilities with GPT's summarization power. This project demonstrates how to:\n1. Use DeepSeek's reasoning model to analyze questions in detail\n2. Stream the reasoning process in real-time\n3. Use GPT to create concise, single-sentence summaries of the reasoning\n\n## 🎓 What You'll Learn\n\nThis project is tied to an egghead.io lesson that teaches you how to:\n- Extract and utilize DeepSeek's reasoning phase from their R1 model\n- Stream and parse API responses in real-time\n- Optimize costs by using different models for different tasks\n- Combine multiple AI models in a single workflow\n- Build a practical CLI tool that demonstrates these concepts\n\n## Why This Matters\n\nDeepSeek's R1 model provides detailed reasoning before summarization. By isolating this reasoning phase and using a faster model (like GPT-3.5-turbo) for summarization, you can:\n- Get high-quality reasoning from DeepSeek\n- Optimize costs by using a cheaper model for summarization\n- Improve response times in your applications\n- Create more efficient AI workflows\n\n## Features\n- Interactive CLI using Clack\n- Real-time streaming of DeepSeek's reasoning process\n- Automatic logging of all interactions\n- Clean summarization of complex reasoning\n- Cost-effective hybrid model approach\n\n## Requirements\n\nYou'll need API key for:\n- OpenRouter API (for GPT \u0026 DeepSeek access)\n\n## Setup\n\n1. Clone the repo:\n```bash\ngit clone https://github.com/johnlindquist/deepseek-reasoning.git\ncd deepseek-reasoning\n```\n\n2. Install dependencies:\n```bash\npnpm install\n```\n\n3. Create a `.env` file with your API keys:\n```bash\nOPENROUTER_API_KEY=your_openrouter_api_key\n```\n\n4. Run the CLI:\n```bash\npnpm tsx index.ts\n```\n\n## How It Works\n\n1. The CLI prompts you for a question\n2. DeepSeek's reasoning model analyzes your question, streaming its thought process in real-time\n3. The reasoning is captured and logged\n4. GPT 3.5 creates a concise, single-sentence summary of the reasoning\n5. Both the reasoning and summary are saved to timestamped log files\n\n## Implementation Details\n\nThe code demonstrates several key patterns:\n- Streaming API responses with proper TypeScript types\n- Early stream termination to capture only reasoning content\n- Efficient model switching for cost optimization\n- Structured logging for debugging and analysis\n- Clean CLI interactions with proper error handling\n\n## Tech Stack\n- TypeScript\n- OpenAI SDK (for OpenRouter)\n- Clack (for CLI interactions)\n- dotenv (for environment management) ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnlindquist%2Fdeepseek-reasoning","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnlindquist%2Fdeepseek-reasoning","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnlindquist%2Fdeepseek-reasoning/lists"}