Repository navigation
Releases
DreamCode v1.4.3 — Windows Plug-and-Play Fix
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 | iexcurl -fsSL https://raw.githubusercontent.com/weebcoder101/dreamcode/stable-release/install.sh | bashDreamCode v1.4.2
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 | iexcurl -fsSL https://raw.githubusercontent.com/weebcoder101/dreamcode/stable-release/install.sh | bashDreamCode v1.4.0
DreamCode v1.4.0
What's New
Sync Layer Refactoring
- Split 883-line
sync.tsxmonolith 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
fullSyncedSessionsguard prevents redundant re-sync on navigation
Prompt Layer Refactoring (Fixed)
- Extracted 2496-line
prompt.tsmonolith into 10 focused modules - Fixed per-turn chain enforcement — uses
continueinstead ofreturn "continue"(which corrupted SSE stream) - Synthesis injection now uses direct Effect generator (no more
Effect.runPromisesilent failures) - Cost/token accumulation uses atomic
Ref(no race condition on concurrent subagent completion) - Metadata propagation preserves
sessionIdin completed subagent parts
Subagent Clickability
- Fixed
resultMetadatapropagation inprocessSensorGatePhaseupdatePart — preservessessionIdin metadata - Removed redundant
onMountTDZ 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
extraMsgsinstead, 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 varin extracted modules (fixes Bun TDZ:handle2error)- 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
sessionIdmissing from metadata - 25 behavioral differences between monolith and refactored versions
v1.3.6 — Evolution & Taste System
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
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
/commandsto prevent persona spawning before command runs - Config schema fix: Added missing
max_total_subagents_per_sessionfield - CI: Single-platform build (linux-x64)
Install
curl -fsSL https://raw.githubusercontent.com/weebcoder101/dreamcode/main/install.sh | bashOr 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 && ./dreamcodev1.3.4
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:
- 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)
- The cross-platform build was only possible after both the architecture audit and the bug fixes were in place
- 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.spawncalls — onlyPATH,HOME,PYTHONPATH,NEURO_API_KEY,PROJECT_ROOTare passed to Python subprocesses. Previously the entire parent process environment was inherited, leaking secrets likeAWS_SECRET_ACCESS_KEYandGITHUB_TOKEN - Path traversal prevention via
validateScriptPath()withisUnderPrefix()+fs.realpathSyncsymlink 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 realcrypto.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.spawnexecuted Python scripts without verifying they existed within allowed skill directories — addedvalidateScriptPath()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
generatedirectly shouldSpawngate too restrictive: Removed redundant gate — chain now runs whenevergateResult.chain.length > 0runFullPipelinethreshold too high: Waschain.length > 3, lowered to> 1so 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
shouldRunPeriodicCheckimport: Removed unused import, definedCHECK_INTERVAL_MSlocally
Architecture Audit (v1.3.2 scope — 115 files changed, +3116/-1067)
- Sensor gate rewrite:
validateNeuroOutputnow parses only the last complete JSON line from mixed stdout (was failing on text + JSON mixed output) - Chain orchestrator:
emit_planreads mode fromchain_resultdictionary instead of hardcoded value - Sensor gate enforcer rewrite: 238-line rewrite with per-session
Mapstate, own circuit breaker, pending promise pattern — fixes race conditions and cross-session contamination - Circuit breaker extracted: Shared
createCircuitBreakerfactory module - TokenPredictor: Effect service with
categorizeQuestionexport - 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.utcacross all 12 Python scripts —datetime.UTCis Python 3.11+ only
Installer & CI Fixes
- install.sh rewrite: 9 fixes for reliable one-shot installation
- install.ps1: Warning fix,
Expand-Archivefallback for Windows < 10, version string update - CI workflow rename: All artifact references changed from
opencode-*todreamcode-*inpublish.yml,install_test.yml - Symlink EEXIST:
fs.symlinkSyncnow 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
python3on Windows), fallback personas fromPERSONA_PROFILESnow correctly override the spawn veto — previously fell through to genericexploresubagents 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 sprintNEURO_API_KEYinjected into all Python subprocesses even when not needed — least-privilege improvement pending- Husky pre-push hook references non-existent
packages/coreandpackages/llmdirectories — needs path update
Installation
Linux / macOS:
git clone https://github.com/weebcoder101/dreamcode && cd dreamcode && bash install.shWindows (PowerShell):
irm https://raw.githubusercontent.com/weebcoder101/dreamcode/main/install.ps1 | iexOr 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
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
fix(build): correct binary symlink target name (dreamcode → dreamcode)
DreamCode v1.2.9
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.
- Self-updating race — 3-phase bootstrap: clone/pull → re-exec from updated script → build. Even
curl | bashpicks up the latest install.sh before building. - Branch detection — auto-detects remote HEAD instead of hard-coding
main/dreamcode-fork - No more silent failures — all
2>/dev/nullremoved from git pull, pip install, package manager installs - Post-build version verification — binary
--versionis checked against the expected version - Symlink resolution verified — after symlinking,
readlink -fconfirms the target exists and is executable - PATH always available —
export PATHruns regardless of shell rc detection, sodreamcodeworks immediately - Removed broken
bun install -g .—~/.local/bin/dreamcodeis the single canonical entry point - Version derived from
package.json— no more hard-coded version string that goes stale - Stale clone detection — warns if you have multiple dreamcode installs
- Removed stale
installfile — 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