⚡️Making DeepSeek v4 outperform Opus 4.7 with Taste — @AhmadAwais , CommandCode.ai

| Podcasts | June 06, 2026 | 4.71 Thousand views | 40:41

TL;DR

Ahmad Awais reveals how CommandCode.ai fixed DeepSeek v4's 'tool confusion' through deterministic repair logic, enabling the open-source model to outperform Claude Opus 4.7 by eliminating repetitive schema errors that previously caused an average of 56 failed tool calls per session.

🔧 The Tool Confusion Problem 3 insights

DeepSeek's stubborn error loops

DeepSeek V4 Pro exhibits a refusal to correct itself when sending invalid tool schemas (empty objects, nulls, or markdown links in file paths), repeating the same incorrect calls approximately 56 times on average rather than listening to Zod validation errors.

Hidden failures in agent harnesses

Many coding agents mask tool call failures behind permission prompts (Ctrl+O), leading users to blame model slowness on the model itself rather than on deterministic schema mismatches that are easily fixable.

Training data authority bias

Open models appear trained on high-quality synthetic data where corrections are rare, causing them to treat their initial outputs as inherently correct and resist external error feedback as invalid.

🛠️ Deterministic Repair Architecture 3 insights

Migration-style error correction

Command Code implemented 3,200+ lines of deterministic repair logic (similar to database migrations) that automatically fixes specific DeepSeek errors like JSON strings instead of arrays or missing file read offsets before returning results.

Hint-based teaching mechanism

Instead of rejecting failed calls, the system returns the repaired result alongside a 'repair hint' explaining what the model should have sent, which trains the model to correct its third subsequent tool call autonomously.

Massive variation coverage

The system now handles 16,000 repair variations across 600 billion tokens monthly, having applied similar fixes to Kimi and MiniMax models with identical stubborn tool-calling patterns.

👤 Taste and Model Steering 2 insights

Meta-neuro-symbolic preferences

The 'Taste One' architecture encodes developer preferences—such as using pnpm for packages but npm for global links—into lightweight skill files learned per repository, steering models without verbose documentation.

Reduced friction boosts creativity

Eliminating tool call errors allows models to maintain context and creativity across ultra-long sessions, with one user running 70 billion tokens over 12+ hours without the model degrading.

📊 Impact and Open Model Viability 2 insights

DeepSeek's dramatic transformation

DeepSeek V4 Flash went from 'completely not useful' to competing with Claude Opus 4.7 after repairs, with investors immediately noticing the qualitative improvement in output vibe and reliability.

Democratizing high-performance AI

Command Code launched a $1/month plan offering 600 million DeepSeek tokens to prove open models match closed-source performance when tool-call issues are resolved at the infrastructure level.

Bottom Line

Implement deterministic tool-call repair logic with educational hints rather than standard error rejection to unlock open-source model performance that rivals premium closed alternatives.

More from Latent Space

View all
🔬 "The Most Innovative Diffusion Research Is Happening in Drug Discovery, Not Image Generation"
1:48:40
Latent Space Latent Space

🔬 "The Most Innovative Diffusion Research Is Happening in Drug Discovery, Not Image Generation"

Evan Fineberg and Sergey Udov of Genesis Molecular AI discuss how diffusion models have pivoted from image generation to drive breakthroughs in 3D protein structure prediction. They detail how their Pearl model applies LLM-style scaling strategies—including synthetic physics-based training data and inference-time 'thinking'—to solve the historically intractable challenge of predicting how small molecules bind to proteins.

21 days ago · 7 points
AI Security After Codex and Claude Code — Zico Kolter & Matt Fredrikson, Gray Swan
1:07:31
Latent Space Latent Space

AI Security After Codex and Claude Code — Zico Kolter & Matt Fredrikson, Gray Swan

Gray Swan co-founders Zico Kolter and Matt Fredrikson explain why AI systems require a fundamentally different security approach than traditional software, highlighting how their automated red teaming system 'Shade' has begun to outperform human experts at finding model vulnerabilities. They emphasize the urgent need to treat AI agents as inherently untrusted entities capable of correlated failures across the software ecosystem.

29 days ago · 8 points