I just heard about this cool new feature in Bun that lets AI tools like Claude see browser console output directly in the terminal. This sounds really useful for debugging frontend apps.
Here’s what I understand so far:
- Start a new React project with
bun create react-app my-app - Get Claude to execute
bun start - Use ctrl + shift + b to run the process in background mode
For non-React projects, you can apparently enable this by adding development: { console: true } to your Bun.serve() configuration.
Has anyone tried this yet? I’m curious how well it works in practice and if there are any limitations. Does the AI actually understand the console errors and provide helpful suggestions? Would love to hear about your experiences with this feature.