Skip to content

Releases

DreamCode v1.4.3 — Windows Plug-and-Play Fix

Choose a tag to compare

@weebcoder101 weebcoder101 released this 03 Aug 18:11

DreamCode v1.4.3

Critical Fixes (Windows)

  • Skills installer layout mismatch: install.ps1 probed wrong path for skills/plugins in tar.gz archives. Now derives skills/plugins from exe location (layout-agnostic).
  • UnicodeEncodeError crash on Windows: sensor_gate.py emitted ✗/⚠/✓/→ glyphs that cp1252 can't encode. Added PYTHONIOENCODING=utf-8 + PYTHONUTF8=1 to subprocess env.
  • Installer asset matching: Dynamically finds correct release asset instead of hardcoded filename.

Both root causes independently produced 'sensor gate ON, zero personas' on Windows.

Platforms

  • Linux: x64, arm64, x64-baseline, musl variants
  • macOS: x64, arm64, x64-baseline
  • Windows: x64, arm64, x64-baseline

Quick Install

irm https://raw.githubusercontent.com/weebcoder101/dreamcode/stable-release/install.ps1 | iex
curl -fsSL https://raw.githubusercontent.com/weebcoder101/dreamcode/stable-release/install.sh | bash

DreamCode v1.4.2

Choose a tag to compare

@weebcoder101 weebcoder101 released this 03 Aug 17:12

DreamCode v1.4.2

What's New

  • Sensor gate toggle — interactive ON/OFF buttons in sidebar
  • Deep-research subagent pattern with --prompt-file support
  • Skill chain enforcement — pre-turn and post-turn
  • 39 bundled Python skill scripts + plugins
  • Plug-and-play for ALL platforms — zero gaps for fresh install + local dev

Installer Fixes

  • Fixed asset naming mismatch for v1.4.0+ releases
  • Dynamic asset matching (supports .tar.gz, .zip, .exe across versions)
  • tar.gz extraction via built-in tar (Windows 10+) with 7z fallback

Platforms

  • Linux: x64, arm64, x64-baseline, musl variants
  • macOS: x64, arm64, x64-baseline
  • Windows: x64, arm64, x64-baseline

Quick Install

irm https://raw.githubusercontent.com/weebcoder101/dreamcode/stable-release/install.ps1 | iex
curl -fsSL https://raw.githubusercontent.com/weebcoder101/dreamcode/stable-release/install.sh | bash

DreamCode v1.4.0

Choose a tag to compare

@weebcoder101 weebcoder101 released this 08 Jul 21:19

DreamCode v1.4.0

What's New

Sync Layer Refactoring

  • Split 883-line sync.tsx monolith into 5 focused modules
  • Added SYNC-WIPE GUARD v2 — prevents HTTP response from overwriting SSE-populated data
  • Added session merge with cost/token preservation (server vs local)
  • Added hydration tracker for concurrent SSE events during sync
  • fullSyncedSessions guard prevents redundant re-sync on navigation

Prompt Layer Refactoring (Fixed)

  • Extracted 2496-line prompt.ts monolith into 10 focused modules
  • Fixed per-turn chain enforcement — uses continue instead of return "continue" (which corrupted SSE stream)
  • Synthesis injection now uses direct Effect generator (no more Effect.runPromise silent failures)
  • Cost/token accumulation uses atomic Ref (no race condition on concurrent subagent completion)
  • Metadata propagation preserves sessionId in completed subagent parts

Subagent Clickability

  • Fixed resultMetadata propagation in processSensorGatePhase updatePart — preserves sessionId in metadata
  • Removed redundant onMount TDZ error in Task component
  • Persistent subagent tabs via SDK children fallback
  • Auto-close on completion with deliberate-selection exemption

Desync/Black Screen Fixes

  • Root cause identified: Per-turn chain enforcement used return "continue" from Effect generator, propagating garbage value through SSE stream → frontend sync wiped message store
  • Fix: Hard-block message injected into extraMsgs instead, LLM call proceeds normally
  • EMPTY-RENDER recovery loop limited to truly empty stores (not reactivity glitches)
  • DEFENSIVE navigation handler prevents navigate-home when local messages exist

Platform Support

  • Linux: x64, arm64, x64-baseline, musl variants
  • macOS: arm64, x64, x64-baseline
  • Windows: arm64, x64, x64-baseline

