Skip to content

v1.0.0 — Reliability hardening

Choose a tag to compare

@Doorman11991 Doorman11991 released this 22 May 13:13
· 113 commits to master since this release

SmallCode 1.0 — five reliability fixes from the mebassett fork, each addressing a real production failure mode with reasoning models on llama-server.

What changed

  • Executor argument validation — patch, read_and_patch, create_and_run now validate string args before dereferencing. Malformed tool calls used to crash the agent process; now they return a structured error and the loop recovers.
  • Poisoned history fix — when every tool call in a turn fails validation, the bad assistant message + error results are spliced out of context and replaced with a single correction. Stops the death-spiral where the model sees its own malformed output and produces more.
  • 5xx retry — chatCompletion now retries on 5xx responses too, not just 4xx. llama-server's transient tool-call JSON parse failures used to silently kill the agent loop.
  • Max output tokens 4096 → 8192 — reasoning models emit 2k–6k tokens of <think> before producing tool calls. The old cap could be exhausted mid-tool_calls. Override via SMALLCODE_MAX_OUTPUT_TOKENS.
  • Tool result truncation 4000 → 8000 chars — most real source files now come back in one read_file instead of forcing multi-read sequences. Override via SMALLCODE_MAX_TOOL_RESULT_CHARS.

Why 1.0

These fixes plus the v0.9.x series (clarifier context-awareness, query routing, dependency graph, parallel executor scaffold, read-loop detection, one-question clarifier) bring SmallCode to a stable production baseline. Subsequent releases will be incremental on this base.

Credit: @mebassett for the fork that surfaced these issues.