Solving Tool Confusion and Design Slop in Open Model Coding Agents

commandcode · Tech · 2026 · source Agentic: yes · promotional bias: med · source-backed · extracted with prompt 0.5.6 (schema v2)

Generated from extraction.json — do not edit by hand. Every claim cites verbatim source evidence; stated means the quote directly asserts the claim, implied means it supports it indirectly.

Problem

Domain: Open-model coding agent reliability and preference learning

CommandCode needed open coding models such as DeepSeek to work reliably in production agent harnesses, where malformed tool calls, repeated schema errors, design slop, and missing developer preferences made otherwise capable models feel unusable.

Constraints:

Architecture

CommandCode added deterministic repair layers around coding-agent behavior: malformed tool calls are intercepted, normalized into valid calls when the intent is clear, and returned with repair hints so the model learns the expected schema; the same repair-pattern approach is extended to UI design slop; and a Taste system automatically creates, maintains, and applies skills/rules that capture developer preferences across repositories.

Diagram confidence: reconstructed (reconstructed from prose).

flowchart LR
  A["Coding model"] --> B["Tool-call repair layer"]
  B --> C["Tool execution harness"]
  B --> D["Repair hints"]
  D --> A
  B --> E["Repair-pattern logs"]
  E --> F["Design repair layer"]
  F --> A
  A --> G["Taste memory"]
  G --> H["Skill files"]
  H --> A
Drag to pan · scroll or use +/− to zoom · reconstructed from the source's described component topology

Components

Component Role Interacts with
Coding model Open or commercial LLM producing coding-agent tool calls and UI/code outputs. Tool-call repair layer, Design repair layer, Taste memory
Tool-call repair layer Detects malformed tool-call patterns and deterministically repairs them. Coding model, Tool execution harness, Repair hints, Repair-pattern logs
Tool execution harness Runs repaired shell/read/edit or other coding-agent tools. Tool-call repair layer, Coding model
Repair hints Feedback returned with tool results to teach the model the expected schema. Tool-call repair layer, Coding model
Repair-pattern logs Observed tool-call failures and repair variations across token-scale usage. Tool-call repair layer, Design repair layer
Design repair layer Applies deterministic guidance for common AI-generated UI design failures. Coding model, Repair-pattern logs
Taste memory Portable developer preference and skill/rule memory generated from observed behavior. Coding model, Skill files
Skill files Repository-local instructions and preferences created or managed by Taste. Taste memory, Coding model

Data flow

A coding model emits a tool call. CommandCode detects known malformed patterns, repairs the call into a valid schema, executes it, returns the result plus a repair hint, and tracks failure patterns across logs. Taste separately observes coding preferences and writes portable skill/rule files that future coding agents can follow.

3 supporting quotes
“instead of sending back that error, I ended up repairing that, right?”transcript, stated
“I will also send back a note, a hint, a repair hint that, you know, you should have sent me this type of data”transcript, stated
“Skill Taste is this automatic engine of sorts that is that is creating skills for you, making sure they're not stale”transcript, stated

Why this architecture

CommandCode treats model failures as often deterministic harness-integration failures rather than pure model-quality problems: repairing clear malformed calls gives the model progress and feedback, reducing repeated errors without waiting for the base model to change.

3 supporting quotes
“We have been able to figure out how to deterministically fix tool calling for open source models or open models.”transcript, stated
“if it is sending you wrong schema of the tool calls, and you send back a Zod error, it doesn't listen to you.”transcript, stated
“And the data on failure of those tool calls super super important.”transcript, stated

Models used: DeepSeek V4 Pro · DeepSeek V4 Flash · Claude · GPT · Kimi · MiniMax

Scale

Alternatives considered (roads not taken)

Return schema errors and ask the model to self-correct

Rejected because: Some open models repeated the same invalid call many times instead of using the error.

“you send back a Zod error, it doesn't listen to you. It would repeat that same thing”transcript, stated

Assume the issue is DeepSeek-specific