Other Fixes

  • export const → export var in extracted modules (fixes Bun TDZ: handle2 error)
  • Self-re-export export * as SessionPrompt from "./prompt" removed (fixes Bun scope hoisting)
  • MCP Linux reliability (worker bunfs path, tool retry)
  • Pieces LTM graceful degradation
  • WSL2 clipboard support + Ctrl+C copy binding
  • PID lockfile to prevent multiple instances
  • ErrorBoundary wrappers for sidebar and session view
  • Stale text selection defense (Linux PRIMARY selection)
  • Dynamic persona scaling via depthScore
  • Prevent deep-research infinite subagent spawning
  • Sensor gate hardening with try/except

Engineering Issues Documented

See ENGINEERING-ISSUES.md for detailed root cause analysis of:

  • TDZ errors in Bun bundles (handle2)
  • Black screen from return "continue" in Effect generators
  • Subagent sessionId missing from metadata
  • 25 behavioral differences between monolith and refactored versions

v1.3.6 — Evolution & Taste System

Choose a tag to compare

@weebcoder101 weebcoder101 released this 04 Jul 14:33

v1.3.6 — Evolution, Taste & Cross-Platform Release

New: Taste/Preference Learning System

  • Every sensor gate decision logged to taste.jsonl
  • Codebase profiler scans project root for tech stack
  • Injects + into system prompt
  • Zero extra LLM cost — purely aggregated structured JSON

Per-Message Sensor Gate

  • Gate fires on EVERY user message (not once per session)
  • Each message gets fresh complexity classification
  • Simple messages → parent agent handles directly

Evolution Fixes

  • Unified Python script paths to ~/.dreamcode/evolution/
  • Fixed broken chain skills (pieces-ltm, neuro)
  • 8 sensor_gate.py copies verified in sync
  • Fixed profile.json corruption, reduced diagnostic noise

Windows & Cross-Platform

  • Bill Gates persona: 60+ Windows patterns + backslash detection
  • All 12 platforms build successfully
  • .exe binary, NSIS installer, Azure Trusted Signing

Pre-Existing Failures Fixed

  • GITHUB_TOKEN no longer exposed in publish.ts process list
  • Cross-spawn no longer drops PATH
  • Script validation allows project-local .dreamcode/skills/
  • Serve tests use --allow-no-auth for health checks
  • guardian_ai.py + predict.py NameErrors fixed
  • CI: added ci/main branch triggers
  • Turbo task name: opencode#test → dreamcode#test

v1.3.5

Choose a tag to compare

@weebcoder101 weebcoder101 released this 02 Jul 17:34

DreamCode v1.3.5 - Subagent fixes, MCP Linux compile fix, workflow skill guard

Changes

  • MCP Linux compile fix: Replace effect/unstable/process ChildProcessSpawner with Bun.spawn (fixes rest-parameter corruption in compiled binaries)
  • Workflow skill guard: deep-research skill now prevents persona agent double-spawning (infinite loop fix)
  • Slash command guard: Sensor gate skipped for /commands to prevent persona spawning before command runs
  • Config schema fix: Added missing max_total_subagents_per_session field
  • CI: Single-platform build (linux-x64)

Install

curl -fsSL https://raw.githubusercontent.com/weebcoder101/dreamcode/main/install.sh | bash

Or download the binary directly and run:

curl -fsSL https://github.com/weebcoder101/dreamcode/releases/download/v1.3.5/dreamcode-linux-x64.tar.gz | tar -xz && ./dreamcode

v1.3.4

Choose a tag to compare

@weebcoder101 weebcoder101 released this 26 Jun 11:17

DreamCode v1.3.4 — Bundled Release

Why the version jump?

v1.3.4 bundles three generations of work (v1.3.1, v1.3.2, and v1.3.4) into a single release. We skipped v1.3.2 and v1.3.3 as standalone releases because:

  1. The v1.3.2 architecture audit and the v1.3.4 bug fixes were logically coupled — the 14 fixes are in the exact same files that the architecture rewrite restructured (sensor-gate, token-predictor, chain-executor)
  2. The cross-platform build was only possible after both the architecture audit and the bug fixes were in place
  3. Shipping atomic releases with known issues would have been worse than bundling everything into one verified release

What Changed — Full Changelog

