WorkBuddy DeepSeek Reasoning Proxy
Paste the following prompt into your AI chat to install this skill:
Please install @user_95f5dfa2/arcdeepthink according to https://skillhub.cn/install/skillhub.md.
About this skill
Problem: WorkBuddy drops reasoning_content in multi-turn calls
DeepSeek's reasoning mode requires reasoning_content to be passed back on multi-turn API calls. If the field is missing, DeepSeek may return an error such as “The reasoning_content in the thinking mode must be passed back to the API.” In WorkBuddy’s Agentic mode, spawning sub-agent or assistant-message assembly can lose that field, breaking deepseek-v4-pro thinking-mode conversations.
Approach: a local proxy that caches and re-injects reasoning content
The skill does not change the model itself. It inserts a local HTTP proxy between WorkBuddy and DeepSeek, with deepseek_proxy.py as the core component. The behavior is intentionally narrow:
- Intercept requests: WorkBuddy sends requests to a
127.0.0.1proxy port instead of calling DeepSeek directly. - Inspect assistant messages: If an assistant message lacks
reasoning_content, the proxy restores it from a cache keyed by message position. - Forward the real request: The completed request is forwarded to
api.deepseek.com. - Cache reasoning output: After the response returns, the proxy extracts
reasoning_contentand stores it by assistant-message index for later turns. - Support response formats: Both streaming
SSEand non-streaming JSON responses are handled.
The helper tools deepseek_tool.py and 启动深度思考.bat start the proxy, update ~/.workbuddy/models.json, and switch back to direct mode. Prerequisites include an existing deepseek-v4-pro config, a valid API key, and Python 3.7+ standard-library support. The intended boundary is local WorkBuddy-to-DeepSeek usage, not public deployment, gateway authentication, or multi-tenant isolation.
Use Cases
- Enable the local proxy when WorkBuddy calls DeepSeek-V4 Pro and fails on multi-turn requests.
- Point models.json to the local proxy and verify streaming reasoning responses are complete.
- Toggle proxy and direct mode with the GUI to trace missing reasoning_content.
- Debug DeepSeek multi-turn field passback in a Python 3.7 standard-library setup.
Best For
- Engineers maintaining WorkBuddy model configs who need to fix DeepSeek thinking-mode errors.
- Developers debugging local LLM agents who need to intercept and re-inject reasoning_content.
- Application developers integrating DeepSeek-V4 Pro who need stable multi-turn streaming calls.
- Windows desktop users who want to switch between proxy and direct mode with a GUI.
Related Skills
Turn vague requests into structured prompts with role, task, context, and constraints, outputting only usable prompts without executing the task.
A skill for game NPC and enemy AI that separates decision, steering, and pathfinding, covering FSMs, behavior trees, A*, path caching, and pitfalls.
Provides multi-turn emotional companion chat through a third-party Agent API and supports continuing sessions via session_id.
An evaluation-driven workflow for diagnosing, optimizing, validating, and logging Agent Skills based on design patterns and anti-patterns.