logoalt Hacker News

mcintyre1994yesterday at 9:01 AM0 repliesview on HN

Something I learned while hacking on something recently is that claude’s non-interactive mode is super powerful. It uses all the same tools/permissions etc as interactive would, it can stream responses as JSON with tool use etc, and it can resume from a previous session. Together this means you can actually build a really slick chat-like UI for it.

I think this is a pretty cool example: https://github.com/mcintyre94/wisp

This is using Claude on VMs that don’t have SSH, so can’t use a regular terminal emulator. They stream responses to commands over websockets, which works perfectly with Claude’s streaming. They can run an interactive console session, but instead I built a chat UI around this non-interactive mode.

You can see how I build the Claude command here: https://github.com/mcintyre94/wisp/blob/main/Wisp/ViewModels...