# Making DeepSeek v4 outperform Opus 4.7 with Taste
<!--
ref: @content/youtube/latent-space/2026-06-05-making-deepseek-v4-outperform-opus-47-with-taste-ahmad-awais
tags: [open-models, tool-calling, coding-agents, agent-harnesses, taste-files, design-quality, developer-tools]
version: 2
updated_at: 2026-11-21T20:43:37.275Z
-->
**[Watch on YouTube](https://www.youtube.com/watch?v=-rIAVuaRjOg)**
*Synthesized from Ahmad Awais in conversation with the host on Latent Space, 2026-06-05.*
Ahmad Awais, who leads the Command Code coding agent, talks with an unnamed host about how open models fail in coding agents, and how his team's repair logic and "taste" files address those failures. The host is not named in the transcript. The guest previously led developer relations at an API marketplace company and spent years on open-source projects, as he describes.
*Notes: the captions spell the guest's name in other ways ("Amadou Wace" in the introduction, "Aman" later), so the name from the episode title is used. The captions also spell "harness" as "hardness" and garble a few model and company names; a model name the captions render as "3.7 max" is not used. The host's name is not stated.*
## Core Thesis
Ahmad Awais argues that many of the complaints about open models in coding agents are really tool-calling failures in the agent harness, not weaknesses in the models. He says his team fixes malformed tool calls deterministically and returns a short repair hint with the result, which lets open models such as DeepSeek V4 Pro compete with frontier models. He presents "taste" files, which the agent learns from a repository and stores as markdown, as the way to carry team preferences forward.
## Key Insights
- **Origin:** he says the path began with a 2020 CLI side project that suggested code, built on early GPT-3 access, and became the Command Code product after an earlier AI cloud and memory infrastructure business.
- **Tool confusion:** the team's name for the failure where a model keeps sending the same invalid tool call. DeepSeek V4 Pro repeated the same bad call about 56 times on average per billion tokens, and a session on a stock harness could show 50 or more tool-call failures.
- **Typical error:** models send an empty object or null for an optional argument, or wrap an array as a JSON string, and a strict schema check then rejects it. Returning the schema error alone does not help, so the team repairs the call and returns the result with a short repair hint.
- **Repair files:** the team keeps a library of repair rules, one per failure pattern, similar to database migrations. It reports 16,000 repair variations across hundreds of billions of tokens and about 600 billion tokens a day at the time of recording.
- **Generality:** the same failure appeared in Kimi and MiniMax models, so the fix was not specific to DeepSeek. One fix was to make the file-read tool return the first 100 lines when no offset is given, after which the model asked for the last 100 lines of a log.
- **Harness effect:** he argues that a bad harness makes a model look slow or weak. Reported gains include a model that was "practically completely not useful" becoming competitive after the repair work, and a user running 12-hour-plus sessions on DeepSeek.
- **Taste files:** the agent learns per-repository preferences, such as using pnpm for installs but npm for linking a local CLI, and stores them as markdown in the repository, where they can be reviewed in each pull request. Only preferences the model does not already know should be kept, to avoid stale or useless context.
- **Taste versus skills:** taste is the engine that creates and maintains skill files automatically, while a skill is the file it writes. A `taste pull` command installs a taste file for building CLIs, which he says he built more than 70 of.
- **Design slop:** the same repair approach was applied to generic AI design, such as the indigo-purple gradient and a set of repeated card layouts. He says a short framework of about seven surface patterns and roughly 10 rules fixes most of it, and that using OKLCH instead of HSL gives LLMs better control of lightness.
- **Study:** a study of more than 70 developers found their number of edits and corrections to the model dropped once taste files were in use.
- **Roadmap:** the team plans to open-source Command Code soon, aiming for the AI Engineer conference in San Francisco, and wants it to be hackable rather than a list of every model. It will carry the best open and closed models and allow local models.
## Actionable Takeaways
1. When an open model misbehaves in a coding agent, log tool-call failures first, since a repeated invalid call is often a harness problem rather than a model limit.
2. Repair common malformed tool calls deterministically, for example turning a JSON string into an array, and return the result with a short repair hint instead of only the error.
3. Make file-read tools return a sensible default window, such as the first 100 lines, and let the model ask for the rest.
4. Keep team preferences in a markdown file in the repository, and keep only entries the model does not already know, so the file stays small and reviewable.
5. For generated UI, give the model a short set of surface patterns and rules, and ask for OKLCH colors rather than HSL.
6. Build one project with a strong model to create a taste file, then reuse that file with cheaper models for the rest of the project.
## Notable Quotes
> "command your LLMs to do whatever you want them to do" — Ahmad Awais
> "It's more like a contract gap" — Ahmad Awais, on why design output misses what the user wants
> "Think of it like you're teaching somebody how to drive a car." — Ahmad Awais, on sending a repair hint with the result
---
*Related: `@content/web/huggingface/2026-11-26-real2simlab-unified-platform` · `@content/web/aiweekly/2026-11-01-harvard-coding-agents-flat-shipped-output` · `@content/youtube/ai-jason/agent-folder-is-making-claude-code-10x-better` · `@content/youtube/every-inc/2026-02-18-openai-s-codex-this-model-is-so-fast-it-changes-ho` · `@content/youtube/lennys-podcast/2026-04-02-an-ai-state-of-the-union-weve-passed-the-inflection-point-da`*
---
*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).*