Skip to content

v0.3.3

Choose a tag to compare

@hmans hmans released this 20 Dec 15:53
· 436 commits to main since this release

This release focuses on performance improvements to the file watching system, making beans more responsive when you're actively editing beans alongside the TUI. We've also added support for OpenCode integration.

Highlights

Smarter file watching — The file watcher has been completely rearchitected. Instead of reloading all beans whenever any file changes, beans now processes only the affected files and updates the search index incrementally. This means faster response times, especially in projects with many beans. (f3b56cd)

Channel-based event subscriptions — The new watcher uses a fan-out pattern where multiple subscribers (like the TUI) each get their own event channel with typed events (Created, Updated, Deleted). Slow subscribers no longer block others, and the API is cleaner with Subscribe() returning an event channel and unsubscribe function. (63bd573)

OpenCode integration — Added a beans-prime.ts plugin for OpenCode users. Drop it into .opencode/plugin/ in your project (or ~/.opencode/plugin/ globally) to give your AI assistant beans context at session start. (2eabadd)

Other Improvements

  • Refined the beans prime prompt for clearer agent instructions (bf9a4ec)

Bug Fixes

  • Edge cases in the watcher are now handled gracefully: rapid updates to the same file coalesce properly, create+delete sequences are processed correctly, and invalid files are skipped without breaking the watcher

Changelog

Features

  • 63bd573: feat: add channel-based file watcher with typed events (@hmans)

Bug Fixes

Performance

  • f3b56cd: perf: update beancore state incrementally instead of full reload (@hmans)

Released by GoReleaser.