{
  "title": "Caveman Make Loop: Model Harness Different",
  "date": "2026-11-03T12:00:00-07:00",
  "slug": "caveman-loops-flint-opencode-omp",
  "type": "entry",
  "tags": [
    "ai",
    "llm",
    "opencode",
    "oh-my-pi",
    "ghflow",
    "apple-silicon",
    "local-ai",
    "decafclaw",
    "agents"
  ],
  "thumbnail": "/2026/11/03/caveman-loops-flint-opencode-omp/alex-moliski-dn54JYggRs8-unsplash-dithered.png",
  "summary": "TL;DR: Running Recursive's new Flint model in Oh My Pi (OMP) was a looping disaster of telegraphic \"caveman speak.\" But running the exact same user prompt in OpenCode was night-and-day articulate and competent. The contrast sent me digging through session traces and harness prompts—and reconsidering how quickly I'd judged the model.",
  "draft": false,
  "comments_archived": false,
  "year": "2026",
  "month": "11",
  "day": "03",
  "postName": "2026-11-03-caveman-loops-flint-opencode-omp",
  "isDir": true,
  "path": "2026/11/03/caveman-loops-flint-opencode-omp",
  "body": "\n**TL;DR**: Running Recursive's new [Flint](https://recursive.com/updates/introducing-recursive-flint) model in **Oh My Pi (OMP)** was a looping disaster of telegraphic \"caveman speak.\" But running the exact same user prompt in **OpenCode** was night-and-day articulate and competent. The contrast sent me digging through session traces and harness prompts—and reconsidering how quickly I'd judged the model.\n\n\u003c!--more--\u003e\n\n\u003cfigure class=\"wide\"\u003e\n\u003cimg src=\"./alex-moliski-dn54JYggRs8-unsplash-dithered.png\" alt=\"Ancient petroglyphs of human figures carved into sandstone canyon rock\"\u003e\n\u003cfigcaption\u003e\nPhoto by \u003ca href=\"https://unsplash.com/@alexmoliski?utm_source=unsplash\u0026utm_medium=referral\u0026utm_content=creditCopyText\"\u003eAlex Moliski\u003c/a\u003e on \u003ca href=\"https://unsplash.com/photos/ancient-petroglyphs-of-human-figures-on-rock-dn54JYggRs8?utm_source=unsplash\u0026utm_medium=referral\u0026utm_content=creditCopyText\"\u003eUnsplash\u003c/a\u003e\n\u003c/figcaption\u003e\n\u003c/figure\u003e\n\n\u003cnav role=\"navigation\" class=\"table-of-contents\"\u003e\u003c/nav\u003e\n\n## Two harnesses, one model\n\nAt work, I just got a new MacBook Pro with 64GB RAM and an M5 Max CPU. Just in time for [news about M6 CPUs](https://www.apple.com/newsroom/2026/10/apple-introduces-the-new-14-inch-macbook-pro-with-m6/), but oh well. Still, I'm told this should be pretty capable at running local AI models.\n\nSo, lately, I’ve been jumping between two harnesses: [OpenCode](https://opencode.ai/) and [Oh My Pi (OMP)](https://github.com/can1357/oh-my-pi). Both seem capable, but have different designs and flavors. OpenCode feels like a structured, modular developer workbench. OMP aims at raw terminal speed, token frugality, and minimal ceremony. I haven't done an exhaustive code comparison, so these are just vibey impressions.\n\nAt the same time, I’ve been running [Flint](https://recursive.com/updates/introducing-recursive-flint), an [open-weight model](https://huggingface.co/RecursiveSI/flint) released by [Recursive Superintelligence](https://recursive.com/). To serve the model locally, I've been using [`rec`](https://github.com/recursive-oss/rec), Recursive's own inference engine, which exposes local OpenAI- and Anthropic-compatible endpoints.\n\nThe label on the tin says Flint is a sparse Mixture of Experts (MoE) with 40 billion total parameters, but only ~2.5 billion active parameters per token. It uses 4-bit NVFP4 output layer quantization, allowing the full model to fit and execute in unified memory on Apple Silicon via Metal kernels.\n\nIn my own runs, actual decode throughput (pure generation speed, excluding prompt prefill and tool execution waits) clocked in around 15-20 tokens per second across sustained agent turns. I'm still wrapping my head around expected performance for local models on this machine, but this seems decent?\n\nOf course, speed doesn't mean anything if the model is busy spewing garbage the whole time. So, I decided to put Flint through its paces on a real-world task: running an issue triage pass on the [DecafClaw](https://github.com/lmorchard/decafclaw) backlog using [ghflow](https://github.com/lmorchard/ghflow).\n\n## The workload: ghflow\n\nA quick word on [ghflow](https://github.com/lmorchard/ghflow): it's an agent skill I've been building to automate project workflows on GitHub. Instead of me manually clicking through project boards, labeling issues, branching worktrees, and writing pull request summaries, `ghflow` gives an agent a structured set of reference procedures to triage, scope, and deliver issues.\n\nIn a full-scale unattended burndown using a cloud model, `ghflow` often relies on subagents to parallelize work. But with this local model setup, driving concurrent subagents led to endless [KV-Cache](https://huggingface.co/blog/not-lain/kv-caching) thrashing—chewing up GPU time recalculating [prompt prefills](https://machinelearningmastery.com/from-prompt-to-prediction-understanding-prefill-decode-and-the-kv-cache-in-llms/) much like frequent multi-material filament changes on [my 3D printer](https://www.prusa3d.com/product/original-prusa-mk4s-3d-printer-5/) with [the MMU3](https://www.prusa3d.com/product/original-prusa-mmu3-for-mk4s-mk3-9s-full-kit-2/). \n\nSo to lean into consistent caching, I explicitly instructed the agent to triage serially in a single session:\n\n\u003e `@ghflow Let's triage issues not yet triaged, those without triage:* labels. Do so without using subagents, because we're only running one local model and cannot handle parallel requests`\n\n## Attempt one: The caveman doom loop in OMP\n\nMy first run with Flint in OMP was a disaster—here's how it started \"thinking\":\n\n\u003cfigure class=\"code-block\"\u003e\n\n```markdown\nWe need respond/action. User invoked ghflow, asks triage untriaged issues. \nNeed follow skill. We need inspect. We have no actual tools listed beyond current, \nbut likely can use. Need likely task triage-issues. Must load task reference and \nshared context perhaps. Need not ask. Need gather state. Since they mention \nlong list untriaged. Need run ghflow facts perhaps. First must read selected task \nand shared context.\n```\n\n\u003c/figure\u003e\n\nMost auxiliary verbs, articles, and copulas have been dropped, leaving a staccato stream of verbs and nouns. I've heard of this [caveman](https://github.com/juliusbrussee/caveman) thing as an attempt to conserve tokens—i.e. \"*why use many token when few token do trick*\". But, I don't think this was intentionally that. And even if it was, it didn't work.\n\nI let it keep going, if only to see what it would do. After 100 turns, I think the agent had entered what looked like an [attractor basin](https://christinasouch.com/blog/attractor-basins-when-ai-gets-stuck-in-the-wrong-pattern):\n\n*   **Turn 101:** `think: [\"We need continue. Need understand todo tool format...\"]` → calls `todo`\n*   **Turn 105:** `think: [\"We need continue. Need be careful. We need understand task and state...\"]` → calls `bash`\n*   **Turn 114:** `think: [\"We need continue. Need be careful. We need understand task and state...\"]` → calls `bash`\n*   **Turn 117:** `think: [\"We need continue task. Need carefully reason...\"]` → calls `todo`\n*   **Turn 123:** `think: [\"We need continue. Need be careful. We need understand task and state...\"]` → calls `bash`\n*   **Turn 126:** `think: [\"We need continue. Need be careful. We need solve user task via tools...\"]` → calls `bash`\n\nIt had locked onto a fixed mantra: *\"We need continue. Need be careful.\"* It repeated that exact phrase, picked a tool, failed to resolve the state, and immediately repeated it again. Seemed like it was lost in a maze of twisty little passages, all alike.\n\n\u003cfigure\u003e\n\u003cimg src=\"./rafif-prawira-SgTLuX6t8Yo-unsplash-dithered.png\" alt=\"Aerial overhead view of an intricate concentric hedge labyrinth\"\u003e\n\u003cfigcaption\u003e\nPhoto by \u003ca href=\"https://unsplash.com/@rafifprawira?utm_source=unsplash\u0026utm_medium=referral\u0026utm_content=creditCopyText\"\u003eRafif Prawira\u003c/a\u003e on \u003ca href=\"https://unsplash.com/photos/aerial-photo-of-maze-race-SgTLuX6t8Yo?utm_source=unsplash\u0026utm_medium=referral\u0026utm_content=creditCopyText\"\u003eUnsplash\u003c/a\u003e\n\u003c/figcaption\u003e\n\u003c/figure\u003e\n\nDigging into the logs around Turn 123 showed one concrete failure inside the loop. Despite its clipped syntax, the reasoning was lengthy—it spent roughly 1,500 tokens of idiotic internal monologue over 30 seconds repeating its mantra without making useful progress, before finally running a bash command:\n\n\u003cfigure class=\"code-block\"\u003e\n\n```\n\u003e gh issue view 1145 --json number,title,body,state,labels,comments --limit 20\nunknown flag: --limit\nCommand exited with code 1\n```\n\n\u003c/figure\u003e\n\nFlint failed to recover cleanly. While it did drop the `--limit` flag on its next attempt (`gh issue view 1145 --json ... --comments`), the output was truncated. It fell back to repeating the exact same reasoning chant, firing off piecemeal variants (`gh issue view 1145 --json body --jq .body`, `gh issue view 1145 --json comments --jq '.comments'`) while constantly resetting its `todo` tool state without ever progressing to triage. It was stuck in a self-reinforcing spin cycle.\n\nAfter killing the loop, I thought: *Welp. That sucked. Back to Claude, I guess.* I was ready to write Flint off as undercooked.\n\n## Attempt two: Wait, it works in OpenCode?\n\nA bit later, mostly out of stubborn curiosity, I decided to point OpenCode at the same model and task. The result was night and day:\n\n\u003cfigure class=\"code-block\"\u003e\n\n```markdown\nLet me parse this. The user is referencing the `@ghflow` skill and wants to triage \nissues not yet triaged, those without `triage:*` labels. They explicitly say not to \nuse subagents because only running one local model and can't handle parallel requests.\n\nLet me first load the ghflow skill to understand its workflow.\n```\n\n\u003c/figure\u003e\n\nOpenCode and Flint took the task in stride. It read the skill, loaded the task references, surveyed the open issues, and set about triaging them in a calm, orderly fashion. There was no caveman syntax, no wheel-spinning, and no doom loop. I let it run while I got lunch, and it had finished the job successfully by the time I was done eating.\n\nAnd by \"finished the job,\" I mean it actually executed: it swept 35 untriaged issues down to 0 across five bounded batches, resolved decision bottlenecks on three stalled items, defined acceptance criteria on three more, triaged a newly opened mobile issue (#1192), and grew the board's `triage:ready` pool to 123 issues with clear evidence and labels posted directly to GitHub. \n\nIn the issues I checked, the classifications were sound, the summaries captured the actual acceptance criteria, and the decisions held up. No babbling, no loops—just steady work, the way I'd have done it myself.\n\nFlint could clearly do this task in at least one setup. That made me reconsider my first impression: I had been judging the model through one particular harness configuration, when the choice of harness—its system prompt, tool schemas, and defaults—might explain the difference.\n\n## What might explain the difference?\n\nAt this point, pure bafflement took over, and I tumbled headfirst down a research rabbit hole. I wanted to understand how a harness could turn an articulate coding model into a grunting, looping mess without touching a single weight.\n\nI'm in a little over my head with everything I read, but let's see if I can take a stab at writing out my hunches.\n\n### Tokens as computational scratchpads\n\nIn [Show Your Work: Scratchpads for Intermediate Computation with Language Models](https://arxiv.org/abs/2112.00114), Nye et al. demonstrated that language models perform significantly better on multi-step reasoning tasks when allowed to generate intermediate tokens as an external scratchpad—a finding expanded by Wei et al. on [Chain-of-Thought Prompting](https://arxiv.org/abs/2201.11903).\n\nThis is old hat, basic stuff. Intermediate reasoning tokens can help models work through multi-step plans, which makes brevity constraints worth investigating here. \n\nSo, in other words, I suspect that by causing the model to *write* \"thinking\" like a caveman, it *performed* like a caveman.\n\nThis run wasn’t short of generated reasoning tokens; it spent roughly 1,500 of them on one stalled turn. To be fair, whether the harness affected how productively it used those tokens is unproven. But, I think it's a culprit. (Also, I'm really glad this was on my laptop and not charged by the token in the cloud.)\n\n### Prompt density and negative constraints\n\nYou can see this design philosophy directly in OMP's source code: its core [`system-prompt.md`](https://github.com/can1357/oh-my-pi/blob/main/packages/coding-agent/src/prompts/system/system-prompt.md) on GitHub uses compact wording and many explicit constraints. It defines strict RFC 2119 keywords (`MUST`, `REQUIRED`, `NEVER`) and wraps behavior in dense, inviolable contracts:\n\n*   Forbidding reflection on limits or budgets: `\u003ccritical\u003e NEVER narrate/consider session limits, token/tool budgets, effort estimates, or possible completion; start unbounded: execute/delegate. \u003c/critical\u003e`\n\n*   Mandating tight tool execution constraints, such as forbidding solo planning turns: `NEVER make a todo-only turn: send todo in the same response as the turn's real call (parallel tool calls)`—which could help explain why Flint insisted on bundling `todo` and `bash` together on every turn of its loop.\n\nThose constraints make prompt design a plausible suspect, particularly the rule coupling todo updates to other tool calls. \n\nI haven’t tested whether relaxing them changes Flint’s behavior. The fuller sentences in OpenCode are an observable difference; whether they helped the model complete the task remains an open question.\n\n### Repetition and sampling defaults\n\nThe repeated openings in OMP were a visible sign that the run had stalled. As Holtzman et al. explored in [The Curious Case of Neural Text Degeneration](https://arxiv.org/abs/1904.09751), decoding choices and sampling parameters can easily produce repetitive loops where a model fixates on familiar patterns. \n\nIn Flint's case, once it fell into repeating its stilted mantra (*\"We need continue. Need be careful.\"*), that pattern dominated recent context, resembling an [attractor basin](https://christinasouch.com/blog/attractor-basins-when-ai-gets-stuck-in-the-wrong-pattern). \n\nBut, I can’t tell from these traces alone whether the repetition helped sustain the loop or merely reflected it—and differences in default temperature, top-p, or repetition penalties between the two harnesses could be an important unexamined variable.\n\n## What I might try next\n\nSo, again: These are all slightly-educated guesses. In practical terms, when using Flint, OpenCode works for me where OMP doesn't. That's fine for now. Tool work, me happy.\n\nBut, if I really want to keep chasing this, the next step would be to see whether this contrast is reproducible. I could give both harnesses the same frozen set of issues, run each several times, and compare completed triage decisions, tool errors, and time spent going nowhere.\n\nThen I’d narrow things down. The failed run corrected its invalid command flag but stalled after encountering truncated output. A tiny test with one issue and deliberately awkward tool responses might help distinguish trouble recovering from errors from trouble with the task itself.\n\nI could also capture what each harness actually sends to `rec`: prompts, tool definitions, sampling settings, and conversation history. From there, I could change one thing at a time—relax an OMP instruction, match sampling settings, or adjust output truncation—and see whether completion improves. Fuller sentences would be interesting, but getting the work done would be the measure that matters.\n\n## Takeaways for harness tinkering\n\nAs someone building both agent tools ([ghflow](https://github.com/lmorchard/ghflow)) and harness systems ([DecafClaw](https://github.com/lmorchard/decafclaw)), this was a practical lesson in debugging local agent workflows:\n\n1.  **Try another harness before writing off a model:** If a local model stumbles or loops on a task, don't immediately assume the weights aren't smart enough. A different harness configuration might yield completely different results.\n\n2.  **Look across the whole harness stack:** Prompts get the most attention, but tool schemas, error formatting, sampling parameters (temperature, top-p), and how conversation history is truncated or summarized all shape model behavior.\n\n3.  **Watch for repeated actions and check tool responses:** When a run stalls, look past the assistant's narration and inspect what the tools actually returned. Repeated reasoning phrases can be a surface symptom of a tool call failing quietly underneath.\n\nFor now, when running `ghflow` against local weights on my laptop, OpenCode remains my default driver. But it's a great reminder of how much the choice of harness shapes what an open-weight model can actually do.\n",
  "html": "\u003cp\u003e\u003cstrong\u003eTL;DR\u003c/strong\u003e: Running Recursive\u0026#39;s new \u003ca href=\"https://recursive.com/updates/introducing-recursive-flint\"\u003eFlint\u003c/a\u003e model in \u003cstrong\u003eOh My Pi (OMP)\u003c/strong\u003e was a looping disaster of telegraphic \u0026#34;caveman speak.\u0026#34; But running the exact same user prompt in \u003cstrong\u003eOpenCode\u003c/strong\u003e was night-and-day articulate and competent. The contrast sent me digging through session traces and harness prompts—and reconsidering how quickly I\u0026#39;d judged the model.\u003c/p\u003e\n\u003c!--more--\u003e\n\u003cfigure class=\"wide\"\u003e\n\u003cimg src=\"./alex-moliski-dn54JYggRs8-unsplash-dithered.png\" alt=\"Ancient petroglyphs of human figures carved into sandstone canyon rock\"/\u003e\n\u003cfigcaption\u003e\nPhoto by \u003ca href=\"https://unsplash.com/@alexmoliski?utm_source=unsplash\u0026amp;utm_medium=referral\u0026amp;utm_content=creditCopyText\"\u003eAlex Moliski\u003c/a\u003e on \u003ca href=\"https://unsplash.com/photos/ancient-petroglyphs-of-human-figures-on-rock-dn54JYggRs8?utm_source=unsplash\u0026amp;utm_medium=referral\u0026amp;utm_content=creditCopyText\"\u003eUnsplash\u003c/a\u003e\n\u003c/figcaption\u003e\n\u003c/figure\u003e\n\u003cnav role=\"navigation\" class=\"table-of-contents\"\u003e\u003c/nav\u003e\n\u003ch2 id=\"two-harnesses-one-model\"\u003eTwo harnesses, one model\u003c/h2\u003e\n\u003cp\u003eAt work, I just got a new MacBook Pro with 64GB RAM and an M5 Max CPU. Just in time for \u003ca href=\"https://www.apple.com/newsroom/2026/10/apple-introduces-the-new-14-inch-macbook-pro-with-m6/\"\u003enews about M6 CPUs\u003c/a\u003e, but oh well. Still, I\u0026#39;m told this should be pretty capable at running local AI models.\u003c/p\u003e\n\u003cp\u003eSo, lately, I’ve been jumping between two harnesses: \u003ca href=\"https://opencode.ai/\"\u003eOpenCode\u003c/a\u003e and \u003ca href=\"https://github.com/can1357/oh-my-pi\"\u003eOh My Pi (OMP)\u003c/a\u003e. Both seem capable, but have different designs and flavors. OpenCode feels like a structured, modular developer workbench. OMP aims at raw terminal speed, token frugality, and minimal ceremony. I haven\u0026#39;t done an exhaustive code comparison, so these are just vibey impressions.\u003c/p\u003e\n\u003cp\u003eAt the same time, I’ve been running \u003ca href=\"https://recursive.com/updates/introducing-recursive-flint\"\u003eFlint\u003c/a\u003e, an \u003ca href=\"https://huggingface.co/RecursiveSI/flint\"\u003eopen-weight model\u003c/a\u003e released by \u003ca href=\"https://recursive.com/\"\u003eRecursive Superintelligence\u003c/a\u003e. To serve the model locally, I\u0026#39;ve been using \u003ca href=\"https://github.com/recursive-oss/rec\"\u003e\u003ccode\u003erec\u003c/code\u003e\u003c/a\u003e, Recursive\u0026#39;s own inference engine, which exposes local OpenAI- and Anthropic-compatible endpoints.\u003c/p\u003e\n\u003cp\u003eThe label on the tin says Flint is a sparse Mixture of Experts (MoE) with 40 billion total parameters, but only ~2.5 billion active parameters per token. It uses 4-bit NVFP4 output layer quantization, allowing the full model to fit and execute in unified memory on Apple Silicon via Metal kernels.\u003c/p\u003e\n\u003cp\u003eIn my own runs, actual decode throughput (pure generation speed, excluding prompt prefill and tool execution waits) clocked in around 15-20 tokens per second across sustained agent turns. I\u0026#39;m still wrapping my head around expected performance for local models on this machine, but this seems decent?\u003c/p\u003e\n\u003cp\u003eOf course, speed doesn\u0026#39;t mean anything if the model is busy spewing garbage the whole time. So, I decided to put Flint through its paces on a real-world task: running an issue triage pass on the \u003ca href=\"https://github.com/lmorchard/decafclaw\"\u003eDecafClaw\u003c/a\u003e backlog using \u003ca href=\"https://github.com/lmorchard/ghflow\"\u003eghflow\u003c/a\u003e.\u003c/p\u003e\n\u003ch2 id=\"the-workload-ghflow\"\u003eThe workload: ghflow\u003c/h2\u003e\n\u003cp\u003eA quick word on \u003ca href=\"https://github.com/lmorchard/ghflow\"\u003eghflow\u003c/a\u003e: it\u0026#39;s an agent skill I\u0026#39;ve been building to automate project workflows on GitHub. Instead of me manually clicking through project boards, labeling issues, branching worktrees, and writing pull request summaries, \u003ccode\u003eghflow\u003c/code\u003e gives an agent a structured set of reference procedures to triage, scope, and deliver issues.\u003c/p\u003e\n\u003cp\u003eIn a full-scale unattended burndown using a cloud model, \u003ccode\u003eghflow\u003c/code\u003e often relies on subagents to parallelize work. But with this local model setup, driving concurrent subagents led to endless \u003ca href=\"https://huggingface.co/blog/not-lain/kv-caching\"\u003eKV-Cache\u003c/a\u003e thrashing—chewing up GPU time recalculating \u003ca href=\"https://machinelearningmastery.com/from-prompt-to-prediction-understanding-prefill-decode-and-the-kv-cache-in-llms/\"\u003eprompt prefills\u003c/a\u003e much like frequent multi-material filament changes on \u003ca href=\"https://www.prusa3d.com/product/original-prusa-mk4s-3d-printer-5/\"\u003emy 3D printer\u003c/a\u003e with \u003ca href=\"https://www.prusa3d.com/product/original-prusa-mmu3-for-mk4s-mk3-9s-full-kit-2/\"\u003ethe MMU3\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eSo to lean into consistent caching, I explicitly instructed the agent to triage serially in a single session:\u003c/p\u003e\n\u003cblockquote\u003e\n\u003cp\u003e\u003ccode\u003e@ghflow Let\u0026#39;s triage issues not yet triaged, those without triage:* labels. Do so without using subagents, because we\u0026#39;re only running one local model and cannot handle parallel requests\u003c/code\u003e\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003ch2 id=\"attempt-one-the-caveman-doom-loop-in-omp\"\u003eAttempt one: The caveman doom loop in OMP\u003c/h2\u003e\n\u003cp\u003eMy first run with Flint in OMP was a disaster—here\u0026#39;s how it started \u0026#34;thinking\u0026#34;:\u003c/p\u003e\n\u003cfigure class=\"code-block\"\u003e\n\u003cpre\u003e\u003ccode class=\"language-markdown\"\u003eWe need respond/action. User invoked ghflow, asks triage untriaged issues. \nNeed follow skill. We need inspect. We have no actual tools listed beyond current, \nbut likely can use. Need likely task triage-issues. Must load task reference and \nshared context perhaps. Need not ask. Need gather state. Since they mention \nlong list untriaged. Need run ghflow facts perhaps. First must read selected task \nand shared context.\n\u003c/code\u003e\u003c/pre\u003e\n\u003c/figure\u003e\n\u003cp\u003eMost auxiliary verbs, articles, and copulas have been dropped, leaving a staccato stream of verbs and nouns. I\u0026#39;ve heard of this \u003ca href=\"https://github.com/juliusbrussee/caveman\"\u003ecaveman\u003c/a\u003e thing as an attempt to conserve tokens—i.e. \u0026#34;\u003cem\u003ewhy use many token when few token do trick\u003c/em\u003e\u0026#34;. But, I don\u0026#39;t think this was intentionally that. And even if it was, it didn\u0026#39;t work.\u003c/p\u003e\n\u003cp\u003eI let it keep going, if only to see what it would do. After 100 turns, I think the agent had entered what looked like an \u003ca href=\"https://christinasouch.com/blog/attractor-basins-when-ai-gets-stuck-in-the-wrong-pattern\"\u003eattractor basin\u003c/a\u003e:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eTurn 101:\u003c/strong\u003e \u003ccode\u003ethink: [\u0026#34;We need continue. Need understand todo tool format...\u0026#34;]\u003c/code\u003e → calls \u003ccode\u003etodo\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTurn 105:\u003c/strong\u003e \u003ccode\u003ethink: [\u0026#34;We need continue. Need be careful. We need understand task and state...\u0026#34;]\u003c/code\u003e → calls \u003ccode\u003ebash\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTurn 114:\u003c/strong\u003e \u003ccode\u003ethink: [\u0026#34;We need continue. Need be careful. We need understand task and state...\u0026#34;]\u003c/code\u003e → calls \u003ccode\u003ebash\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTurn 117:\u003c/strong\u003e \u003ccode\u003ethink: [\u0026#34;We need continue task. Need carefully reason...\u0026#34;]\u003c/code\u003e → calls \u003ccode\u003etodo\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTurn 123:\u003c/strong\u003e \u003ccode\u003ethink: [\u0026#34;We need continue. Need be careful. We need understand task and state...\u0026#34;]\u003c/code\u003e → calls \u003ccode\u003ebash\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eTurn 126:\u003c/strong\u003e \u003ccode\u003ethink: [\u0026#34;We need continue. Need be careful. We need solve user task via tools...\u0026#34;]\u003c/code\u003e → calls \u003ccode\u003ebash\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eIt had locked onto a fixed mantra: \u003cem\u003e\u0026#34;We need continue. Need be careful.\u0026#34;\u003c/em\u003e It repeated that exact phrase, picked a tool, failed to resolve the state, and immediately repeated it again. Seemed like it was lost in a maze of twisty little passages, all alike.\u003c/p\u003e\n\u003cfigure\u003e\n\u003cimg src=\"./rafif-prawira-SgTLuX6t8Yo-unsplash-dithered.png\" alt=\"Aerial overhead view of an intricate concentric hedge labyrinth\"/\u003e\n\u003cfigcaption\u003e\nPhoto by \u003ca href=\"https://unsplash.com/@rafifprawira?utm_source=unsplash\u0026amp;utm_medium=referral\u0026amp;utm_content=creditCopyText\"\u003eRafif Prawira\u003c/a\u003e on \u003ca href=\"https://unsplash.com/photos/aerial-photo-of-maze-race-SgTLuX6t8Yo?utm_source=unsplash\u0026amp;utm_medium=referral\u0026amp;utm_content=creditCopyText\"\u003eUnsplash\u003c/a\u003e\n\u003c/figcaption\u003e\n\u003c/figure\u003e\n\u003cp\u003eDigging into the logs around Turn 123 showed one concrete failure inside the loop. Despite its clipped syntax, the reasoning was lengthy—it spent roughly 1,500 tokens of idiotic internal monologue over 30 seconds repeating its mantra without making useful progress, before finally running a bash command:\u003c/p\u003e\n\u003cfigure class=\"code-block\"\u003e\n\u003cpre\u003e\u003ccode\u003e\u0026gt; gh issue view 1145 --json number,title,body,state,labels,comments --limit 20\nunknown flag: --limit\nCommand exited with code 1\n\u003c/code\u003e\u003c/pre\u003e\n\u003c/figure\u003e\n\u003cp\u003eFlint failed to recover cleanly. While it did drop the \u003ccode\u003e--limit\u003c/code\u003e flag on its next attempt (\u003ccode\u003egh issue view 1145 --json ... --comments\u003c/code\u003e), the output was truncated. It fell back to repeating the exact same reasoning chant, firing off piecemeal variants (\u003ccode\u003egh issue view 1145 --json body --jq .body\u003c/code\u003e, \u003ccode\u003egh issue view 1145 --json comments --jq \u0026#39;.comments\u0026#39;\u003c/code\u003e) while constantly resetting its \u003ccode\u003etodo\u003c/code\u003e tool state without ever progressing to triage. It was stuck in a self-reinforcing spin cycle.\u003c/p\u003e\n\u003cp\u003eAfter killing the loop, I thought: \u003cem\u003eWelp. That sucked. Back to Claude, I guess.\u003c/em\u003e I was ready to write Flint off as undercooked.\u003c/p\u003e\n\u003ch2 id=\"attempt-two-wait-it-works-in-opencode\"\u003eAttempt two: Wait, it works in OpenCode?\u003c/h2\u003e\n\u003cp\u003eA bit later, mostly out of stubborn curiosity, I decided to point OpenCode at the same model and task. The result was night and day:\u003c/p\u003e\n\u003cfigure class=\"code-block\"\u003e\n\u003cpre\u003e\u003ccode class=\"language-markdown\"\u003eLet me parse this. The user is referencing the `@ghflow` skill and wants to triage \nissues not yet triaged, those without `triage:*` labels. They explicitly say not to \nuse subagents because only running one local model and can\u0026#39;t handle parallel requests.\n\nLet me first load the ghflow skill to understand its workflow.\n\u003c/code\u003e\u003c/pre\u003e\n\u003c/figure\u003e\n\u003cp\u003eOpenCode and Flint took the task in stride. It read the skill, loaded the task references, surveyed the open issues, and set about triaging them in a calm, orderly fashion. There was no caveman syntax, no wheel-spinning, and no doom loop. I let it run while I got lunch, and it had finished the job successfully by the time I was done eating.\u003c/p\u003e\n\u003cp\u003eAnd by \u0026#34;finished the job,\u0026#34; I mean it actually executed: it swept 35 untriaged issues down to 0 across five bounded batches, resolved decision bottlenecks on three stalled items, defined acceptance criteria on three more, triaged a newly opened mobile issue (#1192), and grew the board\u0026#39;s \u003ccode\u003etriage:ready\u003c/code\u003e pool to 123 issues with clear evidence and labels posted directly to GitHub.\u003c/p\u003e\n\u003cp\u003eIn the issues I checked, the classifications were sound, the summaries captured the actual acceptance criteria, and the decisions held up. No babbling, no loops—just steady work, the way I\u0026#39;d have done it myself.\u003c/p\u003e\n\u003cp\u003eFlint could clearly do this task in at least one setup. That made me reconsider my first impression: I had been judging the model through one particular harness configuration, when the choice of harness—its system prompt, tool schemas, and defaults—might explain the difference.\u003c/p\u003e\n\u003ch2 id=\"what-might-explain-the-difference\"\u003eWhat might explain the difference?\u003c/h2\u003e\n\u003cp\u003eAt this point, pure bafflement took over, and I tumbled headfirst down a research rabbit hole. I wanted to understand how a harness could turn an articulate coding model into a grunting, looping mess without touching a single weight.\u003c/p\u003e\n\u003cp\u003eI\u0026#39;m in a little over my head with everything I read, but let\u0026#39;s see if I can take a stab at writing out my hunches.\u003c/p\u003e\n\u003ch3 id=\"tokens-as-computational-scratchpads\"\u003eTokens as computational scratchpads\u003c/h3\u003e\n\u003cp\u003eIn \u003ca href=\"https://arxiv.org/abs/2112.00114\"\u003eShow Your Work: Scratchpads for Intermediate Computation with Language Models\u003c/a\u003e, Nye et al. demonstrated that language models perform significantly better on multi-step reasoning tasks when allowed to generate intermediate tokens as an external scratchpad—a finding expanded by Wei et al. on \u003ca href=\"https://arxiv.org/abs/2201.11903\"\u003eChain-of-Thought Prompting\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eThis is old hat, basic stuff. Intermediate reasoning tokens can help models work through multi-step plans, which makes brevity constraints worth investigating here.\u003c/p\u003e\n\u003cp\u003eSo, in other words, I suspect that by causing the model to \u003cem\u003ewrite\u003c/em\u003e \u0026#34;thinking\u0026#34; like a caveman, it \u003cem\u003eperformed\u003c/em\u003e like a caveman.\u003c/p\u003e\n\u003cp\u003eThis run wasn’t short of generated reasoning tokens; it spent roughly 1,500 of them on one stalled turn. To be fair, whether the harness affected how productively it used those tokens is unproven. But, I think it\u0026#39;s a culprit. (Also, I\u0026#39;m really glad this was on my laptop and not charged by the token in the cloud.)\u003c/p\u003e\n\u003ch3 id=\"prompt-density-and-negative-constraints\"\u003ePrompt density and negative constraints\u003c/h3\u003e\n\u003cp\u003eYou can see this design philosophy directly in OMP\u0026#39;s source code: its core \u003ca href=\"https://github.com/can1357/oh-my-pi/blob/main/packages/coding-agent/src/prompts/system/system-prompt.md\"\u003e\u003ccode\u003esystem-prompt.md\u003c/code\u003e\u003c/a\u003e on GitHub uses compact wording and many explicit constraints. It defines strict RFC 2119 keywords (\u003ccode\u003eMUST\u003c/code\u003e, \u003ccode\u003eREQUIRED\u003c/code\u003e, \u003ccode\u003eNEVER\u003c/code\u003e) and wraps behavior in dense, inviolable contracts:\u003c/p\u003e\n\u003cul\u003e\n\u003cli\u003e\n\u003cp\u003eForbidding reflection on limits or budgets: \u003ccode\u003e\u0026lt;critical\u0026gt; NEVER narrate/consider session limits, token/tool budgets, effort estimates, or possible completion; start unbounded: execute/delegate. \u0026lt;/critical\u0026gt;\u003c/code\u003e\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003eMandating tight tool execution constraints, such as forbidding solo planning turns: \u003ccode\u003eNEVER make a todo-only turn: send todo in the same response as the turn\u0026#39;s real call (parallel tool calls)\u003c/code\u003e—which could help explain why Flint insisted on bundling \u003ccode\u003etodo\u003c/code\u003e and \u003ccode\u003ebash\u003c/code\u003e together on every turn of its loop.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\u003cp\u003eThose constraints make prompt design a plausible suspect, particularly the rule coupling todo updates to other tool calls.\u003c/p\u003e\n\u003cp\u003eI haven’t tested whether relaxing them changes Flint’s behavior. The fuller sentences in OpenCode are an observable difference; whether they helped the model complete the task remains an open question.\u003c/p\u003e\n\u003ch3 id=\"repetition-and-sampling-defaults\"\u003eRepetition and sampling defaults\u003c/h3\u003e\n\u003cp\u003eThe repeated openings in OMP were a visible sign that the run had stalled. As Holtzman et al. explored in \u003ca href=\"https://arxiv.org/abs/1904.09751\"\u003eThe Curious Case of Neural Text Degeneration\u003c/a\u003e, decoding choices and sampling parameters can easily produce repetitive loops where a model fixates on familiar patterns.\u003c/p\u003e\n\u003cp\u003eIn Flint\u0026#39;s case, once it fell into repeating its stilted mantra (\u003cem\u003e\u0026#34;We need continue. Need be careful.\u0026#34;\u003c/em\u003e), that pattern dominated recent context, resembling an \u003ca href=\"https://christinasouch.com/blog/attractor-basins-when-ai-gets-stuck-in-the-wrong-pattern\"\u003eattractor basin\u003c/a\u003e.\u003c/p\u003e\n\u003cp\u003eBut, I can’t tell from these traces alone whether the repetition helped sustain the loop or merely reflected it—and differences in default temperature, top-p, or repetition penalties between the two harnesses could be an important unexamined variable.\u003c/p\u003e\n\u003ch2 id=\"what-i-might-try-next\"\u003eWhat I might try next\u003c/h2\u003e\n\u003cp\u003eSo, again: These are all slightly-educated guesses. In practical terms, when using Flint, OpenCode works for me where OMP doesn\u0026#39;t. That\u0026#39;s fine for now. Tool work, me happy.\u003c/p\u003e\n\u003cp\u003eBut, if I really want to keep chasing this, the next step would be to see whether this contrast is reproducible. I could give both harnesses the same frozen set of issues, run each several times, and compare completed triage decisions, tool errors, and time spent going nowhere.\u003c/p\u003e\n\u003cp\u003eThen I’d narrow things down. The failed run corrected its invalid command flag but stalled after encountering truncated output. A tiny test with one issue and deliberately awkward tool responses might help distinguish trouble recovering from errors from trouble with the task itself.\u003c/p\u003e\n\u003cp\u003eI could also capture what each harness actually sends to \u003ccode\u003erec\u003c/code\u003e: prompts, tool definitions, sampling settings, and conversation history. From there, I could change one thing at a time—relax an OMP instruction, match sampling settings, or adjust output truncation—and see whether completion improves. Fuller sentences would be interesting, but getting the work done would be the measure that matters.\u003c/p\u003e\n\u003ch2 id=\"takeaways-for-harness-tinkering\"\u003eTakeaways for harness tinkering\u003c/h2\u003e\n\u003cp\u003eAs someone building both agent tools (\u003ca href=\"https://github.com/lmorchard/ghflow\"\u003eghflow\u003c/a\u003e) and harness systems (\u003ca href=\"https://github.com/lmorchard/decafclaw\"\u003eDecafClaw\u003c/a\u003e), this was a practical lesson in debugging local agent workflows:\u003c/p\u003e\n\u003col\u003e\n\u003cli\u003e\n\u003cp\u003e\u003cstrong\u003eTry another harness before writing off a model:\u003c/strong\u003e If a local model stumbles or loops on a task, don\u0026#39;t immediately assume the weights aren\u0026#39;t smart enough. A different harness configuration might yield completely different results.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003cstrong\u003eLook across the whole harness stack:\u003c/strong\u003e Prompts get the most attention, but tool schemas, error formatting, sampling parameters (temperature, top-p), and how conversation history is truncated or summarized all shape model behavior.\u003c/p\u003e\n\u003c/li\u003e\n\u003cli\u003e\n\u003cp\u003e\u003cstrong\u003eWatch for repeated actions and check tool responses:\u003c/strong\u003e When a run stalls, look past the assistant\u0026#39;s narration and inspect what the tools actually returned. Repeated reasoning phrases can be a surface symptom of a tool call failing quietly underneath.\u003c/p\u003e\n\u003c/li\u003e\n\u003c/ol\u003e\n\u003cp\u003eFor now, when running \u003ccode\u003eghflow\u003c/code\u003e against local weights on my laptop, OpenCode remains my default driver. But it\u0026#39;s a great reminder of how much the choice of harness shapes what an open-weight model can actually do.\u003c/p\u003e\n",
  "sourceFile": "content/posts/2026/2026-11-03-caveman-loops-flint-opencode-omp/index.md",
  "parentPath": "content/posts/2026/2026-11-03-caveman-loops-flint-opencode-omp",
  "attachments": [
    "./alex-moliski-dn54JYggRs8-unsplash-dithered.png",
    "./rafif-prawira-SgTLuX6t8Yo-unsplash-dithered.png"
  ],
  "prevPostPath": "2026/11/02/w45",
  "prevPostTitle": "Pod chrysalises, basement forges, and cat gremlins (Catching up: September 21 – November 2)",
  "nextPostPath": "2026/11/13/w46",
  "nextPostTitle": "Paperclip Switches, couch boars, and the ghost MTU (Catching up: November 2 – November 13)"
}