Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Honestly it should be easy to do this kind of thing with a CLI app like Claude Code and yet you have to get pretty involved in interpreting its complex terminal usage. I'm starting to consider the recent trend of very "fancy" CLI utilities that treat the terminal as a kind of GUI as an anti-pattern. I mean, how much easier would it be to write a wrapper around CC if it were just a readline prompt.

Yet these fancy terminal applications have become really trendy. I've been using Crush lately and I quite like it, but it's annoying to me that I can't copy and pasted from the terminal when it's running, and scrolling the buffer doesn't work as expected either, it somehow scrolls some kind of internal "window" instead. Again, making copy & pasting annoyingly difficult.

Is anyone making a good agent system that is just "> Output", "$ input" without trying to get crazy with ANSI escape sequences? Some color is nice, but I think that should be the end of it.



I wonder if one can reconstruct the UI on top of the JSON input/output, without losing the agentic smarts that in Claude Code.

  --output-format <format>         Output format (only works with --print): "text"
                                   (default), "json" (single result), or
                                   "stream-json" (realtime streaming) (choices:
                                   "text", "json", "stream-json")
  --input-format <format>          Input format (only works with --print): "text"
                                   (default), or "stream-json" (realtime streaming
                                   input) (choices: "text", "stream-json")
Anyway, that's how software should be written in an ideal world. A protocol to communicate with weakly-connected user interfaces (plural!).

For Claude specifically, how exactly does the --ide flag work? That might be useful too.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: