# "Making DeepSeek v4 outperform Opus 4.7 with Taste" <!-- ref: @content/youtube/latent-space/making-deepseek-v4-outperform-opus-4-7-with-taste tags: [tool calling, open models, DeepSeek, deterministic repair, coding agents, design slop, learned preferences, open sourcing] version: 2 updated_at: 2026-11-22T08:53:35.013Z --> **[Watch on YouTube](https://www.youtube.com/watch?v=-rIAVuaRjOg)** # Making DeepSeek v4 outperform Opus 4.7 with Taste *Synthesized from Ahmad Awais in conversation with the host on Latent Space, 2026-06-06.* Ahmad Awais, an open-source developer and builder of a coding-agent CLI, explains how deterministic repair of tool calls lifted open models and how the same idea applies to design and learned preferences. ## Core Thesis Ahmad argues that much of the perceived weakness of open models such as DeepSeek V4 is a harness problem, "tool confusion", not a capability gap. Repairing malformed tool calls deterministically, and explaining the repair back to the model, sharply cuts failures. The same pattern, a short contract guiding the model, fixes design slop and can encode a developer's coding preferences. ## Key Insights - **Background.** He has written code for about 27 years, published 300-plus open source repositories, got early GPT-3 access in 2020, and began a CLI side project that grew into the product; the company previously ran an agent cloud at about 1.2 billion agent runs a month. - **Tool confusion.** DeepSeek V4 Pro sends wrong tool schemas (empty objects or nulls on optional fields) and, when given a strict validation error, repeats the same call; he cites about 56 repeats on average over a billion tokens. He suspects open models trained on higher-quality teacher output treat their own output as correct. Kimi and MiniMax showed the same behavior. - **Repair files.** Starting from about 3,200 lines, he built repair logic like database migrations, one file per fix, now roughly 16,000 variations across hundreds of billions of tokens (about 600 billion tokens at the time). Examples: converting a JSON string to an array, defaulting a file read to the first 100 lines, stripping markdown links in paths. - **Repair hints.** Return the result anyway plus a note on what should have been sent, like saving a learner driver then explaining. After the hint the next call is typically correct, and DeepSeek V4 Flash went from near useless to solid; he says failures also hide behind collapsed output in other harnesses, which blames the model unfairly. - **Sustained use.** One user ran about 70 billion tokens of DeepSeek, in 12-plus hour sessions. A $1 per month plan gave about 600 million DeepSeek tokens to prove the point. - **Design slop.** The same approach fixes the indigo-gradient look: 24 reference documents, 10 design smells and seven surface patterns gathered from designers, plus forcing OKLCH instead of HSL for controllable lightness. He claims about 90% of design slop is a contract gap, bundled as a slash design skill. - **Taste.** A learned-preferences layer builds per-repository skill files from accepts, edits and rejects at merge, filtering anything the model already knows. The files live in the repo, are reviewable in pull requests, and avoid stale agent.md content. Example: prefers pnpm but uses npm for local CLI linking. A study of 70-plus developers saw fewer edits and steers; users build a taste file with a strong model, then run cheap models on it. - **Roadmap.** Open sourcing the CLI, aimed at an AI engineering conference in San Francisco, with a philosophy of "like Apple": best open and closed models, hackable, not every model. ## Actionable Takeaways 1. Log tool-call failures per model before judging an open model. 2. Repair malformed arguments deterministically and return a hint about the correct form. 3. Organize repairs as one small file per fix. 4. Give design agents a short contract: intent first, a handful of surface patterns, OKLCH colors. 5. Keep learned preferences as reviewable files in the repo. 6. Build preference files with a strong model, then reuse them with cheaper ones. ## Notable Quotes > "I just discovered why and how DeepSeek can outperform Opus 4.7." — Ahmad Awais > "It's more like a contract gap in what your hardness is telling an LLM to do" — Ahmad Awais > "They are in your repository, not in our model." — Ahmad Awais --- *Related: `@content/youtube/yifan-bth/claude-code-beat-cursor-4-2-heres-why-im-still-using-both` · `@content/youtube/david-ondrej/build-anything-with-tmux-here-s-how` · `@content/youtube/cole-medin/ai-makes-us-way-faster-but-fries-our-focus-heres-what-i-do-about-it` · `@content/youtube/cole-medin/deepseek-just-built-the-next-generation-of-coding-agents` · `@content/youtube/nate-herk/i-tested-opus-5-5-vs-gpt-6-sol-on-10-real-use-cases`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*