Rejected because: The same patterns appeared in Kimi and MiniMax logs.

“I thought this is just DeepSeek. Then I looked at our, you know, logs for last 30 days and Kimi is doing exactly the same thing.”transcript, stated

Let users manually maintain all preferences

Rejected because: Taste is designed to create and refresh skills automatically rather than relying only on manual memory.

“Skill Taste is this automatic engine of sorts that is that is creating skills for you, making sure they're not stale”transcript, stated

Patterns

fallback-degradation (reliability)

Malformed tool calls are repaired when intent is clear rather than failing the interaction outright.

“you have one migration per file. So I ended up creating repair files.”transcript, stated

tool-use-orchestration (agent-architecture)

CommandCode wraps coding-agent tool execution with deterministic schema repair and hints.

“when you're running a coding agent, tool call on a very basic thing is like, you know, if you're trying to run a bash or shell tool”transcript, stated

agent-memory (agent-context)

Taste captures reusable coding preferences and maintains skills/rules across projects.

“Skill Taste is this automatic engine of sorts that is that is creating skills for you, making sure they're not stale”transcript, stated

eval-driven-development (evaluation)

CommandCode mines large-scale tool failure logs to identify repairable model behavior.

“And the data on failure of those tool calls super super important.”transcript, stated

Tradeoffs

Repair instead of reject malformed calls.

Chose deterministic repair plus hint over returning validation errors only.

Rationale: The repair keeps the agent moving and trains future calls toward the right schema.

“Instead of telling them what to do correctly, you'll first try to save them and then you will explain”transcript, stated

Use repair files like migrations.

Chose many explicit repair variations over one broad prompt asking the model to behave.

Rationale: Specific deterministic repairs match recurring observed failures and can be generalized across models.

“Think of it this repair logic like, you know, database migrations. You know, you have one migration per file.”transcript, stated

Automate preference memory.

Chose Taste-created skill files over manual preference steering in every session.

Rationale: Taste makes preferences portable and keeps skills from going stale.

“creating skills for you, making sure they're not stale, and you can obviously go edit them yourself as well.”transcript, stated

Gotchas (what bit them)

Schema-error feedback can trap open models in loops.

Root cause: Some models treat their malformed output as correct and repeat it despite validation errors.

Resolution: Repair the call, return the result, and include a hint explaining the expected schema.

“I will also send back a note, a hint, a repair hint that, you know, you should have sent me this type of data, but here is the result anyway.”transcript, stated

Tool errors can make capable models look slow or bad.

Root cause: Harnesses may hide repeated failures, leaving users to perceive model slowness.

Resolution: Expose and repair tool-call failures before they waste long sessions.

“you don't even know that, you know, you have like 50 plus tool call failures plus per session.”transcript, stated

UI design slop repeats across models.

Root cause: LLMs share finite recurring design mistakes such as default gradient-heavy patterns.

Resolution: Use deterministic design repair guidance and skill files to constrain those patterns.

“There's a finite set of things that most LLMs do.”transcript, stated

Evaluation

CommandCode evaluates repair logic by mining massive token-scale tool-call logs, comparing failure rates before and after deterministic repairs, observing model usability in long coding sessions, and applying the same pattern analysis to design-output failures.

Metrics: tool-call failures per session · repair variation count · token volume · session duration · model usability · design defect recurrence

“logs for last 30 days and Kimi is doing exactly the same thing. Then we fixed the Kimi models and we fixed MiniMax models”transcript, stated
“We looked at the numbers and we found that obviously we chatted with a bunch of amazing designers”transcript, stated

Outcomes

The source cites 1.2B agent runs per month at LangBase, hundreds of billions of current tokens, 16,000 repair variations, and user sessions exceeding 12 hours.

3 supporting quotes
“from a model that was practically completely not useful like DeepSeek V4 flash to something that can actually compete”transcript, stated
“after that the third tool call is fixed.”transcript, stated
“we can deploy the same model to fixing design slop across the hundreds of billions of tokens”transcript, stated