Security Hardening (NEW)

  • Environment variable whitelisting on all Bun.spawn calls — only PATH, HOME, PYTHONPATH, NEURO_API_KEY, PROJECT_ROOT are passed to Python subprocesses. Previously the entire parent process environment was inherited, leaking secrets like AWS_SECRET_ACCESS_KEY and GITHUB_TOKEN
  • Path traversal prevention via validateScriptPath() with isUnderPrefix() + fs.realpathSync symlink resolution before executing any Python script
  • HTML escaping on injected shipping questions — prevents prompt injection via <script>, <img>, or XML tag injection into system prompts
  • SHA-256 content hashing for question deduplication — replaced placeholder q${i} hashes with real crypto.createHash("sha256") digests
  • Credential redaction extended — AWS keys, GCP private keys, Bearer tokens, and GitHub PATs now redacted in sanitizeMessage

Shipping-Questions Pipeline — 12 Bug Fixes

  • Cross-session state contamination: Timer key was always __default__ — changed to ${directory}:${sessionID} so sessions don't interfere with each other
  • Prompt injection via questions: Questions injected into system prompts without HTML escaping — now escaped for &, <, >
  • No script path validation: Bun.spawn executed Python scripts without verifying they existed within allowed skill directories — added validateScriptPath() before every spawn
  • Python cold-start timeout: Transform wait was 2s, Python often exceeds that — increased to 8s
  • Fake question hashes: Placeholder hashes q0, q1... replaced with real SHA-256 content hashes
  • Dead TokenPredictor service class: Removed unused class, exported generate directly
  • shouldSpawn gate too restrictive: Removed redundant gate — chain now runs whenever gateResult.chain.length > 0
  • runFullPipeline threshold too high: Was chain.length > 3, lowered to > 1 so 2-skill chains trigger the pipeline
  • Missing source tree fallback: Skills from source tree not found when installed via bun link — added fallback candidate
  • Dead shouldRunPeriodicCheck import: Removed unused import, defined CHECK_INTERVAL_MS locally

Architecture Audit (v1.3.2 scope — 115 files changed, +3116/-1067)

  • Sensor gate rewrite: validateNeuroOutput now parses only the last complete JSON line from mixed stdout (was failing on text + JSON mixed output)
  • Chain orchestrator: emit_plan reads mode from chain_result dictionary instead of hardcoded value
  • Sensor gate enforcer rewrite: 238-line rewrite with per-session Map state, own circuit breaker, pending promise pattern — fixes race conditions and cross-session contamination
  • Circuit breaker extracted: Shared createCircuitBreaker factory module
  • TokenPredictor: Effect service with categorizeQuestion export
  • 76 Schema.Class TypeScript errors fixed across Effect-TS updates

Python 3.10 Compatibility (12 scripts)

  • Changed from datetime import UTC → from datetime import timezone; UTC = timezone.utc across all 12 Python scripts — datetime.UTC is Python 3.11+ only

Installer & CI Fixes

  • install.sh rewrite: 9 fixes for reliable one-shot installation
  • install.ps1: Warning fix, Expand-Archive fallback for Windows < 10, version string update
  • CI workflow rename: All artifact references changed from opencode-* to dreamcode-* in publish.yml, install_test.yml
  • Symlink EEXIST: fs.symlinkSync now checks existence before creating
  • Windows PATH propagation: Fixed in CI installer workflow
  • macOS symlink conflict: Fixed in build script

Windows Persona Spawning Fix

  • When Python sensor gate fails (no python3 on Windows), fallback personas from PERSONA_PROFILES now correctly override the spawn veto — previously fell through to generic explore subagents instead of named persona specialists

Cross-Platform Build (12 archives)

Platform Archive
Windows x64 dreamcode-windows-x64.zip
Windows x64 baseline dreamcode-windows-x64-baseline.zip
Windows ARM64 dreamcode-windows-arm64.zip
macOS ARM64 (Apple Silicon) dreamcode-darwin-arm64.zip
macOS x64 dreamcode-darwin-x64.zip
macOS x64 baseline dreamcode-darwin-x64-baseline.zip
Linux x64 dreamcode-linux-x64.tar.gz
Linux x64 baseline dreamcode-linux-x64-baseline.tar.gz
Linux ARM64 dreamcode-linux-arm64.tar.gz
Linux x64 musl dreamcode-linux-x64-musl.tar.gz
Linux x64 baseline musl dreamcode-linux-x64-baseline-musl.tar.gz
Linux ARM64 musl dreamcode-linux-arm64-musl.tar.gz

