Skip to content

Instantly share code, notes, and snippets.

View mvallebr's full-sized avatar

Marcelo Elias Del Valle mvallebr

View GitHub Profile

OpenCode + Ollama Local — Complete Guide

Reference document for running opencode 100% locally with Ollama, based on your hardware (RTX 4060 8GB + 62GB RAM + Ubuntu 24.04). Ollama version tested: 0.24.0 Local models on your disk: 15 (see section 4) Created: 2026-07-01


TL;DR — In a hurry

OpenCode: Killer Cost-Saving Hints

Everything here is based on a real Python library project (SynaFlow) after full config optimization. Apply what fits your stack.


1. Compaction = your #1 cost lever

Context grows every turn. Old tool outputs pile up. Without compaction, you pay to re-send everything.

OpenCode Quick Guide (Quality vs Cost)

Recommended Configuration

Agent Model Reasoning
build deepseek-v4-pro Medium
plan glm-5.2 High
general minimax-m3 Medium
explore deepseek-v4-flash Low
@mvallebr
mvallebr / observers_pr_comparison_round4.md
Created June 14, 2026 20:45
Round 4 comparison of Synaflow observer system PR #15 and PR #16

Synaflow Observer System PR Comparison (Round 4)

Spec reference (final reviewed version): https://gist.github.com/mvallebr/fc64742a825885ceec0cc827c5f8a0f6

Evaluation date: 2026-06-14 Repository: humansoftware/synaflow Compared pull requests:

  • PR #15: feature/observer-system (DeepSeek V4 Pro High)
  • PR #16: feature/observer-system-gemini-flash35-high (Gemini 3.5 Flash High)
@mvallebr
mvallebr / observers_pr_comparison_round3.md
Created June 14, 2026 19:21
Round 3 comparison of Synaflow observer system PR #15 and PR #16

Synaflow Observer System PR Comparison (Round 3)

Spec reference (final reviewed version): https://gist.github.com/mvallebr/fc64742a825885ceec0cc827c5f8a0f6

Evaluation date: 2026-06-14 Repository: humansoftware/synaflow Compared pull requests:

  • PR #15: feature/observer-system (DeepSeek V4 Pro High)
  • PR #16: feature/observer-system-gemini-flash35-high (Gemini 3.5 Flash High)
@mvallebr
mvallebr / observers_pr_comparison_updated.md
Created June 14, 2026 19:00
Updated comparison of Synaflow observer system PR #15 and PR #16

Synaflow Observer System PR Comparison (Updated)

Spec reference (final reviewed version): https://gist.github.com/mvallebr/fc64742a825885ceec0cc827c5f8a0f6

Evaluation date: 2026-06-14 Repository: humansoftware/synaflow Compared pull requests:

  • PR #15: feature/observer-system (DeepSeek V4 Pro High)
  • PR #16: feature/observer-system-gemini-flash35-high (Gemini 3.5 Flash High)
@mvallebr
mvallebr / synaflow_observers_spec.md
Created June 14, 2026 18:44
Synaflow final observer system spec (fully reviewed)

Synaflow Observer System - Spec

Date: 14 June 2026
Status: Proposed spec for implementation
Intent: Introduce one unified lifecycle observer system for Synaflow


1. Goal

@mvallebr
mvallebr / observers_pr_comparison.md
Created June 14, 2026 18:42
Comparison of Synaflow observer system implementations in PR #15 and PR #16 (updated spec link)

Synaflow Observer System PR Comparison

Spec reference (Gist A): https://gist.github.com/mvallebr/5db4fc84bfe63194850901ab2200f96a

Evaluation date: 2026-06-14 Repository: humansoftware/synaflow Compared pull requests:

  • PR #15: feature/observer-system (DeepSeek V4 Pro High)
  • PR #16: feature/observer-system-gemini-flash35-high (Gemini 3.5 Flash High)
@mvallebr
mvallebr / synaflow_observers_spec.md
Created June 14, 2026 18:41
Synaflow final observer system spec (corrected handler-centric version)

Synaflow Observer System - Spec

Date: 14 June 2026
Status: Proposed spec for implementation
Intent: Introduce one unified lifecycle observer system for Synaflow


1. Goal

@mvallebr
mvallebr / observers_pr_comparison.md
Created June 14, 2026 18:37
Comparison of Synaflow observer system implementations in PR #15 and PR #16

Synaflow Observer System PR Comparison

Spec reference (Gist A): https://gist.github.com/mvallebr/e37d31cdebb224d9a5714ca8bf731af7

Evaluation date: 2026-06-14 Repository: humansoftware/synaflow Compared pull requests:

  • PR #15: feature/observer-system (DeepSeek V4 Pro High)
  • PR #16: feature/observer-system-gemini-flash35-high (Gemini 3.5 Flash High)