# ⚡️Making DeepSeek v4 outperform Opus 4.7 with Taste — @Ahmad Awais, CommandCode.ai
<!--
ref: @content/youtube/latent-space/2026-06-05-tool-confusion-repair-open-models-taste
version: 3
updated_at: 2026-10-31T19:14:50.985Z
-->
Ahmad Awais (Latent Space, 2026-06-05): Awais argues that most of the "open models are bad at agentic coding" discourse is a harness bug misattributed to the model.
*Synthesized from Ahmad Awais on Latent Space, 2026-06-05.*
Ahmad Awais is the founder of CommandCode.ai — a coding-agent CLI grown out of a six-year-old side project — with a background of 300+ open-source repositories, 13 years in WordPress core, and early GPT-3 access from Greg Brockman and Sam Altman in July 2020.
## Core Thesis
Awais argues that most of the "open models are bad at agentic coding" discourse is a harness bug misattributed to the model. His diagnosis, which he calls **tool confusion**: open models emit malformed tool-call arguments, get a strict Zod validation error back, and — unlike Claude — refuse to correct themselves, repeating the identical bad call. Repair the malformed call deterministically, return the *result* plus a hint about what the correct shape was, and the model self-corrects by the next call. The same "deterministic repair plus a compact contract" pattern, he claims, also fixes AI design slop.
## Key Insights
- **The failure is repetition, not incapability.** Awais measured DeepSeek V4 Pro repeating the same wrong tool schema on average **56 times per billion tokens** of usage. Sending back a Zod error changes nothing; the model treats its own output as correct. His hypothesis is that models trained heavily on outputs from a stronger model learn that what they are told is right, so they don't accept correction.
- **The fix is a migration-style repair layer.** He started with roughly **3,200 lines of tool repairs**, structured like database migrations — one repair per file. Typical repairs: an empty object or null passed where an optional argument belongs; a JSON string emitted where an array is required; a markdown link wrapped around a file path in a read call.
- **Repair *plus* a hint, not repair alone.** The critical detail is returning the successful result together with a note explaining the shape that should have been sent. Awais's analogy is teaching someone to drive: stop the crash first, then explain. He observed that the **third tool call after a repair hint is fixed** — the model generalizes immediately.
- **Judgment calls beat errors on missing arguments.** For a file read with no offset specified, CommandCode picks the first 100 lines by default; the model quickly figures out it wanted the last 100 of a log file and asks again — instead of burning 50+ failed tool calls per session.
- **It generalized beyond DeepSeek.** Checking 30 days of logs showed Kimi doing exactly the same thing, then MiniMax. CommandCode now carries roughly **16,000 repair variations** built from hundreds of billions of tokens, running about **600 billion tokens** of inference.
- **Claude Code hides the evidence.** Awais notes that many people point Claude Code at open models by swapping the base API endpoint and key, and Claude Code tucks errors behind Ctrl+O — so 50+ tool-call failures per session are invisible and read to the user as "DeepSeek is slow." He is blunt that Anthropic has no incentive to fix a harness for competitors' models.
- **The vibe change is measurable at the bottom of the range.** DeepSeek V4 Flash went from effectively unusable to competitive; a GP at Tom Preston-Werner's fund PW asked what they had done to it. One user ran **70 billion tokens** on DeepSeek in 12+ hour sessions, breaking CommandCode's usage page.
- **Fewer errors makes models more exploratory.** Awais draws a parallel to permission prompts: agents run with permission gates behave more poorly than agents on full bypass, even when a human approves everything. Interruptions and error floods both steer models off-course; a clean tool-call surface lets them go longer and be more creative.
- **Taste is an auto-managed skill layer keyed to the repo.** Taste One is what Awais calls a meta-neuro-symbolic model that watches accepts, edits, and rejects — triggered when you merge to main — and writes compact markdown rules into the repository, not into a vendor's model. Example learnings from his own CLI taste file: use pnpm for installs but `npm link` for local CLI linking; pnpm `onlyBuiltDependencies`; always start versioning at 0.0.1; prefer tsup and Vitest; use clack for interactive prompts.
- **A KL-divergence filter keeps the file small.** If the model already knows something, it doesn't belong in the taste file — that's wasted context. This is why his entire CLI-building taste, distilled from 70+ CLIs, fits in one short file.
- **Taste sits above skills, not beside them.** Awais's framing: taste is the highest-order bit managing your skills and rules — the engine that creates them, keeps them non-stale, and lets you edit them. Predates Claude skills (built October of the prior year). Portable via `npx taste pull`, which drops the file into your repo so any coding agent can follow it, and you can ask for a taste-compliance report at the end of a build.
- **Transparency was forced by merge semantics.** They initially hid the learned rules and got better wow-moments in head-to-head demos, but could not merge divergent taste files across 15 engineers and a thousand branches — only a human can adjudicate that. So learnings became visible markdown reviewed in every PR, each carrying an LLM-assigned confidence score (human-written rules get 1).
- **Handwritten rules and learned rules differ in grain.** Awais's observation: humans sit down and write grandiose rules ("always prefer X"), while taste captures micro-decisions — his real PR workflow is fetch main, rebase, PR from a branch, then switch back to main, which no one would think to write down but which the agent noticed him doing repeatedly.
- **Measured effect:** a study with **70+ developers** found the number of manual edits and mid-session steers dropped.
- **Design slop is a contract gap, not a capability gap.** From hundreds of billions of tokens plus interviews with designers, CommandCode built **24 reference documents, 10 design smells, and 7 surface patterns**. Awais claims this fixes about **90% of design slop**, across commercial and open models alike.
- **Intent before layout.** The root defect: asked to design a dashboard, models skip the question of what the surface is *for* and emit three cards in a row with a stray border. Naming the intent — a dashboard is a *monitoring* surface — via the seven-pattern framework changes the output substantially.
- **Force OKLCH over HSL.** Models control lightness poorly in HSL, producing colors a human instantly reads as mismatched; constrained to OKLCH they manage palettes far better. Awais notes designers work this way too, and that he personally doesn't use OKLCH.
- **Designers spot AI work in about 1.5 seconds.** Shown CommandCode-designed landing pages, designers identified the AI-made ones almost instantly — and the tells they named turned out to be deterministically fixable patterns.
- **The pattern is being ported to security.** A team member is working with a security community on the same loop: mine logs for the most common vulnerability patterns, then apply automatic repairs and guideline enforcement.
- **Community workflow that emerged:** build the first project with a strong model (Opus, GPT-5.5) to generate a high-quality taste file, then run cheap models against that file for subsequent work.
- **Roadmap and philosophy.** CommandCode is being open-sourced (targeted at the AI Engineer conference in SF), with Matt Mullenweg as an angel. Awais's positioning metaphor: OpenCode is Windows (every model works), Pi is Linux (build your own drivers), CommandCode aims to be Apple — a curated set of the best open and closed models, not 1,500 of them, but hackable enough to plug in your own local model. He also notes Qwen 3.7 Max became the second most-used model on CommandCode within days of release.
## Actionable Takeaways
1. Instrument tool-call failures in your agent harness and count them per session. If you're running open models through a harness built for Claude, assume the errors are hidden and go looking before blaming the model.
2. Build a deterministic repair layer for malformed tool arguments, organized one repair per file like DB migrations. Start with the common shapes: null/empty object in an optional slot, JSON string where an array is expected, markdown-wrapped file paths.
3. Return the repaired *result* along with a hint describing the correct schema — do not return a bare validation error. Expect self-correction within a couple of calls.
4. Supply sane defaults for missing optional arguments (e.g., first 100 lines on an offset-less file read) rather than erroring, and let the model refine on the next turn.
5. Reduce interruptions as well as errors: permission prompts measurably degrade agent trajectories even when every prompt is approved.
6. Keep learned agent rules in the repository as reviewable markdown, so they merge through PRs — automatic learning that hides its output cannot be merged across a team.
7. Filter learned rules against what the model already knows; only repeated, non-obvious preferences earn context space.
8. For design work, give the agent a compact contract instead of more prose: name the surface's intent first, enumerate a small set of patterns and smells, and constrain color to OKLCH.
9. Bootstrap a taste/rules file with an expensive model on one project, then run cheap models against that file for the rest.
## Notable Quotes
> "DeepSeek V4 Pro has this weird alpha male energy where whatever it sends you, it thinks that that is the right thing to do." — Ahmad Awais
> "It would repeat that same thing for like 56 times on average in a billion tokens." — Ahmad Awais
> "Instead of telling them what to do correctly, you'll first try to save them and then you will explain why you saved them." — Ahmad Awais
> "This always ends up being a tool call harness issue than an actual model issue." — Ahmad Awais
> "It feels like you can fix 90% of design slop, which is not a capability gap. It's more like a contract gap." — Ahmad Awais
> "If an LLM already knows about something, it should not end up in your skill or taste file. That is absolutely useless context." — Ahmad Awais
> "Taste is the highest order bit, which is managing your skills and rules." — Ahmad Awais
> "It takes about 1.5 seconds for them to spot, this is from AI and this is somebody human looked at it." — Ahmad Awais
> "If you run any coding agent with permissions on, the models are actually dumber." — Ahmad Awais
> "It will have the best of the best models, both open and closed. It will not have every model, but it will be hackable." — Ahmad Awais
---
*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).*