Test Suite

  • 115+ skill tests passing (circuit-breaker: 11, sensor-gate: 35, token-predictor: 16, chain-executor, python-resolver, skills-integrity, session-runner: 91)
  • 62 new tests added in this release cycle

Known Gaps (Post-Release)

  • sensor-gate-enforcer.ts (248 lines) has zero dedicated unit tests — documented for next sprint
  • NEURO_API_KEY injected into all Python subprocesses even when not needed — least-privilege improvement pending
  • Husky pre-push hook references non-existent packages/core and packages/llm directories — needs path update

Installation

Linux / macOS:

git clone https://github.com/weebcoder101/dreamcode && cd dreamcode && bash install.sh

Windows (PowerShell):

irm https://raw.githubusercontent.com/weebcoder101/dreamcode/main/install.ps1 | iex

Or download the .zip for your platform from the assets below.


Commits in this release

161027709 chore: update bun.lock for v1.3.4 release
38476a638 chore: bump version to 1.3.4 for Linux release
245830a8a fix(skill): 14 bug fixes across shipping-questions and chain executor
e608c8ad0 chore: neuro/dream architecture audit, critical bug fixes, v1.3.2
08e4514a1 fix: installer CI failures — symlink EEXIST and Windows PATH propagation
5cc2590e9 fix: Python 3.10 compat, datetime UTC import across all scripts
c8b6055cc fix: override spawn veto when fallback personas active

v1.3.1 - Persona spawning fixes, temp dir fix, CI path rename

Choose a tag to compare

@weebcoder101 weebcoder101 released this 23 Jun 20:29

v1.3.1

Fixes

  • Persona spawning: Fix classify() null returning empty personas causing natural prompts to skip spawning (only explicit "spawn N agents" worked)
  • Temp directory: Fix EACCES error on XDG_RUNTIME_DIR by trying project-local .dreamcode/tmp first with writability verification
  • resolveSkillsDir(): Restore v1.2.9 behavior — always return first candidate even if nonexistent
  • Python resolution: Add fallback chain (python3 → python) for cross-platform support

Code Quality

  • Extract duplicated tmp directory resolution to shared resolveTmpBase() helper
  • Remove dead fallbackGateResult code in null-classify path
  • Add blank line between function and constant (style compliance)

CI/Release

  • Fix publish.yml: 18 opencode-* artifact references → dreamcode-*
  • Fix install_test.yml: opencode-windows-x64 → dreamcode-windows-x64
  • Update install.ps1 fallback version to v1.3.1 and fix warning message

v1.3.0 — Sensor Gate Python Fallback & Cross-Platform Fixes

Choose a tag to compare

@weebcoder101 weebcoder101 released this 23 Jun 06:12
fix(build): correct binary symlink target name (dreamcode → dreamcode)

DreamCode v1.2.9

Choose a tag to compare

@weebcoder101 weebcoder101 released this 22 Jun 02:53

What is Fixed

install.sh — Complete Rewrite (9 Issues Fixed)

The one-shot install now works. Run curl -fsSL https://raw.githubusercontent.com/weebcoder101/dreamcode/main/install.sh | bash and you get the correct binary, every time.

  1. Self-updating race — 3-phase bootstrap: clone/pull → re-exec from updated script → build. Even curl | bash picks up the latest install.sh before building.
  2. Branch detection — auto-detects remote HEAD instead of hard-coding main/dreamcode-fork
  3. No more silent failures — all 2>/dev/null removed from git pull, pip install, package manager installs
  4. Post-build version verification — binary --version is checked against the expected version
  5. Symlink resolution verified — after symlinking, readlink -f confirms the target exists and is executable
  6. PATH always available — export PATH runs regardless of shell rc detection, so dreamcode works immediately
  7. Removed broken bun install -g . — ~/.local/bin/dreamcode is the single canonical entry point
  8. Version derived from package.json — no more hard-coded version string that goes stale
  9. Stale clone detection — warns if you have multiple dreamcode installs
  10. Removed stale install file — the upstream opencode pre-built installer was cluttering the repo root

Script.version Fallback Warning

The silent 1.1.0 fallback now logs a visible warning whenever OPENCODE_VERSION env is not set. No more mystery version drops.

Installation

curl -fsSL https://raw.githubusercontent.com/weebcoder101/dreamcode/main/install.sh | bash